@lancom/shared 0.0.320 → 0.0.322
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/js/utils/quote.js +1 -1
- package/components/checkout/order/order-payment-information/order-payment-information.vue +4 -2
- package/components/common/payment/payment_card/stripe_payment/stripe-payment.vue +2 -3
- package/components/product/wizard/wizard_print/wizard-print.vue +9 -8
- package/package.json +1 -1
package/assets/js/utils/quote.js
CHANGED
|
@@ -8,7 +8,7 @@ export function convertQuoteToOrder(quote, option) {
|
|
|
8
8
|
deliveryAfter: quote.deliveryAfter,
|
|
9
9
|
referenceField: quote.reference,
|
|
10
10
|
paymentMethod: option.paymentMethod || 'deposit',
|
|
11
|
-
billingAddress: quote.address,
|
|
11
|
+
billingAddress: quote.billingAddress || quote.address,
|
|
12
12
|
notes: (quote.notes || []).filter(({ text }) => !!text),
|
|
13
13
|
shippingAddress: quote.address,
|
|
14
14
|
products: option.products.map(p => ({
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<progress-steps-controls
|
|
68
68
|
class="OrderPaymentInformation__controls"
|
|
69
69
|
:disabled-prev="creating"
|
|
70
|
-
:disabled-next="creating"
|
|
70
|
+
:disabled-next="loadingCard || creating || submitting"
|
|
71
71
|
label-next="MAKE PAYMENT"
|
|
72
72
|
@prev="$emit('prev')"
|
|
73
73
|
@next="submit" />
|
|
@@ -106,6 +106,7 @@ export default {
|
|
|
106
106
|
return {
|
|
107
107
|
initing: false,
|
|
108
108
|
creating: false,
|
|
109
|
+
submitting: false,
|
|
109
110
|
loadingCard: true,
|
|
110
111
|
isDepositPayment: this.order.paymentMethod === ORDER_PAYMENT_METHOD.DEPOSIT
|
|
111
112
|
};
|
|
@@ -163,7 +164,7 @@ export default {
|
|
|
163
164
|
}).join('</p><p>')}</p>`;
|
|
164
165
|
},
|
|
165
166
|
async submit() {
|
|
166
|
-
this.
|
|
167
|
+
this.submitting = true;
|
|
167
168
|
this.errorMessage = null;
|
|
168
169
|
|
|
169
170
|
const orderInfo = this.orderData || generateOrderData(this.order, this.entities, this.cartPricing);
|
|
@@ -186,6 +187,7 @@ export default {
|
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
189
|
this.creating = false;
|
|
190
|
+
this.submitting = false;
|
|
189
191
|
// this.$emit('next');
|
|
190
192
|
},
|
|
191
193
|
async submitOrder() {
|
|
@@ -36,7 +36,7 @@ export default {
|
|
|
36
36
|
return this.payment.clientKey;
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
mounted() {
|
|
40
40
|
this.loadStripe();
|
|
41
41
|
},
|
|
42
42
|
destroyed() {
|
|
@@ -77,9 +77,8 @@ export default {
|
|
|
77
77
|
};
|
|
78
78
|
document.body.appendChild(domElement);
|
|
79
79
|
} else {
|
|
80
|
-
let repeated = 0;
|
|
81
80
|
timer = setInterval(() => {
|
|
82
|
-
if (typeof window.Stripe !== 'undefined'
|
|
81
|
+
if (typeof window.Stripe !== 'undefined') {
|
|
83
82
|
this.onLoaded();
|
|
84
83
|
clearInterval(timer);
|
|
85
84
|
}
|
|
@@ -71,21 +71,22 @@ export default {
|
|
|
71
71
|
types: ['black print', 'full colour print'],
|
|
72
72
|
icon: 'printed',
|
|
73
73
|
name: 'DIGITAL',
|
|
74
|
-
subName: '
|
|
74
|
+
subName: '',
|
|
75
75
|
description: [
|
|
76
|
-
'Free Setup on all
|
|
77
|
-
'Standard turn around time of 5 days',
|
|
78
|
-
'Same or next day rush service available'
|
|
76
|
+
'Free Setup on all Black prints',
|
|
77
|
+
'Standard turn around time of 5-10 days',
|
|
78
|
+
'Same or next day rush service available',
|
|
79
|
+
'Pickup from warehouse in Arndell Park'
|
|
79
80
|
]
|
|
80
81
|
// info: 'DIGITAL - minimum 12'
|
|
81
82
|
}, {
|
|
82
83
|
types: ['embroidery'],
|
|
83
84
|
name: 'Embroidery',
|
|
84
|
-
subName: 'Minimum
|
|
85
|
+
subName: 'Minimum 10',
|
|
85
86
|
description: [
|
|
86
|
-
'Free setup on orders
|
|
87
|
-
'
|
|
88
|
-
'
|
|
87
|
+
'Free setup on repeat orders',
|
|
88
|
+
'Standard turn around time of 8-10 days',
|
|
89
|
+
'Embroidery pricing subject to changes'
|
|
89
90
|
],
|
|
90
91
|
info: 'Embroidery'
|
|
91
92
|
}, {
|