wickes-css2 2.103.0-RG-1587-replace-klarna-logo-with-svg-image.1 → 2.103.0-RG-1742-billie-30-60-90-days.2
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 -0
- package/build/css/components/card-product-banner.css +1 -1
- package/build/css/components/checkout-payment-details-v2.css +1 -1
- package/build/css/components/checkout-payment-repayment-terms.css +1 -0
- package/build/css/main.css +1 -1
- package/build/css/pages/page_products-list-combined.css +1 -1
- package/build/css/pages/page_products-list.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/js/basket.min.js +1 -1
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/emulation.min.js +164 -152
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/page/checkout-payment-details.js +96 -43
- package/build/js/page/plp-cards-v2.js +6 -15
- package/build/js/page/plp-load-more.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/package.json +2 -2
- package/src/components/card_product_v2.hbs +5 -10
- package/src/components/checkout-payment-details-v2.hbs +48 -30
- package/src/components/checkout-payment-repayment-terms.hbs +25 -0
- package/src/components/checkout_payment-new.hbs +4 -1
- package/src/components/checkout_payment-other-methods.hbs +4 -1
- package/src/components/injected-content.hbs +1 -1
- package/src/components/payments-checkout-v2.hbs +7 -2
- package/src/components/payments-checkout.hbs +6 -1
- package/src/components/payments.hbs +5 -1
- package/src/components/table_order-details-klarna.hbs +1 -1
- package/src/components/table_payment.hbs +4 -1
- package/src/data/data_search-results_v2.json +141 -56
- package/src/data/data_wismo.json +1 -1
- package/src/js/components/product-banner.js +148 -0
- package/src/js/emulation/checkout-payment-details.js +8 -8
- package/src/js/emulation/forms.js +118 -89
- package/src/js/emulation/paymentLoader.js +4 -3
- package/src/js/emulation/repayment-toggle.js +35 -0
- package/src/js/page/checkout-payment-details.js +96 -43
- package/src/js/page/plp-cards-v2.js +6 -15
- package/src/js/page/plp-load-more.js +1 -1
- package/src/page_checkout_payment-details_guest-with-checkout-journey.html +1 -1
- package/src/page_my-order.html +1 -1
- package/src/page_payment-details-with-clearpay.html +2 -2
- package/src/page_plp_v2.html +6 -16
- package/src/page_search-results.html +2 -12
- package/src/page_shopping-cart-v2.html +2 -2
- package/src/page_split-orders-klarna.html +106 -0
- package/src/scss/components/card-product-banner.scss +3 -91
- package/src/scss/components/checkout-payment-details-v2.scss +1 -0
- package/src/scss/components/checkout-payment-repayment-terms.scss +104 -0
- package/src/scss/pages/page_products-list-combined.scss +0 -11
- package/src/scss/pages/page_products-list.scss +0 -8
- package/src/sitemap.html +6 -0
- package/build/img/klarna.svg +0 -10
- package/build/img/payment/checkout/klarna.svg +0 -10
- package/build/img/payment/footer/klarna.svg +0 -10
- package/src/components/card_sponsor_banner.hbs +0 -8
- package/src/components/card_sponsor_product.hbs +0 -6
- package/src/img/klarna.svg +0 -10
- package/src/img/payment/checkout/klarna.svg +0 -10
- package/src/img/payment/footer/klarna.svg +0 -10
- package/src/js/components/banner-placement-manager.js +0 -267
- package/src/js/emulation/banner-placement-manager.js +0 -53
|
@@ -8,6 +8,8 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
const elements = {
|
|
11
|
+
$billieRepaymentTerms: $('.js-billie-repayment-terms'),
|
|
12
|
+
$billieInfoBlock: $('.checkout-payment-details__billie'),
|
|
11
13
|
$wrapperPaymentInput: $('.checkout-payment-details__row'),
|
|
12
14
|
paymentInputName: '[name=payment-method]',
|
|
13
15
|
$cardDetails: $('.checkout-payment-details__card-details'),
|
|
@@ -15,45 +17,81 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
15
17
|
$billingAddress: $('.billing-address'),
|
|
16
18
|
hiddenCardDetailsClass: 'checkout-payment-details__card-details_hidden',
|
|
17
19
|
hiddenClass: 'd-none',
|
|
18
|
-
}
|
|
20
|
+
};
|
|
19
21
|
|
|
20
22
|
function preparePage() {
|
|
21
|
-
var modalOpened = $(
|
|
23
|
+
var modalOpened = $('.modal.show').length;
|
|
22
24
|
if (!modalOpened) {
|
|
23
25
|
return;
|
|
24
26
|
}
|
|
25
27
|
var modalContent = $modal.find('.modal-content').clone();
|
|
26
|
-
$modal.modal(
|
|
27
|
-
modalContent.addClass(
|
|
28
|
-
$(
|
|
29
|
-
.addClass(
|
|
28
|
+
$modal.modal('hide');
|
|
29
|
+
modalContent.addClass('print-area');
|
|
30
|
+
$('body')
|
|
31
|
+
.addClass('print-mode')
|
|
30
32
|
.append(modalContent);
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
function resetPage() {
|
|
34
|
-
var modalPrintModeActive = $(
|
|
36
|
+
var modalPrintModeActive = $('body.print-mode').length;
|
|
35
37
|
if (!modalPrintModeActive) {
|
|
36
38
|
return;
|
|
37
39
|
}
|
|
38
|
-
$(
|
|
39
|
-
$(
|
|
40
|
-
$modal.modal(
|
|
40
|
+
$('body').removeClass('print-mode');
|
|
41
|
+
$('.print-area').remove();
|
|
42
|
+
$modal.modal('show');
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
function getPaymentMethods() {
|
|
44
46
|
return $(elements.paymentInputName)
|
|
45
47
|
.map((_, item) => $(item).val())
|
|
46
|
-
.get()
|
|
48
|
+
.get();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function setBillieStepVisibility(isReady) {
|
|
52
|
+
setBillingDetailsRowVisibility(isReady);
|
|
53
|
+
|
|
54
|
+
elements.$billieInfoBlock.toggle(isReady);
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
function togglePaymentBlocks(paymentMethods, checkedMethod) {
|
|
50
58
|
paymentMethods.forEach(method => {
|
|
51
|
-
$(`[data-${method}]`).toggle(checkedMethod === method)
|
|
52
|
-
})
|
|
59
|
+
$(`[data-${method}]`).toggle(checkedMethod === method);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function setBillingDetailsRowVisibility(isVisible) {
|
|
64
|
+
const $row = elements.$billingAddress.find('.checkout-payment-details__row');
|
|
65
|
+
|
|
66
|
+
$row.toggle(isVisible);
|
|
67
|
+
|
|
68
|
+
$row.find(':input').prop('disabled', !isVisible);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
function resetBillieRepaymentSelection() {
|
|
73
|
+
elements.$billieRepaymentTerms.find('input[name="repaymentTerms"]').prop('checked', false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function bindBillieRepaymentGate() {
|
|
77
|
+
$(document).on('change', 'input[name="repaymentTerms"]', function() {
|
|
78
|
+
const currentMethod = $(elements.paymentInputName + ':checked').val();
|
|
79
|
+
if (currentMethod !== 'billie') return;
|
|
80
|
+
|
|
81
|
+
const hasSelection = $('input[name="repaymentTerms"]:checked').length > 0;
|
|
82
|
+
setBillingDetailsRowVisibility(hasSelection);
|
|
83
|
+
|
|
84
|
+
const $row = $(this).closest('.form-row[data-row-required]');
|
|
85
|
+
$row.removeClass('form-row_validation-error').find('.form-row__error').remove();
|
|
86
|
+
});
|
|
53
87
|
}
|
|
54
88
|
|
|
55
89
|
function changeDetailsBlock(checkedMethod) {
|
|
56
|
-
|
|
90
|
+
if (checkedMethod !== 'billie') {
|
|
91
|
+
setBillingDetailsRowVisibility(true);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
switch (checkedMethod) {
|
|
57
95
|
case 'paypal':
|
|
58
96
|
hideCardDetails();
|
|
59
97
|
showPlaceOrder();
|
|
@@ -66,42 +104,48 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
66
104
|
detailsLabel = {
|
|
67
105
|
...detailsLabel,
|
|
68
106
|
labelText: 'Name on Billie account',
|
|
69
|
-
buttonText: 'Pay with Billie'
|
|
70
|
-
}
|
|
107
|
+
buttonText: 'Pay with Billie',
|
|
108
|
+
};
|
|
71
109
|
changeLabelText(detailsLabel);
|
|
110
|
+
|
|
111
|
+
setBillieStepVisibility(false);
|
|
112
|
+
|
|
113
|
+
resetBillieRepaymentSelection();
|
|
72
114
|
break;
|
|
115
|
+
|
|
116
|
+
|
|
73
117
|
case 'clearpay':
|
|
74
118
|
detailsLabel = {
|
|
75
119
|
...detailsLabel,
|
|
76
120
|
labelText: 'Name on Clearpay account',
|
|
77
|
-
buttonText: 'Pay with Clearpay'
|
|
78
|
-
}
|
|
121
|
+
buttonText: 'Pay with Clearpay',
|
|
122
|
+
};
|
|
79
123
|
prevClearableMethod === 'card' && clearInputFields();
|
|
80
124
|
changeLabelText(detailsLabel);
|
|
81
125
|
prevClearableMethod = checkedMethod;
|
|
82
126
|
break;
|
|
83
127
|
case 'apple':
|
|
84
|
-
hideCardDetails()
|
|
85
|
-
hidePlaceOrder()
|
|
86
|
-
hideBillingAddres()
|
|
128
|
+
hideCardDetails();
|
|
129
|
+
hidePlaceOrder();
|
|
130
|
+
hideBillingAddres();
|
|
87
131
|
break;
|
|
88
132
|
case 'google':
|
|
89
|
-
hideCardDetails()
|
|
90
|
-
hidePlaceOrder()
|
|
91
|
-
hideBillingAddres()
|
|
133
|
+
hideCardDetails();
|
|
134
|
+
hidePlaceOrder();
|
|
135
|
+
hideBillingAddres();
|
|
92
136
|
break;
|
|
93
137
|
case 'card':
|
|
94
138
|
detailsLabel = {
|
|
95
139
|
...detailsLabel,
|
|
96
140
|
labelText: 'Name on card',
|
|
97
|
-
buttonText: 'Enter card details'
|
|
98
|
-
}
|
|
141
|
+
buttonText: 'Enter card details',
|
|
142
|
+
};
|
|
99
143
|
prevClearableMethod === 'clearpay' && clearInputFields();
|
|
100
144
|
changeLabelText(detailsLabel);
|
|
101
145
|
prevClearableMethod = checkedMethod;
|
|
102
146
|
break;
|
|
103
147
|
default:
|
|
104
|
-
showPlaceOrder()
|
|
148
|
+
showPlaceOrder();
|
|
105
149
|
}
|
|
106
150
|
}
|
|
107
151
|
|
|
@@ -117,7 +161,7 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
117
161
|
const { inputName, labelText, buttonName, buttonText } = params;
|
|
118
162
|
elements.$billingAddress.removeClass(elements.hiddenClass);
|
|
119
163
|
let labelElement = elements.$billingAddress.find('[for="' + inputName + '"]');
|
|
120
|
-
let buttonElement = elements.$billingAddress.find(
|
|
164
|
+
let buttonElement = elements.$billingAddress.find('.' + buttonName + ' .btn__text');
|
|
121
165
|
|
|
122
166
|
labelElement && labelElement.text(labelText);
|
|
123
167
|
buttonElement && buttonElement.text(buttonText);
|
|
@@ -138,11 +182,27 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
138
182
|
function init() {
|
|
139
183
|
const paymentMethods = getPaymentMethods();
|
|
140
184
|
|
|
185
|
+
$(document).on('change', 'input[name="repaymentTerms"]', function() {
|
|
186
|
+
const currentMethod = $(elements.paymentInputName + ':checked').val();
|
|
187
|
+
if (currentMethod !== 'billie') return;
|
|
188
|
+
|
|
189
|
+
const hasSelection = $('input[name="repaymentTerms"]:checked').length > 0;
|
|
190
|
+
|
|
191
|
+
setBillieStepVisibility(hasSelection);
|
|
192
|
+
|
|
193
|
+
const $row = $(this).closest('.form-row[data-row-required]');
|
|
194
|
+
$row.removeClass('form-row_validation-error')
|
|
195
|
+
.find('.form-row__error').remove();
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
|
|
141
199
|
elements.$wrapperPaymentInput.on('change', elements.paymentInputName, function() {
|
|
142
|
-
const
|
|
200
|
+
const form = $(this).closest('form')[0];
|
|
201
|
+
form && Wick.Forms.clearValidationErrors(form);
|
|
143
202
|
|
|
144
|
-
|
|
145
|
-
|
|
203
|
+
const checkedMethod = $(this).val();
|
|
204
|
+
togglePaymentBlocks(paymentMethods, checkedMethod);
|
|
205
|
+
changeDetailsBlock(checkedMethod);
|
|
146
206
|
});
|
|
147
207
|
|
|
148
208
|
$('.btn-new-card').on('click', function() {
|
|
@@ -157,27 +217,20 @@ Wick.CheckoutPaymentDetails = (function() {
|
|
|
157
217
|
return false;
|
|
158
218
|
});
|
|
159
219
|
|
|
160
|
-
|
|
161
|
-
if (!$modal.length) {
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
220
|
+
if (!$modal.length) return;
|
|
164
221
|
|
|
165
|
-
if (typeof(window.onbeforeprint) !== 'undefined') {
|
|
166
|
-
// subscriptions for browsers
|
|
222
|
+
if (typeof (window.onbeforeprint) !== 'undefined') {
|
|
167
223
|
window.onbeforeprint = preparePage;
|
|
168
224
|
window.onafterprint = resetPage;
|
|
169
225
|
} else if (window.matchMedia) {
|
|
170
|
-
// subscriptions for iOS devices
|
|
171
226
|
var mediaQueryList = window.matchMedia('print');
|
|
172
227
|
mediaQueryList.addListener(function(mql) {
|
|
173
|
-
if (mql.matches)
|
|
174
|
-
|
|
175
|
-
} else {
|
|
176
|
-
resetPage();
|
|
177
|
-
}
|
|
228
|
+
if (mql.matches) preparePage();
|
|
229
|
+
else resetPage();
|
|
178
230
|
});
|
|
179
231
|
}
|
|
180
232
|
}
|
|
181
233
|
|
|
234
|
+
|
|
182
235
|
init();
|
|
183
236
|
})();
|
|
@@ -6,9 +6,7 @@ $(document).ready(function () {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
function cardsContent(itemsInRow) {
|
|
9
|
-
let card = $('.content .product-card, .content .card-product-banner
|
|
10
|
-
return $(this).parents('.product-card, .card-product-banner, .card-sponsor-banner, .card-sponsor-product').length === 0;
|
|
11
|
-
});
|
|
9
|
+
let card = $('.content .product-card, .content .card-product-banner');
|
|
12
10
|
let priceSelectors = [
|
|
13
11
|
'.including-vat .product-card__price__old-price',
|
|
14
12
|
'.excluding-vat .product-card__price__old-price',
|
|
@@ -19,7 +17,6 @@ $(document).ready(function () {
|
|
|
19
17
|
revealAll(card, ['.product-card__price__old-price',
|
|
20
18
|
'.product-card__price-sqm',
|
|
21
19
|
'.product-card__price-value',
|
|
22
|
-
'.product-card__sponsored',
|
|
23
20
|
'.energy-efficiency',
|
|
24
21
|
'.energy-efficiency__link']);
|
|
25
22
|
|
|
@@ -36,8 +33,6 @@ $(document).ready(function () {
|
|
|
36
33
|
hideEmptiness(currentRow, '.product-card__price-sqm');
|
|
37
34
|
}
|
|
38
35
|
hideEmptiness(currentRow, '.product-card__price-value');
|
|
39
|
-
hideEmptiness(currentRow, '.product-card__sponsored');
|
|
40
|
-
hideEmptiness(currentRow, '.product-card__price__old-price');
|
|
41
36
|
hideEmptiness(currentRow, '.energy-efficiency');
|
|
42
37
|
hideEmptiness(currentRow, '.energy-efficiency__link');
|
|
43
38
|
|
|
@@ -48,15 +43,11 @@ $(document).ready(function () {
|
|
|
48
43
|
function hideEmptiness(query, className) {
|
|
49
44
|
let currentQuery = query.find(className);
|
|
50
45
|
let rowContent = currentQuery.text();
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (classEmptyCheckMap[className]) {
|
|
58
|
-
let isClassEmpty = isClassPresentInQuery(currentQuery, classEmptyCheckMap[className]);
|
|
59
|
-
if (isClassEmpty) {
|
|
46
|
+
|
|
47
|
+
if (className === '.energy-efficiency') {
|
|
48
|
+
let isEnergyQueryEmpty = isClassPresentInQuery(currentQuery, "energy-efficiency--empty");
|
|
49
|
+
|
|
50
|
+
if (isEnergyQueryEmpty) {
|
|
60
51
|
currentQuery.hide();
|
|
61
52
|
}
|
|
62
53
|
return;
|
|
@@ -43,7 +43,7 @@ Wick.PLPLoadMore = {
|
|
|
43
43
|
.finally(() => {
|
|
44
44
|
hideLoader(Wick.PLPLoadMore.el.loader);
|
|
45
45
|
Wick.PLPLoadMore.el.$loadMoreBtn.blur();
|
|
46
|
-
Wick.
|
|
46
|
+
Wick.ProductBanner.checkProductsInColumn();
|
|
47
47
|
$(window).trigger('productBannerPositionChanged');
|
|
48
48
|
Wick.EnergyEfficiency.drawEnergyLabels();
|
|
49
49
|
Wick.PLP?.bindEvents();
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{{/content}}
|
|
10
10
|
|
|
11
11
|
{{#content "aside"}}
|
|
12
|
-
{{> order-summary delivery-address-v2.summary no-action=true id=1 basket-id=true
|
|
12
|
+
{{> order-summary delivery-address-v2.summary no-action=true id=1 basket-id=true}}
|
|
13
13
|
{{/content}}
|
|
14
14
|
|
|
15
15
|
{{#content "main"}}
|
package/src/page_my-order.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{{#extend "checkout" pageClass="page_checkout-delivery-new page_checkout-confirmation-new page_checkout" title="Checkout - Payment details with Clear Pay" isAsideSticky="true" clearPayIcon=true
|
|
1
|
+
{{#extend "checkout" pageClass="page_checkout-delivery-new page_checkout-confirmation-new page_checkout" title="Checkout - Payment details with Clear Pay" isAsideSticky="true" clearPayIcon=true}}
|
|
2
2
|
|
|
3
3
|
{{#content "head" mode="append"}}
|
|
4
4
|
<link type="text/css" rel="stylesheet" href="./css/pages/checkout-new.css">
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
{{/content}}
|
|
17
17
|
|
|
18
18
|
{{#content "aside"}}
|
|
19
|
-
{{> order-summary delivery-address-v2.summary no-action=true id=1 basket-id=true clearPayIcon=clearPayIcon
|
|
19
|
+
{{> order-summary delivery-address-v2.summary no-action=true id=1 basket-id=true clearPayIcon=clearPayIcon}}
|
|
20
20
|
{{/content}}
|
|
21
21
|
|
|
22
22
|
|
package/src/page_plp_v2.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{{#extend "base" hybrisClass="hybris-class" pageClass="products-list-page
|
|
1
|
+
{{#extend "base" hybrisClass="hybris-class" pageClass="products-list-page" title="Products list" globalSearchV2="true" pagePlp=true}}
|
|
2
2
|
{{#content "head" mode="append" pagePlp=true}}
|
|
3
3
|
<link type="text/css" rel="stylesheet" href="./css/components/global-search.css">
|
|
4
4
|
{{/content}}
|
|
@@ -32,23 +32,13 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
<div class="products-list products-list-v2">
|
|
35
|
-
{{#each
|
|
36
|
-
|
|
35
|
+
{{#each plp_load-more.results}}
|
|
36
|
+
{{>card_product_v2}}
|
|
37
37
|
{{/each}}
|
|
38
38
|
{{#if search-result_v2.product-banner}}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{{/if}}
|
|
43
|
-
{{#if search-result_v2.sponsor-banner}}
|
|
44
|
-
{{#each search-result_v2.sponsor-banner}}
|
|
45
|
-
{{>card_sponsor_banner}}
|
|
46
|
-
{{/each}}
|
|
47
|
-
{{/if}}
|
|
48
|
-
{{#if search-result_v2.sponsor-product}}
|
|
49
|
-
{{#each search-result_v2.sponsor-product}}
|
|
50
|
-
{{>card_sponsor_product}}
|
|
51
|
-
{{/each}}
|
|
39
|
+
{{#each search-result_v2.product-banner}}
|
|
40
|
+
{{>card_product_banner_v2}}
|
|
41
|
+
{{/each}}
|
|
52
42
|
{{/if}}
|
|
53
43
|
</div>
|
|
54
44
|
<div class="load-more-wrap">
|
|
@@ -42,19 +42,9 @@
|
|
|
42
42
|
</div>
|
|
43
43
|
|
|
44
44
|
<div class="products-list products-list-v2">
|
|
45
|
-
{{#each
|
|
46
|
-
{{>card_product_v2}}
|
|
45
|
+
{{#each plp_energy-efficiency.products}}
|
|
46
|
+
{{> card_product_v2}}
|
|
47
47
|
{{/each}}
|
|
48
|
-
{{#if search-result_v2.sponsor-banner}}
|
|
49
|
-
{{#each search-result_v2.sponsor-banner}}
|
|
50
|
-
{{>card_sponsor_banner}}
|
|
51
|
-
{{/each}}
|
|
52
|
-
{{/if}}
|
|
53
|
-
{{#if search-result_v2.sponsor-product}}
|
|
54
|
-
{{#each search-result_v2.sponsor-product}}
|
|
55
|
-
{{>card_sponsor_product}}
|
|
56
|
-
{{/each}}
|
|
57
|
-
{{/if}}
|
|
58
48
|
</div>
|
|
59
49
|
|
|
60
50
|
<div class="sort-products-list">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{{#extend "basket-new" page_shopping-cart pageClass="page_basket basket" title="Basket" billieIcon=
|
|
1
|
+
{{#extend "basket-new" page_shopping-cart pageClass="page_basket basket" title="Basket" billieIcon=true}}
|
|
2
2
|
{{#content "head" mode="append"}}
|
|
3
3
|
<link type="text/css" rel="stylesheet" href="./css/pages/page_shopping-cart-v2.css">
|
|
4
4
|
<link type="text/css" rel="stylesheet" href="./css/pages/checkout-new.css">
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}}
|
|
28
28
|
{{> checkout-action mod="mounted"}}
|
|
29
29
|
{{> checkout-action mod="mounted" view="mobile"}}
|
|
30
|
-
{{> summary-payment paymentsCheckoutV2=true billieIcon=
|
|
30
|
+
{{> summary-payment paymentsCheckoutV2=true billieIcon=true}}
|
|
31
31
|
{{/content}}
|
|
32
32
|
{{#content "main"}}
|
|
33
33
|
<input type="hidden" id="SUPPLIER_DELIVERED_7_DAYS" value="<b> Wickes Supplier </b> - Delivery within 7 days">
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{{#extend "checkout" pageClass="page_checkout page_checkout-confirmation page_split-orders" title="Split Orders"
|
|
2
|
+
logout=true}}
|
|
3
|
+
{{#content "steps"}}
|
|
4
|
+
<div class="page-header">
|
|
5
|
+
<h1 class="page-header__title">Thank You, Your Order Has Been Placed</h1>
|
|
6
|
+
<p class="page-header__order-number">Order number: <span class="page-header__order-number_strong">143402004</span>
|
|
7
|
+
</p>
|
|
8
|
+
<p class="page-header__intro">We have emailed your order confirmation to <a href="#">michael.michael@gmail.com</a>
|
|
9
|
+
with details of when your order will be delivered.
|
|
10
|
+
This email will also contain our contact details should you wish to get in touch with us.</p>
|
|
11
|
+
</div>
|
|
12
|
+
{{/content}}
|
|
13
|
+
{{#content "main"}}
|
|
14
|
+
|
|
15
|
+
<div>
|
|
16
|
+
<h3>Products delivered by Wickes</h3>
|
|
17
|
+
<p>The product listed below will be delivered to you by Wickes. This order
|
|
18
|
+
may be split into several parts, if so you will be notified by email. The
|
|
19
|
+
date, time slot and address for this delivery are listed below: </p>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div class="product-delivery-table">
|
|
23
|
+
<div class="product-delivery-table__delivery-info">
|
|
24
|
+
<div class="row">
|
|
25
|
+
<div class="product-delivery-table__date">
|
|
26
|
+
<h4>Delivery date</h4>
|
|
27
|
+
<div class="product-delivery-table__date-inner">
|
|
28
|
+
<div class="checkout-address-time__time-regular">MAR</div>
|
|
29
|
+
<div class="checkout-address-time__time-primary">15</div>
|
|
30
|
+
<div class="checkout-address-time__time-additional">8:00am - 6:00pm</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="product-delivery-table__time">
|
|
34
|
+
<h4>Delivery time</h4>
|
|
35
|
+
<div class="product-delivery-table__content">
|
|
36
|
+
Beetween<br />8:00AM - 6:00PM
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="product-delivery-table__address">
|
|
40
|
+
<h4>Delivery address</h4>
|
|
41
|
+
<div class="product-delivery-table__content">
|
|
42
|
+
459 Acasia way<br/>
|
|
43
|
+
Wimbledon<br/>
|
|
44
|
+
London<br/>
|
|
45
|
+
S7 7ET
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div class="shopping-card-container">
|
|
52
|
+
{{#each page_shopping-cart.linesCollection}}
|
|
53
|
+
{{>order-line mod="order-line_shrink"}}
|
|
54
|
+
{{/each}}
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
{{>checkout-supply-info checkout-components.supply-info.[2]}}
|
|
59
|
+
<div class="checkout-confirmation-shopping-cards">
|
|
60
|
+
{{#each page_shopping-cart.linesCollection}}
|
|
61
|
+
<div class="checkout-confirmation-shopping-card">
|
|
62
|
+
<h4>Collection from Oldham store <span class="checkout__text-highlighted">1 Item</span></h4>
|
|
63
|
+
<span class="checkout__text-highlighted">Your order will be ready for collection within 1 store hour.</span>
|
|
64
|
+
<div class="shopping-card-container shopping-card-container_bordered">
|
|
65
|
+
<div class="delivery-details-option__delivery-info">
|
|
66
|
+
<div class="delivery-details-option__delivery-info-left">
|
|
67
|
+
{{>checkout-address-time time=true within=true}}
|
|
68
|
+
</div>
|
|
69
|
+
<div class="delivery-details-option__delivery-info-right">
|
|
70
|
+
{{>schedule}}
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
{{>order-line mod="order-line_shrink"}}
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
{{/each}}
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<div>
|
|
80
|
+
<h3>Products delivered by suppliers</h3>
|
|
81
|
+
<p>The following products will be delivered by our suppliers. They will be contacting you to arrange a delivery
|
|
82
|
+
date.</p>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div class="product-supplier-delivery-wrap">
|
|
86
|
+
<div class="product-delivery-table product-supplier-delivery">
|
|
87
|
+
<h4 class="shopping-card-heading">Products delivered by our supplier expected within <span>14</span> days <span class="checkout__text-highlighted">2 Items</span></h4>
|
|
88
|
+
<div class="shopping-card-container">
|
|
89
|
+
{{#each page_shopping-cart.linesCollection}}
|
|
90
|
+
{{>order-line mod="order-line_shrink"}}
|
|
91
|
+
{{/each}}
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<a href="./" class="btn btn-secondary checkout-continue-shopping">Return to shopping</a>
|
|
98
|
+
{{/content}}
|
|
99
|
+
{{#content "aside"}}
|
|
100
|
+
{{> checkout_order-summary label="Total: "}}
|
|
101
|
+
{{> checkout_payment-other-methods klarna="true"}}
|
|
102
|
+
{{> checkout_information }}
|
|
103
|
+
|
|
104
|
+
<a href="./" class="btn btn-secondary checkout-continue-shopping_mobile">Return to shopping</a>
|
|
105
|
+
{{/content}}
|
|
106
|
+
{{/extend}}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@include make-col(4);
|
|
5
5
|
margin-bottom: 30px;
|
|
6
6
|
|
|
7
|
-
@include media-breakpoint-down(md) {
|
|
7
|
+
@include media-breakpoint-down(md) {
|
|
8
8
|
@include make-col(6);
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
padding: 0 15px;
|
|
40
40
|
|
|
41
41
|
@include media-breakpoint-down(sm) {
|
|
42
|
-
display: inline-block;
|
|
42
|
+
display: inline-block;
|
|
43
43
|
padding: 0;
|
|
44
44
|
width: 100%;
|
|
45
45
|
}
|
|
@@ -49,92 +49,4 @@
|
|
|
49
49
|
display: inline-block;
|
|
50
50
|
width: 100%;
|
|
51
51
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.products-list {
|
|
55
|
-
.card-sponsor-product,
|
|
56
|
-
.card-sponsor-banner {
|
|
57
|
-
@include make-col(4);
|
|
58
|
-
margin-bottom: 0;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.card-sponsor-banner {
|
|
62
|
-
&__link {
|
|
63
|
-
display: inline-block;
|
|
64
|
-
width: 100%;
|
|
65
|
-
height: 100%;
|
|
66
|
-
padding: 0 15px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&__image {
|
|
70
|
-
display: inline-block;
|
|
71
|
-
width: 100%;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.card-sponsor-product {
|
|
76
|
-
.product-card {
|
|
77
|
-
max-width: 100%;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.product-card__sponsored {
|
|
82
|
-
@include font-size(12);
|
|
83
|
-
@include line-height(16);
|
|
84
|
-
color: $squant;
|
|
85
|
-
font-weight: 400;
|
|
86
|
-
margin-top: -3px;
|
|
87
|
-
margin-bottom: 15px;
|
|
88
|
-
padding: 2px 4px;
|
|
89
|
-
|
|
90
|
-
&:not(.product-card__sponsored--empty) {
|
|
91
|
-
width: max-content;
|
|
92
|
-
background: $gray-light;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@include media-breakpoint-down(md) {
|
|
98
|
-
.products-list {
|
|
99
|
-
.card-sponsor-product,
|
|
100
|
-
.card-sponsor-banner {
|
|
101
|
-
@include make-col(6);
|
|
102
|
-
|
|
103
|
-
.card {
|
|
104
|
-
max-width: 100%;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.products-list-v2 {
|
|
110
|
-
.card-sponsor-product:nth-of-type(n+3) {
|
|
111
|
-
.card {
|
|
112
|
-
&:before {
|
|
113
|
-
content: none;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@include media-breakpoint-down(sm) {
|
|
121
|
-
.products-list {
|
|
122
|
-
.product-card__sponsored {
|
|
123
|
-
margin-right: auto;
|
|
124
|
-
margin-left: auto;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.card-sponsor-banner {
|
|
128
|
-
position: relative;
|
|
129
|
-
|
|
130
|
-
&::after {
|
|
131
|
-
content: '';
|
|
132
|
-
position: absolute;
|
|
133
|
-
bottom: 20px;
|
|
134
|
-
left: 5px;
|
|
135
|
-
width: calc(100% - 10px);
|
|
136
|
-
border-bottom: 1px solid $gray;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
52
|
+
}
|