|
|
@@ -118,7 +118,7 @@
|
|
|
@details="handleProduct"
|
|
|
>
|
|
|
<template v-if="!isSelf" #footer>
|
|
|
- <delivery-notice v-if="showDeliveryNotice" />
|
|
|
+ <delivery-notice v-if="!isUpgrade" :country-id="deliveryCountryId" />
|
|
|
<div class="ng-purchase-cart-hint" role="note">
|
|
|
<span class="ng-purchase-cart-hint-icon" aria-hidden="true">
|
|
|
<i class="el-icon-shopping-cart-2" />
|
|
|
@@ -275,7 +275,7 @@
|
|
|
<order-summary
|
|
|
v-if="!isEmptyCart"
|
|
|
:checkout="stage === 'checkout'"
|
|
|
- :show-delivery-notice="showDeliveryNotice"
|
|
|
+ :delivery-country-id="deliveryCountryId"
|
|
|
:items="summaryItems"
|
|
|
:payment-method="selectedPaymentName"
|
|
|
:channels="activePayType === 'pay_stack' ? channels : []"
|
|
|
@@ -378,6 +378,7 @@ import ProductDetailsDialog from '@/ui-refactor/components/ProductDetailsDialog.
|
|
|
import PaymentMethods from '@/ui-refactor/components/PaymentMethods.vue'
|
|
|
import PaystackPaymentDialog from '@/ui-refactor/components/PaystackPaymentDialog.vue'
|
|
|
import UpgradeLevelFields from './UpgradeLevelFields.vue'
|
|
|
+import usersInfo from '@/utils/usersInfo'
|
|
|
|
|
|
export default {
|
|
|
...behavior,
|
|
|
@@ -402,8 +403,9 @@ export default {
|
|
|
isEmptyCart() {
|
|
|
return this.stage === 'cart' && !this.cartItems.length
|
|
|
},
|
|
|
- showDeliveryNotice() {
|
|
|
- return this.currencyUnitCode === 'NGN' && (this.stage !== 'catalog' || (!this.isSelf && !this.isUpgrade))
|
|
|
+ deliveryCountryId() {
|
|
|
+ if (this.isSelf) return usersInfo.baseData()?.COUNTRY_ID || ''
|
|
|
+ return this.isUpgrade ? this.upgradeCountryId : this.memberDetails?.countryId || ''
|
|
|
},
|
|
|
maintenanceLimitLabel() {
|
|
|
return this.ampDivideLine == null ? '—' : this.ampDivideLine
|