|
@@ -118,6 +118,7 @@
|
|
|
@details="handleProduct"
|
|
@details="handleProduct"
|
|
|
>
|
|
>
|
|
|
<template v-if="!isSelf" #footer>
|
|
<template v-if="!isSelf" #footer>
|
|
|
|
|
+ <delivery-notice v-if="showDeliveryNotice" />
|
|
|
<div class="ng-purchase-cart-hint" role="note">
|
|
<div class="ng-purchase-cart-hint" role="note">
|
|
|
<span class="ng-purchase-cart-hint-icon" aria-hidden="true">
|
|
<span class="ng-purchase-cart-hint-icon" aria-hidden="true">
|
|
|
<i class="el-icon-shopping-cart-2" />
|
|
<i class="el-icon-shopping-cart-2" />
|
|
@@ -192,6 +193,7 @@
|
|
|
:self="isSelf"
|
|
:self="isSelf"
|
|
|
:upgrade="isUpgrade"
|
|
:upgrade="isUpgrade"
|
|
|
:stockist="!isUpgrade && Number(isDec) === 1"
|
|
:stockist="!isUpgrade && Number(isDec) === 1"
|
|
|
|
|
+ :stockist-country-id="stockistCountryId"
|
|
|
:member-name="memberName || ''"
|
|
:member-name="memberName || ''"
|
|
|
:regions="regionData || []"
|
|
:regions="regionData || []"
|
|
|
:addresses="shippingAddressList"
|
|
:addresses="shippingAddressList"
|
|
@@ -273,6 +275,7 @@
|
|
|
<order-summary
|
|
<order-summary
|
|
|
v-if="!isEmptyCart"
|
|
v-if="!isEmptyCart"
|
|
|
:checkout="stage === 'checkout'"
|
|
:checkout="stage === 'checkout'"
|
|
|
|
|
+ :show-delivery-notice="showDeliveryNotice"
|
|
|
:items="summaryItems"
|
|
:items="summaryItems"
|
|
|
:payment-method="selectedPaymentName"
|
|
:payment-method="selectedPaymentName"
|
|
|
:channels="activePayType === 'pay_stack' ? channels : []"
|
|
:channels="activePayType === 'pay_stack' ? channels : []"
|
|
@@ -283,8 +286,8 @@
|
|
|
:total="stage === 'cart' ? sellPriceSum : orderTotal"
|
|
:total="stage === 'cart' ? sellPriceSum : orderTotal"
|
|
|
:currency="currencyUnitCode"
|
|
:currency="currencyUnitCode"
|
|
|
:shipping="
|
|
:shipping="
|
|
|
- stage === 'cart'
|
|
|
|
|
- ? 'Calculated at checkout'
|
|
|
|
|
|
|
+ stage === 'cart' || (!isUpgrade && settingsReady && Number(freight) === 0)
|
|
|
|
|
+ ? 'To be determined'
|
|
|
: currencyUnitCode + ' ' + (isUpgrade ? '0.00' : pointFreight)
|
|
: currencyUnitCode + ' ' + (isUpgrade ? '0.00' : pointFreight)
|
|
|
"
|
|
"
|
|
|
:maintenance="isMaintenance && stage === 'cart'"
|
|
:maintenance="isMaintenance && stage === 'cart'"
|
|
@@ -367,6 +370,7 @@ import SignupProducts from '../signup/components/SignupProducts.vue'
|
|
|
import OrderSummary from './OrderSummary.vue'
|
|
import OrderSummary from './OrderSummary.vue'
|
|
|
import CheckoutFields from './CheckoutFields.vue'
|
|
import CheckoutFields from './CheckoutFields.vue'
|
|
|
import CartItems from './CartItems.vue'
|
|
import CartItems from './CartItems.vue'
|
|
|
|
|
+import DeliveryNotice from '@/ui-refactor/components/DeliveryNotice.vue'
|
|
|
import OrderSuccessDialog from '@/ui-refactor/components/OrderSuccessDialog.vue'
|
|
import OrderSuccessDialog from '@/ui-refactor/components/OrderSuccessDialog.vue'
|
|
|
import { getPaymentSummary } from '@/ui-refactor/utils/paymentSummary'
|
|
import { getPaymentSummary } from '@/ui-refactor/utils/paymentSummary'
|
|
|
import UiSectionCard from '@/components/ui/UiSectionCard.vue'
|
|
import UiSectionCard from '@/components/ui/UiSectionCard.vue'
|
|
@@ -382,6 +386,7 @@ export default {
|
|
|
OrderSummary,
|
|
OrderSummary,
|
|
|
CheckoutFields,
|
|
CheckoutFields,
|
|
|
CartItems,
|
|
CartItems,
|
|
|
|
|
+ DeliveryNotice,
|
|
|
OrderSuccessDialog,
|
|
OrderSuccessDialog,
|
|
|
UiSectionCard,
|
|
UiSectionCard,
|
|
|
ProductDetailsDialog,
|
|
ProductDetailsDialog,
|
|
@@ -390,10 +395,16 @@ export default {
|
|
|
UpgradeLevelFields
|
|
UpgradeLevelFields
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
|
|
+ stockistCountryId() {
|
|
|
|
|
+ return this.isSelf ? this.accountCountryId : this.memberDetails?.countryId
|
|
|
|
|
+ },
|
|
|
...behavior.computed,
|
|
...behavior.computed,
|
|
|
isEmptyCart() {
|
|
isEmptyCart() {
|
|
|
return this.stage === 'cart' && !this.cartItems.length
|
|
return this.stage === 'cart' && !this.cartItems.length
|
|
|
},
|
|
},
|
|
|
|
|
+ showDeliveryNotice() {
|
|
|
|
|
+ return this.currencyUnitCode === 'NGN' && (this.stage !== 'catalog' || (!this.isSelf && !this.isUpgrade))
|
|
|
|
|
+ },
|
|
|
maintenanceLimitLabel() {
|
|
maintenanceLimitLabel() {
|
|
|
return this.ampDivideLine == null ? '—' : this.ampDivideLine
|
|
return this.ampDivideLine == null ? '—' : this.ampDivideLine
|
|
|
},
|
|
},
|