wickes-css2 2.107.0-tech-debt-issues.1 → 2.107.0
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 +1 -2
- package/build/css/category-main.css +1 -1
- package/build/css/components/card-product-banner.css +1 -1
- package/build/css/components/checkout-chip.css +1 -1
- package/build/css/components/checkout-payment-details-v2.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/kitchen-plp-main.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/my-account-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/my-account-v2.css +1 -1
- package/build/css/pages/page_product_search.css +1 -1
- package/build/css/pages/page_products-list-combined.css +1 -1
- package/build/css/pages/page_products-list_v2.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-critical.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/js/emulation.min.js +1 -21
- package/build/js/gift-cards.min.js +1 -1
- package/build/js/page/checkout-payment-details.js +87 -248
- package/build/js/page/checkout.js +1 -1
- package/build/js/page/components/gift-cards.js +357 -701
- package/build/js/page/kitchen/card-carousel.js +22 -22
- package/package.json +1 -1
- package/src/components/cart-voucher.hbs +10 -1
- package/src/components/checkout-payment-details-v2.hbs +4 -4
- package/src/components/checkout-payment-info-block.hbs +1 -1
- package/src/components/checkout_order-summary-new.hbs +1 -1
- package/src/components/gift-cards.hbs +14 -7
- package/src/components/order-item.hbs +18 -5
- package/src/components/order-summary.hbs +1 -1
- package/src/components/payments.hbs +5 -6
- package/src/components/potential-promotion.hbs +12 -3
- package/src/components/price-block-v2.hbs +1 -0
- package/src/data/data_delivery-address-v2.json +0 -4
- package/src/data/data_payments-checkout.json +0 -4
- package/src/data/data_quick-filter.json +3 -3
- package/src/data/data_shopping-cart-v2.json +23 -5
- package/src/data/footer_menu.json +0 -4
- package/src/js/emulation/checkout-payment-details.js +1 -26
- package/src/js/page/checkout-payment-details.js +87 -248
- package/src/js/page/checkout.js +1 -1
- package/src/js/page/components/gift-cards.js +357 -701
- package/src/js/page/kitchen/card-carousel.js +22 -22
- package/src/page_my-account-installer-carousel.html +131 -0
- package/src/page_payment-details-with-gift-card.html +1 -1
- package/src/page_product-details-billie.html +0 -2
- package/src/page_product-details-clearpay.html +0 -1
- package/src/page_shopping-cart-v2-vat.html +2 -1
- package/src/scss/components/_gift-cards.scss +3 -32
- package/src/scss/components/_payments-checkout.scss +2 -2
- package/src/scss/components/_payments-v2.scss +1 -1
- package/src/scss/components/_plp-filters.scss +9 -0
- package/src/scss/components/_price-block-critical.scss +8 -1
- package/src/scss/components/_quick-filter.scss +43 -11
- package/src/scss/components/_search-filter.scss +6 -0
- package/src/scss/components/card-product-banner.scss +1 -10
- package/src/scss/components/checkout-chip.scss +1 -0
- package/src/scss/components/checkout-payment-details-v2.scss +12 -0
- package/src/scss/components/my-account/_clipboard-code.scss +4 -0
- package/src/scss/helpers/_variables.scss +0 -2
- package/src/scss/pages/page_product_search.scss +3 -13
- package/src/scss/pages/page_products-list-combined.scss +1 -28
- package/src/scss/pages/page_products-list_v2.scss +2 -19
- package/src/sitemap.html +1 -0
- package/build/img/payment/checkout/giftcard.svg +0 -28
- package/build/img/payment/footer/giftcard.svg +0 -28
- package/src/img/payment/checkout/giftcard.svg +0 -28
- package/src/img/payment/footer/giftcard.svg +0 -28
|
@@ -3,30 +3,30 @@ var Wick = Wick || {};
|
|
|
3
3
|
Wick.PLPCardSwiper = {};
|
|
4
4
|
|
|
5
5
|
$(document).ready(function () {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
const SELECTORS = {
|
|
7
|
+
kitchenCard: '.kitchen-card',
|
|
8
|
+
swiperContainer: '.swiper-container-main',
|
|
9
|
+
nextButton: '.kitchen-card__next-btn',
|
|
10
|
+
prevButton: '.kitchen-card__prev-btn',
|
|
11
|
+
};
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
$(SELECTORS.kitchenCard).each(function (index, container) {
|
|
14
|
+
const $container = $(container);
|
|
15
|
+
const id = $container.data('id');
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
const sliderElement = $container.find(SELECTORS.swiperContainer)[0];
|
|
18
|
+
const nextButtonElement = $container.find(SELECTORS.nextButton)[0];
|
|
19
|
+
const prevButtonElement = $container.find(SELECTORS.prevButton)[0];
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
const swiper = new Swiper(sliderElement, {
|
|
22
|
+
speed: 400,
|
|
23
|
+
navigation: {
|
|
24
|
+
nextEl: nextButtonElement,
|
|
25
|
+
prevEl: prevButtonElement,
|
|
26
|
+
},
|
|
27
|
+
simulateTouch: false,
|
|
28
|
+
});
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
Wick.PLPCardSwiper[id] = swiper;
|
|
31
|
+
});
|
|
32
32
|
});
|
package/package.json
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
<li>
|
|
2
|
-
{{
|
|
2
|
+
{{#ifCond switch-vat '&&' textExcVat}}
|
|
3
|
+
<span class="including-vat">
|
|
4
|
+
{{{text}}}
|
|
5
|
+
</span>
|
|
6
|
+
<span class="excluding-vat d-none">
|
|
7
|
+
{{{textExcVat}}}
|
|
8
|
+
</span>
|
|
9
|
+
{{else}}
|
|
10
|
+
{{{text}}}
|
|
11
|
+
{{/ifCond}}
|
|
3
12
|
{{#if isDeletable}}
|
|
4
13
|
<span class="icon checkout-widget__voucher-remove">
|
|
5
14
|
<span class="fas fa-times"></span>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
type="radio"
|
|
26
26
|
id="checkout-payment-details-apple"
|
|
27
27
|
name="payment-method"
|
|
28
|
-
value="apple
|
|
28
|
+
value="apple">
|
|
29
29
|
<ins></ins>
|
|
30
30
|
<div class="apple-logo">
|
|
31
31
|
<img src="img/apple-pay.svg" alt="apple pay">
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
type="radio"
|
|
45
45
|
id="checkout-payment-details-google"
|
|
46
46
|
name="payment-method"
|
|
47
|
-
value="google
|
|
47
|
+
value="google">
|
|
48
48
|
<ins></ins>
|
|
49
49
|
<div class="google-logo">
|
|
50
50
|
<img src="img/google-pay-mark.svg" alt="google pay">
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
</div>
|
|
135
135
|
</div>
|
|
136
136
|
|
|
137
|
-
<div data-apple
|
|
137
|
+
<div data-apple class="form-row form-row__action form-row__save apple-wrap" style="display: none;">
|
|
138
138
|
<div class="form-row__col-btn">
|
|
139
139
|
<apple-pay-button class="apple__button" buttonstyle="black" type="pay" locale="en-GB"></apple-pay-button>
|
|
140
140
|
</div>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
</div>
|
|
147
147
|
</div>
|
|
148
148
|
|
|
149
|
-
<div data-google
|
|
149
|
+
<div data-google class="form-row form-row__action form-row__save google-wrap" style="display: none;">
|
|
150
150
|
<div class="form-row__col-btn">
|
|
151
151
|
<div class="google__button" id="google-pay-btn">
|
|
152
152
|
<button type="button" aria-label="Pay with GPay" class="gpay-button black pay en"></button>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div {{#if dataAttr}}{{dataAttr}}{{/if}} class="{{blockClass}}" style="display: none;">
|
|
2
|
-
<div class="{{infoClass}}"
|
|
2
|
+
<div class="{{infoClass}}">
|
|
3
3
|
<div class="{{infoClass}}__header">
|
|
4
4
|
<h4 class="{{infoClass}}__header_title">{{{heading}}}</h4>
|
|
5
5
|
<div class="{{infoClass}}__logo-img-big">
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</span>
|
|
35
35
|
<ul class="checkout-widget__details-hidden collapse" id="acheckout-widget-accordion-{{id}}">
|
|
36
36
|
{{#each discounts}}
|
|
37
|
-
{{> cart-voucher}}
|
|
37
|
+
{{> cart-voucher switch-vat=../switch-vat}}
|
|
38
38
|
{{/each}}
|
|
39
39
|
</ul>
|
|
40
40
|
<span class="checkout-widget__detail-value">£0.00</span>
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
<div class="form-row giftcard-row">
|
|
2
2
|
<div class="giftcard">
|
|
3
3
|
<div class="giftcard__wrapper">
|
|
4
|
-
<span
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<span
|
|
5
|
+
class="giftcard-add"
|
|
6
|
+
id="giftcard-toggle"
|
|
7
|
+
role="button"
|
|
8
|
+
tabindex="0"
|
|
9
|
+
aria-controls="giftcard-inline"
|
|
10
|
+
aria-expanded="false"
|
|
11
|
+
>
|
|
12
|
+
<span class="icon">
|
|
13
|
+
<i class="fas fa-plus giftcard-add__icon" aria-hidden="true"></i>
|
|
14
|
+
</span>
|
|
15
|
+
<span class="giftcard-add__text">Add Wickes Gift Card</span>
|
|
16
|
+
</span>
|
|
17
|
+
<span class="giftcard-hint">Combine with Credit/Debit card</span>
|
|
11
18
|
</div>
|
|
12
19
|
|
|
13
20
|
<div class="giftcard__container">
|
|
@@ -37,11 +37,24 @@
|
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
39
|
{{#if offers}}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
{{#ifCond switch-vat '&&' offersExcVat}}
|
|
41
|
+
<div class="order-item__offers including-vat">
|
|
42
|
+
{{#each offers}}
|
|
43
|
+
<div class="order-item__promo">{{this}}</div>
|
|
44
|
+
{{/each}}
|
|
45
|
+
</div>
|
|
46
|
+
<div class="order-item__offers excluding-vat d-none">
|
|
47
|
+
{{#each offersExcVat}}
|
|
48
|
+
<div class="order-item__promo">{{this}}</div>
|
|
49
|
+
{{/each}}
|
|
50
|
+
</div>
|
|
51
|
+
{{else}}
|
|
52
|
+
<div class="order-item__offers">
|
|
53
|
+
{{#each offers}}
|
|
54
|
+
<div class="order-item__promo">{{this}}</div>
|
|
55
|
+
{{/each}}
|
|
56
|
+
</div>
|
|
57
|
+
{{/ifCond}}
|
|
45
58
|
{{/if}}
|
|
46
59
|
</div>
|
|
47
60
|
<div class="order-item__cost">
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
</div>
|
|
48
48
|
{{/if}}
|
|
49
49
|
<div class="summary__aside">
|
|
50
|
-
{{> checkout_order-summary-new head=title mod=mod id=id}}
|
|
50
|
+
{{> checkout_order-summary-new head=title mod=mod id=id switch-vat=switch-vat}}
|
|
51
51
|
|
|
52
52
|
{{#if klarna-placement}}
|
|
53
53
|
<div class="summary__klarna">
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
<div class="payways">
|
|
2
2
|
<p class="payways__title">Ways to Pay</p>
|
|
3
3
|
<ul class="payways__list">
|
|
4
|
-
{{#if klarnaIcon}}
|
|
5
|
-
<li class="payways__item">
|
|
6
|
-
<img class="payways__image" src="./img/payment/footer/klarna.svg" alt="klarna">
|
|
7
|
-
</span>
|
|
8
|
-
</li>
|
|
9
|
-
{{/if}}
|
|
10
4
|
{{#if billieIcon}}
|
|
11
5
|
<li class="payways__item">
|
|
12
6
|
<img class="payways__image" src="./img/payment/footer/billie.svg" alt="Billie">
|
|
13
7
|
</li>
|
|
8
|
+
{{else}}
|
|
9
|
+
<li class="payways__item">
|
|
10
|
+
<img class="payways__image" src="./img/payment/footer/klarna.svg" alt="klarna">
|
|
11
|
+
</span>
|
|
12
|
+
</li>
|
|
14
13
|
{{/if}}
|
|
15
14
|
{{#each payments-list}}
|
|
16
15
|
<li class="payways__item">
|
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
<div class="p-promotion__icon">
|
|
3
3
|
<i class="icon fas fa-gift"></i>
|
|
4
4
|
</div>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
{{#ifCond switch-vat '&&' descriptionExcVat}}
|
|
6
|
+
<div class="p-promotion__description including-vat">
|
|
7
|
+
{{description}}
|
|
8
|
+
</div>
|
|
9
|
+
<div class="p-promotion__description excluding-vat d-none">
|
|
10
|
+
{{descriptionExcVat}}
|
|
11
|
+
</div>
|
|
12
|
+
{{else}}
|
|
13
|
+
<div class="p-promotion__description">
|
|
14
|
+
{{description}}
|
|
15
|
+
</div>
|
|
16
|
+
{{/ifCond}}
|
|
8
17
|
<div class="p-promotion__close">
|
|
9
18
|
<i class="icon fas fa-times"></i>
|
|
10
19
|
</div>
|
|
@@ -181,6 +181,7 @@
|
|
|
181
181
|
{{/if}}
|
|
182
182
|
{{/unless}}
|
|
183
183
|
">
|
|
184
|
+
<p>Minimum order quantity for delivery is 4</p>
|
|
184
185
|
{{#unless isQuantity}}
|
|
185
186
|
<label for="quantity-field" class="quantity-label">Quantity: </label>
|
|
186
187
|
<input type="text" inputmode="numeric" required="" pattern="[0-9]*\d" id="quantity-field"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"values": [
|
|
7
7
|
{
|
|
8
8
|
"text": null,
|
|
9
|
-
"additionalData": "./img/quick-filters/
|
|
9
|
+
"additionalData": "./img/quick-filters/bath4.svg",
|
|
10
10
|
"url": "?filter=icon1",
|
|
11
11
|
"selected": false
|
|
12
12
|
},
|
|
@@ -221,8 +221,8 @@
|
|
|
221
221
|
"displayText": "Select Size",
|
|
222
222
|
"values": [
|
|
223
223
|
{
|
|
224
|
-
"text": "
|
|
225
|
-
"additionalData": "./img/quick-filters/
|
|
224
|
+
"text": "15 minute Click & Collect",
|
|
225
|
+
"additionalData": "./img/quick-filters/bath4.svg",
|
|
226
226
|
"url": "?size=double",
|
|
227
227
|
"selected": false
|
|
228
228
|
},
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
},
|
|
9
9
|
"potentialOrderPromotions": [
|
|
10
10
|
{
|
|
11
|
-
"description": "Spend over £200 on Bathroom Lighting and save £10.0"
|
|
11
|
+
"description": "Spend over £200 on Bathroom Lighting and save £10.0",
|
|
12
|
+
"descriptionExcVat": "Spend over £150 on Bathroom Lighting and save £10.0"
|
|
12
13
|
},
|
|
13
14
|
{
|
|
14
|
-
"description": "Spend over 2500 pound and get £2500 discount"
|
|
15
|
+
"description": "Spend over 2500 pound and get £2500 discount",
|
|
16
|
+
"descriptionExcVat": "Spend over 2000 pound and get £2000 discount"
|
|
15
17
|
}
|
|
16
18
|
],
|
|
17
19
|
"checkout": {
|
|
@@ -43,23 +45,28 @@
|
|
|
43
45
|
"discounts": [
|
|
44
46
|
{
|
|
45
47
|
"text": "Voucher abcd applies and giving 20% off",
|
|
48
|
+
"textExcVat": "Voucher abcd applies and giving 18% off",
|
|
46
49
|
"isDeletable": true
|
|
47
50
|
},
|
|
48
51
|
{
|
|
49
52
|
"text": "Voucher 20% off",
|
|
53
|
+
"textExcVat": "Voucher 18% off",
|
|
50
54
|
"isDeletable": true
|
|
51
55
|
},
|
|
52
56
|
{
|
|
53
|
-
"text": "Buy 4 for 3"
|
|
57
|
+
"text": "Buy 4 for 3",
|
|
58
|
+
"textExcVat": "Buy 5 for 3"
|
|
54
59
|
},
|
|
55
60
|
{
|
|
56
61
|
"text": "Online only offer"
|
|
57
62
|
},
|
|
58
63
|
{
|
|
59
|
-
"text": "2 for £35"
|
|
64
|
+
"text": "2 for £35",
|
|
65
|
+
"textExcVat": "2 for £30"
|
|
60
66
|
},
|
|
61
67
|
{
|
|
62
|
-
"text": "Offer price equivalent to £17.50 per item"
|
|
68
|
+
"text": "Offer price equivalent to £17.50 per item",
|
|
69
|
+
"textExcVat": "Offer price equivalent to £15.50 per item"
|
|
63
70
|
}
|
|
64
71
|
],
|
|
65
72
|
"total": {
|
|
@@ -86,6 +93,10 @@
|
|
|
86
93
|
"Buy 2 for 3 — Add 1 to qualify",
|
|
87
94
|
"Buy 2 for 3 — Add 1 to qualify"
|
|
88
95
|
],
|
|
96
|
+
"offersExcVat": [
|
|
97
|
+
"Buy 2 for 4 — Add 2 to qualify",
|
|
98
|
+
"Buy 2 for 4 — Add 2 to qualify"
|
|
99
|
+
],
|
|
89
100
|
"pricePerSQM": {
|
|
90
101
|
"value": "12"
|
|
91
102
|
},
|
|
@@ -1049,6 +1060,10 @@
|
|
|
1049
1060
|
"Buy 2 for 3 — Add 1 to qualify",
|
|
1050
1061
|
"Buy 2 for 3 — Add 1 to qualify"
|
|
1051
1062
|
],
|
|
1063
|
+
"offersExcVat": [
|
|
1064
|
+
"Buy 2 for 4 — Add 2 to qualify",
|
|
1065
|
+
"Buy 2 for 4 — Add 2 to qualify"
|
|
1066
|
+
],
|
|
1052
1067
|
"message": "Purchased 12 times since your last visit 1 day ago",
|
|
1053
1068
|
"infoTimeHead": "Available for Collection",
|
|
1054
1069
|
"address": "Watford",
|
|
@@ -1109,6 +1124,9 @@
|
|
|
1109
1124
|
"totalMobile": "16",
|
|
1110
1125
|
"offers": [
|
|
1111
1126
|
"Buy 2 Wickes Romano Bathroom Door Handle - Polished Chrome 1 Pair, Wickes Romano Locking Door Handle - Satin Nickel 1 Pair, Wickes Passage Door Knob Set - Brass 1 Pair for £8 - Add 1 to qualify"
|
|
1127
|
+
],
|
|
1128
|
+
"offersExcVat": [
|
|
1129
|
+
"Buy 2 Wickes Romano Bathroom Door Handle - Polished Chrome 1 Pair, Wickes Romano Locking Door Handle - Satin Nickel 1 Pair, Wickes Passage Door Knob Set - Brass 1 Pair for £7 - Add 1 to qualify"
|
|
1112
1130
|
]
|
|
1113
1131
|
},
|
|
1114
1132
|
{
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
window.Wick.BillieData = window.Wick.BillieData || {};
|
|
3
|
-
window.Wick.BillieData.billiePaymentTerms = ['30', '60', '90'];
|
|
4
|
-
window.INIT_KLARNA_PAYMENT = window.INIT_KLARNA_PAYMENT || 'INIT_KLARNA_PAYMENT';
|
|
5
|
-
window.INIT_BILLIE_PAYMENT = window.INIT_BILLIE_PAYMENT || 'INIT_BILLIE_PAYMENT';
|
|
1
|
+
var Wick = Wick || {};
|
|
6
2
|
|
|
7
3
|
Wick.PaymentDetails = (function () {
|
|
8
4
|
var $btnEnterDetails = $('.btn-enter-details'),
|
|
9
5
|
isGuestPage = $('.page_checkout-payment-details_guest').length;
|
|
10
6
|
|
|
11
|
-
const $billieInfo = $('.checkout-payment-details__billie .billie-info');
|
|
12
|
-
const $klarnaInfo = $('.checkout-payment-details__klarna .klarna-info');
|
|
13
|
-
|
|
14
7
|
function bindEvents() {
|
|
15
8
|
$btnEnterDetails.on('click', function (e) {
|
|
16
9
|
e.preventDefault();
|
|
@@ -56,24 +49,6 @@ Wick.PaymentDetails = (function () {
|
|
|
56
49
|
Wick.Forms.showValidationErrors(this);
|
|
57
50
|
return false;
|
|
58
51
|
});
|
|
59
|
-
|
|
60
|
-
$(window).on(window.INIT_BILLIE_PAYMENT, function (e) {
|
|
61
|
-
const detail = e.detail || (e.originalEvent && e.originalEvent.detail) || {};
|
|
62
|
-
|
|
63
|
-
if (detail && detail.resolve) {
|
|
64
|
-
$billieInfo.show();
|
|
65
|
-
detail.resolve();
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
$(window).on(window.INIT_KLARNA_PAYMENT, function (e) {
|
|
70
|
-
const detail = e.detail || (e.originalEvent && e.originalEvent.detail) || {};
|
|
71
|
-
|
|
72
|
-
if (detail && detail.resolve) {
|
|
73
|
-
$klarnaInfo.show();
|
|
74
|
-
detail.resolve();
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
52
|
}
|
|
78
53
|
|
|
79
54
|
bindEvents();
|