wickes-css2 2.94.0-develop.7 → 2.94.0-develop.9
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/Readme.md +2 -2
- package/build/css/components/checkout-payment-details-v2.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/pages/checkout-new.css +1 -1
- package/build/css/pages/checkout.css +1 -1
- package/build/css/pages/page_checkout_delivery-new.css +1 -1
- package/build/css/pages/page_shopping-cart-v2.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/js/basket.min.js +2 -2
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +2 -2
- package/build/js/emulation.min.js +3 -3
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +2 -2
- package/build/js/page/basket-v2.js +7 -6
- package/build/js/page/components/order-summary.js +1 -9
- package/build/js/page/components/voucher.js +1 -1
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/package.json +1 -1
- package/src/components/checkout-action.hbs +11 -14
- package/src/components/checkout_order-summary-new.hbs +2 -4
- package/src/components/checkout_voucher_large.hbs +16 -20
- package/src/components/order-summary.hbs +56 -91
- package/src/components/signup-form.hbs +1 -2
- package/src/js/components/general/is-trade-pro.js +1 -21
- package/src/js/components/general/switchVat.js +2 -3
- package/src/js/emulation/basket-data.js +3 -3
- package/src/js/page/basket-v2.js +7 -6
- package/src/js/page/components/order-summary.js +1 -9
- package/src/js/page/components/voucher.js +1 -1
- package/src/layouts/basket-new.hbs +1 -1
- package/src/page_shopping-cart-v2.html +16 -6
- package/src/scss/components/_checkout-action.scss +6 -132
- package/src/scss/components/_order-summary.scss +180 -271
- package/src/scss/components/checkout-payment-details-v2.scss +2 -2
- package/src/scss/helpers/_variables.scss +0 -2
- package/src/scss/pages/_checkout-widget.scss +37 -45
- package/src/scss/pages/page_checkout_delivery-new.scss +10 -110
- package/src/scss/pages/page_shopping-cart-v2.scss +32 -93
- package/build/js/page/basket/summary-mobile.js +0 -17
- package/src/components/checkout-voucher-accordion.hbs +0 -15
- package/src/components/summary-mobile-bar.hbs +0 -17
- package/src/js/page/basket/summary-mobile.js +0 -17
package/package.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
<div class="checkout-action__wrapper {{
|
|
1
|
+
<div class="checkout-action__wrapper {{mod}}">
|
|
2
2
|
{{#if head}}
|
|
3
3
|
{{> checkout-section-title title=head}}
|
|
4
4
|
{{/if}}
|
|
5
|
-
<div class="checkout-action
|
|
5
|
+
<div class="checkout-action">
|
|
6
6
|
<div class="checkout-action__section">
|
|
7
7
|
<a href="#" class="btn btn_full btn-action btn-checkout">
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</span>
|
|
8
|
+
Checkout
|
|
9
|
+
<span class="icon">
|
|
10
|
+
<i class="fas fa-arrow-right"></i>
|
|
11
|
+
</span>
|
|
13
12
|
</a>
|
|
14
13
|
</div>
|
|
15
14
|
<div class="checkout-action__section checkout-widget__basket-block">
|
|
@@ -24,15 +23,13 @@
|
|
|
24
23
|
</div>
|
|
25
24
|
</div>
|
|
26
25
|
</a>
|
|
27
|
-
{{#unless hidePaypalEmail}}
|
|
28
26
|
<div class="pay-pal_container-email">
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
<div class="pay-pal_email-heading">Your PayPal email: </div>
|
|
28
|
+
<div class="pay-pal_email-value">John.doe@gmail.com</div>
|
|
29
|
+
<div class="pay-pal_email-link">
|
|
30
|
+
<a href="#" title="" target="_blank">Don't use this email</a>
|
|
31
|
+
</div>
|
|
34
32
|
</div>
|
|
35
|
-
{{/unless}}
|
|
36
33
|
</div>
|
|
37
34
|
</div>
|
|
38
35
|
</div>
|
|
@@ -12,13 +12,12 @@
|
|
|
12
12
|
{{/each}}
|
|
13
13
|
{{else}}
|
|
14
14
|
{{#each info}}
|
|
15
|
-
<li class="checkout-widget__item {{#if
|
|
15
|
+
<li class="checkout-widget__item {{#if mod}}checkout-widget__item-{{mod}}{{/if}}">
|
|
16
16
|
<span>{{title}}</span>
|
|
17
17
|
<span class="checkout-widget__item-value">{{value}}</span>
|
|
18
18
|
</li>
|
|
19
19
|
{{/each}}
|
|
20
20
|
{{/if}}
|
|
21
|
-
{{> checkout-voucher-accordion id=id}}
|
|
22
21
|
{{#if discounts}}
|
|
23
22
|
<li class="checkout-widget__accordion-wrap checkout-widget__details-discount">
|
|
24
23
|
<span class="checkout-widget__detail-name checkout-widget__detail-name_accordion collapsed" data-toggle="collapse"
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
</li>
|
|
37
36
|
{{/if}}
|
|
38
37
|
</ul>
|
|
39
|
-
{{#unless mobile}}
|
|
40
38
|
<div class="checkout-widget__total">
|
|
41
39
|
{{#if confirmationSummary}}
|
|
42
40
|
<div> {{ confirmation-summary.total.title }}</div>
|
|
@@ -46,5 +44,5 @@
|
|
|
46
44
|
<div class="checkout-widget__total-value">{{ total.value }}</div>
|
|
47
45
|
{{/if}}
|
|
48
46
|
</div>
|
|
49
|
-
|
|
47
|
+
|
|
50
48
|
</div>
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
<div class="voucher">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</div>
|
|
13
|
-
{{#unless voucherApplied}}
|
|
14
|
-
<div class="checkout-widget checkout-voucher voucher-applied checkout-voucher-hide">
|
|
15
|
-
<div class="voucher-applied__inner">
|
|
16
|
-
<span class="icon icon__check">
|
|
17
|
-
<i class="fas fa-check-circle"></i>
|
|
18
|
-
</span>
|
|
19
|
-
<h5 class="heading-5 text-center">Voucher has been applied</h5>
|
|
20
|
-
</div>
|
|
2
|
+
{{#if title}}
|
|
3
|
+
{{> checkout-section-title}}
|
|
4
|
+
{{/if}}
|
|
5
|
+
<div class="checkout-widget checkout-voucher checkout-voucher_fixed">
|
|
6
|
+
<form id="form-checkout-voucher{{id}}">
|
|
7
|
+
{{> form-row id=(concat 'voucher-code' id) label="Voucher" label-hidden="true" required="true" placeholder="Enter code"}}
|
|
8
|
+
<button class="voucher__btn btn btn-secondary btn_full">
|
|
9
|
+
<span class="btn__text">Apply</span>
|
|
10
|
+
</button>
|
|
11
|
+
</form>
|
|
21
12
|
</div>
|
|
22
|
-
|
|
13
|
+
{{#unless voucherApplied}}
|
|
14
|
+
<div class="checkout-widget checkout-voucher voucher-applied checkout-voucher-hide">
|
|
15
|
+
<i class="fas fa-check-circle"></i>
|
|
16
|
+
<h3 class="heading-3 text-center">Voucher has been applied</h3>
|
|
17
|
+
</div>
|
|
18
|
+
{{/unless}}
|
|
23
19
|
</div>
|
|
@@ -1,101 +1,66 @@
|
|
|
1
|
-
{{#if basket}}
|
|
2
|
-
<div class="summary summary--mobile d-lg-none" id="summary-mobile-{{id}}">
|
|
3
|
-
{{> summary-mobile-bar}}
|
|
4
|
-
<div class="collapse summary__aside container" id="checkout-summary-mobile-accordion-{{id}}">
|
|
5
|
-
|
|
6
|
-
{{> checkout_order-summary-new head=title mod=mod id=(concat id "-mobile") mobile="true"}}
|
|
7
|
-
{{#unless basket}}
|
|
8
|
-
<div class="summary__payment footer-checkout">
|
|
9
|
-
{{#unless merged}}
|
|
10
|
-
{{#if paymentsCheckoutV2}}
|
|
11
|
-
<div class="footer-checkout-holder footer-checkout-holder--payways">
|
|
12
|
-
{{> payments-checkout-v2}}
|
|
13
|
-
</div>
|
|
14
|
-
{{else}}
|
|
15
|
-
<div class="footer-checkout-holder">
|
|
16
|
-
{{> payments-checkout clearPayIcon="true"}}
|
|
17
|
-
<span class="footer-checkout__copyright">
|
|
18
|
-
Copyright ©
|
|
19
|
-
<span class="current-year"></span> Wickes.co.uk
|
|
20
|
-
</span>
|
|
21
|
-
</div>
|
|
22
|
-
{{/if}}
|
|
23
|
-
{{else}}
|
|
24
|
-
<div class="summary__payment-message">
|
|
25
|
-
<p class="summary__payment-main">{{vat-message.main}}</p>
|
|
26
|
-
<p class="summary__payment-additional">{{vat-message.additional}}</p>
|
|
27
|
-
</div>
|
|
28
|
-
{{/unless}}
|
|
29
|
-
</div>
|
|
30
|
-
{{/unless}}
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
{{/if}}
|
|
34
|
-
|
|
35
|
-
|
|
36
1
|
<div class="summary {{#if mod}}summary-large{{/if}} {{#if paymentsCheckoutV2 }}summary--payways{{/if}}">
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
2
|
+
{{> checkout-section-title}}
|
|
3
|
+
{{#if mod}}
|
|
4
|
+
<div class="summary__accordion collapsed"
|
|
5
|
+
data-toggle="collapse"
|
|
6
|
+
data-target="#checkout-details-accordion-{{id}}"
|
|
7
|
+
>
|
|
8
|
+
<span class="summary__accordion-text">Show full summary</span>
|
|
9
|
+
<span class="icon summary-icon-small">
|
|
45
10
|
<i class="fas fa-angle-up"></i>
|
|
46
11
|
</span>
|
|
47
|
-
|
|
48
|
-
{{/if}}
|
|
49
|
-
<div class="summary__aside">
|
|
50
|
-
{{> checkout_order-summary-new head=title mod=mod id=id}}
|
|
51
|
-
|
|
52
|
-
{{#if klarna-placement}}
|
|
53
|
-
<div class="summary__klarna">
|
|
54
|
-
<klarna-placement
|
|
55
|
-
data-key="credit-promotion-badge"
|
|
56
|
-
data-locale="en-GB"
|
|
57
|
-
data-purchase-amount="12000"
|
|
58
|
-
></klarna-placement>
|
|
59
|
-
</div>
|
|
12
|
+
</div>
|
|
60
13
|
{{/if}}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
14
|
+
<div class="summary__aside">
|
|
15
|
+
{{> checkout_order-summary-new head=title mod=mod id=id}}
|
|
16
|
+
|
|
17
|
+
{{#if klarna-placement}}
|
|
18
|
+
<div class="summary__klarna">
|
|
19
|
+
<klarna-placement
|
|
20
|
+
data-key="credit-promotion-badge"
|
|
21
|
+
data-locale="en-GB"
|
|
22
|
+
data-purchase-amount="12000"
|
|
23
|
+
></klarna-placement>
|
|
70
24
|
</div>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
25
|
+
{{/if}}
|
|
26
|
+
{{#if clearpay-placement}}
|
|
27
|
+
{{> clearpay applyMargin=true hasKlarna=true}}
|
|
28
|
+
{{/if}}
|
|
29
|
+
{{#unless basket}}
|
|
30
|
+
<div class="summary__payment footer-checkout">
|
|
31
|
+
{{#unless merged}}
|
|
32
|
+
{{#if paymentsCheckoutV2 }}
|
|
33
|
+
<div class="footer-checkout-holder footer-checkout-holder--payways">
|
|
34
|
+
{{> payments-checkout-v2 }}
|
|
35
|
+
</div>
|
|
36
|
+
{{else}}
|
|
37
|
+
<div class="footer-checkout-holder">
|
|
38
|
+
{{> payments-checkout clearPayIcon="true" }}
|
|
39
|
+
<span class="footer-checkout__copyright">Copyright © <span class="current-year"></span> Wickes.co.uk</span>
|
|
40
|
+
</div>
|
|
41
|
+
{{/if}}
|
|
42
|
+
{{else}}
|
|
43
|
+
<div class="summary__payment-message">
|
|
44
|
+
<p class="summary__payment-main">{{vat-message.main}}</p>
|
|
45
|
+
<p class="summary__payment-additional">{{vat-message.additional}}</p>
|
|
46
|
+
</div>
|
|
47
|
+
{{/unless}}
|
|
75
48
|
</div>
|
|
76
|
-
{{/if}}
|
|
77
|
-
{{else}}
|
|
78
|
-
<div class="summary__payment-message">
|
|
79
|
-
<p class="summary__payment-main">{{vat-message.main}}</p>
|
|
80
|
-
<p class="summary__payment-additional">{{vat-message.additional}}</p>
|
|
81
|
-
</div>
|
|
82
49
|
{{/unless}}
|
|
83
|
-
</div>
|
|
84
|
-
{{/unless}}
|
|
85
|
-
</div>
|
|
86
|
-
|
|
87
|
-
{{#if basket-id}}
|
|
88
|
-
<div class="summary__basked-id">
|
|
89
|
-
Basket ID: <span class="id-number">136589003</span>
|
|
90
50
|
</div>
|
|
91
|
-
{{/if}}
|
|
92
51
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
52
|
+
{{#if basket-id}}
|
|
53
|
+
<div class="summary__basked-id">
|
|
54
|
+
Basket ID: <span class="id-number">136589003</span>
|
|
55
|
+
</div>
|
|
56
|
+
{{/if}}
|
|
57
|
+
|
|
58
|
+
{{#if email}}
|
|
59
|
+
<div class="summary__email">
|
|
60
|
+
<h3 class="heading-3">Email</h3>
|
|
61
|
+
<div class="summary__email-info">
|
|
62
|
+
Examplemail@wickes.co.uk
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
{{/if}}
|
|
101
66
|
</div>
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
</p>
|
|
16
16
|
<div class="form-row">
|
|
17
17
|
<div class="form-row__field">
|
|
18
|
-
{{> checkbox id="email-chk" label="Email
|
|
19
|
-
TradePro barcode via email)"}}
|
|
18
|
+
{{> checkbox id="email-chk" label="Email"}}
|
|
20
19
|
</div>
|
|
21
20
|
</div>
|
|
22
21
|
<div class="form-row">
|
|
@@ -21,24 +21,4 @@ $(document).ready(function () {
|
|
|
21
21
|
if (navigator.userAgent.match(/TradeProMobile_iOS|TradeProMobile_Android|DIYMobile_iOS|DIYMobile_Android/i)) {
|
|
22
22
|
$('body').addClass('tp-app');
|
|
23
23
|
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
$(function(){
|
|
27
|
-
if (Wick.isTradePro) {
|
|
28
|
-
$('body').addClass('tp-app');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
if (Wick.isTradeProAndroid) {
|
|
32
|
-
$('body').addClass('tp-android');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (Wick.isTradeProiOS) {
|
|
36
|
-
$('body').addClass('tp-ios');
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
window.matchMedia('(min-width: 768px)').matches
|
|
40
|
-
) {
|
|
41
|
-
$('body').addClass('tp-ios-notch');
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
});
|
|
24
|
+
});
|
|
@@ -54,8 +54,7 @@ Wick.VatToggle = {
|
|
|
54
54
|
},
|
|
55
55
|
|
|
56
56
|
isToggleVatAvailable: function() {
|
|
57
|
-
|
|
58
|
-
return true;
|
|
57
|
+
return window.ACC.app.isVatToggleAvailable;
|
|
59
58
|
},
|
|
60
59
|
|
|
61
60
|
isOn: function () {
|
|
@@ -125,7 +124,7 @@ Wick.VatToggle = {
|
|
|
125
124
|
|
|
126
125
|
init: function() {
|
|
127
126
|
const isVatShouldBeToggled = Wick.VatToggle.isOn();
|
|
128
|
-
const isVatToggled = Wick.VatToggle.getSwitcherState();
|
|
127
|
+
const isVatToggled = !!Wick.VatToggle.getSwitcherState();
|
|
129
128
|
|
|
130
129
|
if(isVatShouldBeToggled) {
|
|
131
130
|
Wick.VatToggle.setLabelState();
|
|
@@ -43,7 +43,7 @@ Wick.BasketData = (function () {
|
|
|
43
43
|
"status": 400,
|
|
44
44
|
"responseJSON": {
|
|
45
45
|
"globalMessage": {
|
|
46
|
-
"message": "Delivery is already free
|
|
46
|
+
"message": "Delivery is already free. Coupon can’t be applied",
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
},
|
|
@@ -443,8 +443,8 @@ Wick.BasketData = (function () {
|
|
|
443
443
|
"appliedProductPromotions": [],
|
|
444
444
|
"appliedOrderPromotions": [],
|
|
445
445
|
"promotionsInfo": null,
|
|
446
|
-
"clickAndCollectOnly":
|
|
447
|
-
"deliveryItemsQuantity":
|
|
446
|
+
"clickAndCollectOnly": true,
|
|
447
|
+
"deliveryItemsQuantity": 0,
|
|
448
448
|
"pickupItemsQuantity": 2,
|
|
449
449
|
"freeDelivery": false,
|
|
450
450
|
"subtotalWithoutCharity": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
|
package/src/js/page/basket-v2.js
CHANGED
|
@@ -739,6 +739,7 @@ Wick.BasketPage = {
|
|
|
739
739
|
|
|
740
740
|
Wick.BasketPage.paintActionButton();
|
|
741
741
|
checkPayPalAvailability(data);
|
|
742
|
+
Wick.VatToggle.reapplyDisplayClass();
|
|
742
743
|
$(document).trigger("cartRerender");
|
|
743
744
|
},
|
|
744
745
|
createBasketSection: function (type, group, data) {
|
|
@@ -848,11 +849,11 @@ Wick.BasketPage = {
|
|
|
848
849
|
? '<span class="order-item__value">FREE</span>'
|
|
849
850
|
: Wick.VatToggle.isToggleVatAvailable()
|
|
850
851
|
? `
|
|
851
|
-
<div class="including-vat
|
|
852
|
+
<div class="including-vat"><!--
|
|
852
853
|
--><span class="order-item__value">${currentItem.basePrice.formattedValue}</span><!--
|
|
853
854
|
--><div class="price-vat">Inc.VAT</div>
|
|
854
855
|
</div>
|
|
855
|
-
<div class="excluding-vat
|
|
856
|
+
<div class="excluding-vat"><!--
|
|
856
857
|
--><span class="order-item__value">${currentItem.basePriceExcVat.formattedValue}</span><!--
|
|
857
858
|
--><div class="price-vat">Exc.VAT</div>
|
|
858
859
|
</div>
|
|
@@ -870,11 +871,11 @@ Wick.BasketPage = {
|
|
|
870
871
|
? '<span class="order-item__value">FREE</span>'
|
|
871
872
|
: Wick.VatToggle.isToggleVatAvailable()
|
|
872
873
|
? `
|
|
873
|
-
<div class="including-vat
|
|
874
|
+
<div class="including-vat"><!--
|
|
874
875
|
--><span class="order-item__value">${currentItem.itemTotalWithoutDiscount.formattedValue}</span><!--
|
|
875
876
|
--><div class="price-vat">Inc.VAT</div><!--
|
|
876
877
|
--></div>
|
|
877
|
-
<div class="excluding-vat
|
|
878
|
+
<div class="excluding-vat"><!--
|
|
878
879
|
--><span class="order-item__value">${currentItem.itemTotalWithoutDiscountExcVat.formattedValue}</span><!--
|
|
879
880
|
--><div class="price-vat">Exc.VAT</div>
|
|
880
881
|
</div>
|
|
@@ -999,11 +1000,11 @@ Wick.BasketPage = {
|
|
|
999
1000
|
${
|
|
1000
1001
|
Wick.VatToggle.isToggleVatAvailable()
|
|
1001
1002
|
? `
|
|
1002
|
-
<div class="including-vat
|
|
1003
|
+
<div class="including-vat"><!--
|
|
1003
1004
|
--><span class="order-item__value">£${item.product.pricePerSqm.formattedPriceWithoutCurrencySymbol}</span><!--
|
|
1004
1005
|
--><div class="price-vat">Inc.VAT</div>
|
|
1005
1006
|
</div>
|
|
1006
|
-
<div class="excluding-vat
|
|
1007
|
+
<div class="excluding-vat"><!--
|
|
1007
1008
|
--><span class="order-item__value">£${item.product.pricePerSqmExcVat.formattedPriceWithoutCurrencySymbol}</span><!--
|
|
1008
1009
|
--><div class="price-vat">Exc.VAT</div>
|
|
1009
1010
|
</div>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {updateDiscount} from "./discounts";
|
|
2
|
-
import {addClassToSummaryAside} from "../basket/summary-mobile";
|
|
3
2
|
|
|
4
3
|
const osEl = {
|
|
5
4
|
$summarySection: $('.summary'),
|
|
@@ -10,9 +9,9 @@ const osEl = {
|
|
|
10
9
|
itemFree: '.checkout-widget__item-free',
|
|
11
10
|
itemDeficit: '.checkout-widget__item-deficit',
|
|
12
11
|
summaryDelivery: '.checkout-widget__item-delivery',
|
|
13
|
-
summaryMobileTotal: '.summary__mobile-bar-total',
|
|
14
12
|
}
|
|
15
13
|
|
|
14
|
+
|
|
16
15
|
export function updateOrderSummary(data, equalMap, isVoucher) {
|
|
17
16
|
equalMap.forEach((obj) => {
|
|
18
17
|
if ($(obj.item).length) {
|
|
@@ -33,13 +32,9 @@ export function updateOrderSummary(data, equalMap, isVoucher) {
|
|
|
33
32
|
}
|
|
34
33
|
})
|
|
35
34
|
|
|
36
|
-
const value = data.totalPrice?.formattedValue || data.total;
|
|
37
|
-
|
|
38
35
|
updateDiscount(data, isVoucher);
|
|
39
36
|
hideUnusedDeliveryTypeCost(data, isVoucher);
|
|
40
37
|
calculateFreeDelivery(data);
|
|
41
|
-
updateSummaryMobileBarTotal(value);
|
|
42
|
-
addClassToSummaryAside(data);
|
|
43
38
|
}
|
|
44
39
|
|
|
45
40
|
function createCheckoutWidgetItem(obj) {
|
|
@@ -102,6 +97,3 @@ function calculateFreeDelivery(data) {
|
|
|
102
97
|
})
|
|
103
98
|
}
|
|
104
99
|
|
|
105
|
-
function updateSummaryMobileBarTotal(formattedValue) {
|
|
106
|
-
$(osEl.summaryMobileTotal).text(formattedValue);
|
|
107
|
-
}
|
|
@@ -15,7 +15,7 @@ const voucherEl = {
|
|
|
15
15
|
formInvalid: 'form_invalid',
|
|
16
16
|
fieldRow: '.form-row[data-row-required]',
|
|
17
17
|
rowValidationError: 'form-row_validation-error',
|
|
18
|
-
voucherHide: 'checkout-voucher-hide',
|
|
18
|
+
voucherHide: '.checkout-voucher-hide',
|
|
19
19
|
fieldError: '.form-row__error',
|
|
20
20
|
subtotal: '.checkout-widget__item-bold',
|
|
21
21
|
vat: '.checkout-widget__item-vat',
|
|
@@ -19,14 +19,15 @@
|
|
|
19
19
|
{{/content}}
|
|
20
20
|
{{#content "aside"}}
|
|
21
21
|
{{> order-summary
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
shopping-cart-v2.checkout
|
|
23
|
+
id=1
|
|
24
|
+
title="Order Summary"
|
|
25
|
+
basket=true
|
|
26
26
|
}}
|
|
27
27
|
{{> checkout-action mod="mounted"}}
|
|
28
|
-
{{> checkout-action mod="mounted" view="mobile"}}
|
|
29
28
|
{{> summary-payment paymentsCheckoutV2=true}}
|
|
29
|
+
{{> checkout_voucher_large title="Voucher Code" id="1"}}
|
|
30
|
+
{{> checkout-action mod="large checkout-action-payways"}}
|
|
30
31
|
{{/content}}
|
|
31
32
|
{{#content "main"}}
|
|
32
33
|
<input type="hidden" id="SUPPLIER_DELIVERED_7_DAYS" value="<b> Wickes Supplier </b> - Delivery within 7 days">
|
|
@@ -40,7 +41,16 @@
|
|
|
40
41
|
{{/each}}
|
|
41
42
|
</section>
|
|
42
43
|
{{/each}}
|
|
43
|
-
{{> charity-donations-multiple shopping-cart-v2.charityDonationMultiple}}
|
|
44
|
+
{{> charity-donations-multiple shopping-cart-v2.charityDonationMultiple}}
|
|
45
|
+
{{> checkout_voucher_large title="Voucher Code" id="2"}}
|
|
46
|
+
{{> order-summary
|
|
47
|
+
shopping-cart-v2.checkout
|
|
48
|
+
title="Order Summary"
|
|
49
|
+
id=2
|
|
50
|
+
mod="large"
|
|
51
|
+
basket=true
|
|
52
|
+
}}
|
|
53
|
+
{{> checkout-action mod="checkout-action-payways"}}
|
|
44
54
|
{{/content}}
|
|
45
55
|
{{#content "foot" mode="append"}}
|
|
46
56
|
<script defer src="./js/basket.min.js"></script>
|