wickes-css2 2.98.0-develop.7 → 2.98.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 +3 -3
- package/build/css/category-main.css +1 -1
- package/build/css/components/checkout-payment-details-v2.css +1 -1
- package/build/css/components/energy-efficiency.css +1 -1
- package/build/css/components/global-search.css +1 -1
- package/build/css/components/legal-info.css +1 -1
- package/build/css/components/loader.css +1 -1
- package/build/css/components/price-block-v2-critical.css +1 -1
- package/build/css/components/price-block-v2.css +1 -1
- package/build/css/homepage-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_home.css +1 -1
- package/build/css/pages/page_my-order.css +1 -1
- package/build/css/pages/page_my-orders.css +1 -1
- package/build/css/pages/page_quiz.css +1 -1
- package/build/css/pages/page_track-my-order.css +1 -1
- package/build/css/pages/page_wismo-details.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/img/billie-logo.svg +4 -0
- package/build/img/billie-modal.svg +4 -0
- package/build/img/billie-pdp.svg +11 -0
- package/build/img/billie-spinner.svg +5 -0
- package/build/img/billie.svg +4 -0
- package/build/img/calm-primary-logo.png +0 -0
- package/build/img/payment/checkout/billie.svg +4 -0
- package/build/img/payment/footer/billie.svg +4 -0
- package/build/js/basket.min.js +2 -2
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/emulation.min.js +55 -131
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/page/basket-v2.js +16 -7
- package/build/js/page/billie-business-type.js +34 -0
- package/build/js/page/checkout-payment-details.js +8 -0
- package/build/js/page/components/charity.js +58 -43
- package/build/js/page/components/modal-observer.js +51 -0
- package/build/js/page/pdp.js +1 -4
- 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 +2 -2
- package/src/components/address-billie.hbs +42 -0
- package/src/components/address-postcode-look-up.hbs +2 -2
- package/src/components/basket-charity-donations-new.hbs +40 -0
- package/src/components/billie-modal.hbs +41 -0
- package/src/components/billie-online-messaging.hbs +14 -0
- package/src/components/checkout-edit-billing-address.hbs +20 -6
- package/src/components/checkout-payment-details-v2.hbs +94 -55
- package/src/components/checkout-payment-info-block.hbs +49 -0
- package/src/components/checkout-payment-option.hbs +40 -0
- package/src/components/checkout_order-summary-new.hbs +13 -18
- package/src/components/checkout_payment-new.hbs +10 -1
- package/src/components/donation-cart-new.hbs +38 -0
- package/src/components/header-minicart.hbs +3 -3
- package/src/components/legal-info.hbs +25 -22
- package/src/components/modal.hbs +4 -1
- package/src/components/my-account/active-orders/list-orders.hbs +1 -1
- package/src/components/my-account/active-orders/order.hbs +2 -0
- package/src/components/my-account/active-orders/payment-status.hbs +17 -0
- package/src/components/my-account/payment-status.hbs +19 -0
- package/src/components/my-account/saving-totaliser.hbs +52 -0
- package/src/components/order-summary.hbs +3 -0
- package/src/components/payment-loader.hbs +59 -21
- package/src/components/payments-checkout-v2.hbs +12 -6
- package/src/components/payments-checkout.hbs +6 -0
- package/src/components/payments.hbs +10 -4
- package/src/components/pdp-price-actions.hbs +1 -1
- package/src/components/price-block-v2.hbs +14 -8
- package/src/components/track-my-order-info.hbs +3 -1
- package/src/components/wismo-payment.hbs +16 -0
- package/src/data/data_confirmation-summary.json +3 -3
- package/src/data/data_latest-offers.json +1 -1
- package/src/data/data_mini-basket.json +6 -80
- package/src/data/data_page-category.json +1 -2
- package/src/data/data_page-merge-basket.json +1 -1
- package/src/data/data_shopping-cart-v2.json +51 -0
- package/src/data/data_store-locator-v2.json +1 -1
- package/src/data/data_wismo.json +53 -0
- package/src/data/my-account/data_my-account.json +57 -0
- package/src/elements/radiobutton.hbs +7 -0
- package/src/img/billie-logo.svg +4 -0
- package/src/img/billie-modal.svg +4 -0
- package/src/img/billie-pdp.svg +11 -0
- package/src/img/billie-spinner.svg +5 -0
- package/src/img/billie.svg +4 -0
- package/src/img/calm-primary-logo.png +0 -0
- package/src/img/payment/checkout/billie.svg +4 -0
- package/src/img/payment/footer/billie.svg +4 -0
- package/src/js/components/general/text-clamp.js +1 -2
- package/src/js/emulation/big-wins.js +29 -29
- package/src/js/emulation/mock.js +1 -60
- package/src/js/emulation/paymentLoader.js +22 -11
- package/src/js/emulation/popover-mini-basket.js +2 -2
- package/src/js/page/basket-v2.js +16 -7
- package/src/js/page/billie-business-type.js +34 -0
- package/src/js/page/checkout-payment-details.js +8 -0
- package/src/js/page/components/charity.js +58 -43
- package/src/js/page/components/modal-observer.js +51 -0
- package/src/js/page/pdp.js +1 -4
- package/src/layouts/base.hbs +0 -6
- package/src/layouts/my-account-v2.hbs +0 -7
- package/src/page_basket-billie.html +54 -0
- package/src/page_checkout_confirmation-billie.html +339 -0
- package/src/page_checkout_delivery-address-customer-journey.html +2 -2
- package/src/page_my-account-trade-pro-components.html +27 -0
- package/src/page_my-account-trade-pro.html +7 -0
- package/src/page_my-account.html +1 -0
- package/src/page_my-order.html +1 -1
- package/src/page_payment-details-with-billie.html +67 -0
- package/src/page_product-details-billie.html +87 -0
- package/src/page_product-details-saved-pl.html +13 -16
- package/src/page_product-details-with-global-search-v2.html +0 -1
- package/src/page_shopping-cart-v2.html +4 -3
- package/src/page_wismo-details.html +2 -2
- package/src/partials/head.hbs +1 -5
- package/src/scss/common/_app.scss +0 -1
- package/src/scss/common/_elements.scss +4 -0
- package/src/scss/common/_scroll-disable.scss +2 -4
- package/src/scss/components/_billie-modal.scss +181 -0
- package/src/scss/components/_billie-online-messaging.scss +46 -0
- package/src/scss/components/_charity-donations.scss +114 -186
- package/src/scss/components/_donation-cart-new.scss +192 -0
- package/src/scss/components/_payments-checkout.scss +2 -1
- package/src/scss/components/_payments-v2.scss +8 -0
- package/src/scss/components/_tooltip.scss +19 -0
- package/src/scss/components/checkout-payment-details-v2.scss +237 -0
- package/src/scss/components/legal-info.scss +0 -61
- package/src/scss/components/loader.scss +8 -0
- package/src/scss/components/my-account/_active-orders.scss +2 -0
- package/src/scss/components/my-account/_payment-status.scss +84 -0
- package/src/scss/components/my-account/_saving-totaliser.scss +175 -0
- package/src/scss/components/price-block-v2-critical.scss +4 -0
- package/src/scss/components/price-block-v2.scss +4 -0
- package/src/scss/globals/_global-components.scss +0 -1
- package/src/scss/helpers/_mixins.scss +0 -8
- package/src/scss/helpers/_variables.scss +0 -1
- package/src/scss/homepage-main.scss +0 -1
- package/src/scss/main.scss +0 -1
- package/src/scss/pages/_checkout-confirmation-new.scss +10 -3
- package/src/scss/pages/checkout-new.scss +3 -0
- package/src/scss/pages/my-account-v2.scss +3 -0
- package/src/scss/pages/page_track-my-order.scss +0 -21
- package/src/scss/pages/page_wismo-details.scss +1 -0
- package/src/scss/partials/_header-critical.scss +0 -14
- package/src/scss/partials/_header.scss +0 -14
- package/src/scss/pdp-main-critical.scss +1 -0
- package/src/scss/pdp-main.scss +2 -0
- package/src/sitemap.html +32 -2
- package/src/components/mini-basket/mini-basket-empty.hbs +0 -17
- package/src/components/mini-basket/mini-basket.hbs +0 -39
- package/src/components/mini-basket/product-item.hbs +0 -24
- package/src/js/components/general/backdrop.js +0 -23
- package/src/js/components/general/cart-slider.js +0 -16
- package/src/js/components/general/create-popup-slider.js +0 -196
- package/src/js/components/general/mini-basket-slider.js +0 -8
- package/src/js/emulation/custom-slider-emulation.js +0 -28
- package/src/page_shopping-cart-charity.html +0 -56
- package/src/scss/components/_custom-slider.scss +0 -541
|
@@ -8,34 +8,47 @@ const charityEl = {
|
|
|
8
8
|
charityInput: '#donation',
|
|
9
9
|
charityTitleWrap: '.title-wrap',
|
|
10
10
|
donationCart: '.donation-cart',
|
|
11
|
-
donationCartBtn: '.donation-cart__btn',
|
|
12
|
-
donationCartHolder: '.donation-cart__holder',
|
|
13
11
|
donationCartHide: 'donation-cart__hide',
|
|
14
|
-
|
|
12
|
+
donationCartBtn: '.donation-cart__btn, .donation-cart-new__btn',
|
|
13
|
+
donationCartBtnSelected: '.donation-cart-new__btn.btn-selected',
|
|
14
|
+
donationCartHolder: '.donation-cart__holder, .donation-cart-new__holder',
|
|
15
|
+
donationCartValue: '.donation-cart__value, .donation-cart-new__value',
|
|
15
16
|
charityAdded: 'charity-added',
|
|
17
|
+
donationCartCostBlock: '.donation-cart-new__cost',
|
|
18
|
+
donationCartCostBlockHide: 'donation-cart-new__cost-hide',
|
|
19
|
+
donationCartRemove: '.donation-cart-new__cost .order-item__remove',
|
|
16
20
|
}
|
|
17
21
|
|
|
18
|
-
export function updateCharity() {
|
|
19
|
-
//checkbox action
|
|
22
|
+
export function updateCharity(button) {
|
|
20
23
|
if ($('#donation').attr('disabled') === 'disabled') {
|
|
21
|
-
$('#donation').removeAttr('disabled')
|
|
24
|
+
$('#donation').removeAttr('disabled');
|
|
22
25
|
} else {
|
|
23
26
|
$('#donation').prop('disabled', (_, value) => !value);
|
|
24
27
|
}
|
|
25
28
|
|
|
26
|
-
const context = getCurrentCharityItem(
|
|
29
|
+
const context = getCurrentCharityItem(button);
|
|
27
30
|
const productCode = getCurrentProductCode(context);
|
|
31
|
+
const quantity = getSelectedCharityAmount(button);
|
|
28
32
|
|
|
29
33
|
showLoader('.basket-loader');
|
|
30
34
|
|
|
31
35
|
if (context.hasClass(charityEl.charityAdded)) {
|
|
32
|
-
$(
|
|
36
|
+
$(button).removeAttr('checked');
|
|
33
37
|
} else {
|
|
34
|
-
$(
|
|
35
|
-
|
|
38
|
+
$(button).attr('checked', 'checked');
|
|
39
|
+
repaintCharityButton(button);
|
|
40
|
+
context
|
|
41
|
+
.find(charityEl.donationCartValue)
|
|
42
|
+
.text(quantity);
|
|
43
|
+
showDonationCostBlock(context);
|
|
44
|
+
charityActionForAdd(productCode, quantity);
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
|
|
48
|
+
function getSelectedCharityAmount(context) {
|
|
49
|
+
return $(context).data('value');
|
|
50
|
+
}
|
|
51
|
+
|
|
39
52
|
function getCurrentCharityItem(context) {
|
|
40
53
|
return $(context).closest(charityEl.charityItem);
|
|
41
54
|
}
|
|
@@ -44,13 +57,13 @@ function getCurrentProductCode(context) {
|
|
|
44
57
|
return context.find('input[name="productCode"]').val();
|
|
45
58
|
}
|
|
46
59
|
|
|
47
|
-
export function charityActionForAdd(value) {
|
|
60
|
+
export function charityActionForAdd(value, quantity) {
|
|
48
61
|
if (!Wick.checkLocalEnv) {
|
|
49
62
|
const payload = {
|
|
50
63
|
url: ROUTES.CHARITY_ADD,
|
|
51
64
|
queries: {
|
|
52
65
|
productCodePost: value,
|
|
53
|
-
qty:
|
|
66
|
+
qty: quantity,
|
|
54
67
|
},
|
|
55
68
|
type: 'POST',
|
|
56
69
|
};
|
|
@@ -61,19 +74,10 @@ export function charityActionForAdd(value) {
|
|
|
61
74
|
|
|
62
75
|
callAction(payload, executeCharityAction, productInfo);
|
|
63
76
|
} else {
|
|
64
|
-
toggleCharityElements();
|
|
65
77
|
Wick.BasketPage.updateCart(...Array(2), true);
|
|
66
78
|
}
|
|
67
79
|
}
|
|
68
80
|
|
|
69
|
-
export function toggleCharityElements() {
|
|
70
|
-
if ($(charityEl.charityItem).hasClass(charityEl.charityAdded)) {
|
|
71
|
-
$(charityEl.charityInput).prop('checked', false);
|
|
72
|
-
}
|
|
73
|
-
$(charityEl.charityItem).toggleClass(charityEl.charityAdded);
|
|
74
|
-
$(charityEl.charityItem).hasClass(charityEl.charityMultiple) && toggleMultipleCharityChoose($(charityEl.charityItem));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
81
|
function executeCharityAction(response, productInfo) {
|
|
78
82
|
if (response.addedProducts && response.addedProducts[0]) {
|
|
79
83
|
productInfo.quantity = response.addedProducts[0].qty;
|
|
@@ -81,7 +85,6 @@ function executeCharityAction(response, productInfo) {
|
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
Wick.BasketPage.updateCart(...Array(2), true);
|
|
84
|
-
toggleCharityElements();
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
export function changeCharityPrice() {
|
|
@@ -95,6 +98,7 @@ export function changeCharityPrice() {
|
|
|
95
98
|
|
|
96
99
|
repaintCharityButton(this);
|
|
97
100
|
$(charityEl.donationCartValue).text(charityValue);
|
|
101
|
+
showDonationCostBlock(context);
|
|
98
102
|
charityActionForChangePrice(this);
|
|
99
103
|
}
|
|
100
104
|
|
|
@@ -119,35 +123,46 @@ function repaintCharityButton(context) {
|
|
|
119
123
|
$(context).removeClass(btnSecondary).addClass(btnSelected);
|
|
120
124
|
}
|
|
121
125
|
|
|
122
|
-
function resetCharityButton(context) {
|
|
123
|
-
const donationButtons = $(context).find(charityEl.donationCartBtn);
|
|
124
|
-
const btnSelected = 'btn-selected';
|
|
125
|
-
const btnSecondary = 'btn-secondary';
|
|
126
|
-
const defaultAmount = getDefaultCharityAmount();
|
|
127
|
-
|
|
128
|
-
donationButtons.each((i, btn) => {
|
|
129
|
-
$(btn).attr('data-value') === defaultAmount
|
|
130
|
-
? $(btn).removeClass(btnSecondary).addClass(btnSelected)
|
|
131
|
-
: $(btn).removeClass(btnSelected).addClass(btnSecondary);
|
|
132
|
-
})
|
|
133
|
-
}
|
|
134
|
-
|
|
135
126
|
function getDefaultCharityAmount() {
|
|
136
127
|
const donationButtons = $(charityEl.charityItem).find(charityEl.donationCartBtn);
|
|
137
128
|
return donationButtons.first().attr('data-value');
|
|
138
129
|
}
|
|
139
130
|
|
|
131
|
+
export function setDefaultCharityValue() {
|
|
132
|
+
$(charityEl.donationCartBtnSelected).each(function() {
|
|
133
|
+
const $btn = $(this);
|
|
134
|
+
const $item = $btn.closest(charityEl.charityItem);
|
|
135
|
+
const value = $btn.data('value');
|
|
136
|
+
|
|
137
|
+
$item.find(charityEl.donationCartValue).text(value);
|
|
138
|
+
$item.find(charityEl.donationCartCostBlock)
|
|
139
|
+
.removeClass(charityEl.donationCartCostBlockHide);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function showDonationCostBlock($charity) {
|
|
144
|
+
$charity.find(charityEl.donationCartCostBlock)
|
|
145
|
+
.removeClass(charityEl.donationCartCostBlockHide);
|
|
146
|
+
}
|
|
147
|
+
|
|
140
148
|
function resetCharityValue() {
|
|
141
149
|
const defaultValue = getDefaultCharityAmount();
|
|
142
150
|
$(charityEl.donationCartValue).text(defaultValue);
|
|
143
151
|
}
|
|
144
152
|
|
|
145
|
-
export function
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
+
export function initCharityInteractions() {
|
|
154
|
+
$(document).on('click', charityEl.donationCartRemove, function(e) {
|
|
155
|
+
e.preventDefault();
|
|
156
|
+
|
|
157
|
+
const $item = $(this).closest(charityEl.charityItem);
|
|
158
|
+
$item.removeClass(charityEl.charityAdded);
|
|
159
|
+
$item
|
|
160
|
+
.find(charityEl.donationCartCostBlock)
|
|
161
|
+
.addClass(charityEl.donationCartCostBlockHide);
|
|
162
|
+
$item
|
|
163
|
+
.find(charityEl.donationCartBtn)
|
|
164
|
+
.removeClass('btn-selected')
|
|
165
|
+
.addClass('btn-secondary');
|
|
166
|
+
resetCharityValue();
|
|
167
|
+
});
|
|
153
168
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var Wick = Wick || {};
|
|
2
|
+
|
|
3
|
+
Wick.ModalObserver = (function () {
|
|
4
|
+
const modal = $('.modal-scroll-observer');
|
|
5
|
+
modalContent = modal.find('.modal-content'),
|
|
6
|
+
modalBody = modal.find('.modal-body');
|
|
7
|
+
|
|
8
|
+
$(document).ready(function () {
|
|
9
|
+
if (!modal.length) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function updateScrollFades() {
|
|
14
|
+
const tolerance = 5;
|
|
15
|
+
const scrollTop = modalBody.scrollTop();
|
|
16
|
+
const scrollHeight = modalBody.prop('scrollHeight');
|
|
17
|
+
const visibleHeight = modalBody.outerHeight();
|
|
18
|
+
|
|
19
|
+
const isAtTop = scrollTop <= tolerance;
|
|
20
|
+
const isAtBottom = scrollTop + visibleHeight >= scrollHeight - tolerance;
|
|
21
|
+
|
|
22
|
+
let state;
|
|
23
|
+
|
|
24
|
+
if (isAtTop && isAtBottom) {
|
|
25
|
+
state = 'full';
|
|
26
|
+
} else if (isAtTop) {
|
|
27
|
+
state = 'top';
|
|
28
|
+
} else if (isAtBottom) {
|
|
29
|
+
state = 'bottom';
|
|
30
|
+
} else {
|
|
31
|
+
state = 'middle';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
modalContent.attr('data-scroll-state', state);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
modalBody.on('scroll', updateScrollFades);
|
|
38
|
+
|
|
39
|
+
modal.on('shown.bs.modal', function() {
|
|
40
|
+
updateScrollFades();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
$(window).on('resize', function() {
|
|
44
|
+
if (modal.is(':visible')) {
|
|
45
|
+
updateScrollFades();
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
})();
|
package/src/js/page/pdp.js
CHANGED
|
@@ -24,10 +24,7 @@ Wick.PDP = (function () {
|
|
|
24
24
|
$page
|
|
25
25
|
.find('.btn-add-to-basket, .card-store-collect__btn')
|
|
26
26
|
.on('click', function(){
|
|
27
|
-
|
|
28
|
-
// Consider removing this fragment if it's confirmed to be obsolete, or document why it might still be needed.
|
|
29
|
-
|
|
30
|
-
// Wick.MiniBasket && Wick.MiniBasket.showJustAdded();
|
|
27
|
+
Wick.MiniBasket && Wick.MiniBasket.showJustAdded();
|
|
31
28
|
});
|
|
32
29
|
}
|
|
33
30
|
|
package/src/layouts/base.hbs
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{{#extend "basket-new" page_shopping-cart pageClass="page_basket basket" title="Basket-Billie" clearPayIcon=true pageBasket=true billieIcon=true}}
|
|
2
|
+
{{#content "head" mode="append"}}
|
|
3
|
+
<link type="text/css" rel="stylesheet" href="./css/pages/page_shopping-cart-v2.css">
|
|
4
|
+
<link type="text/css" rel="stylesheet" href="./css/pages/checkout-new.css">
|
|
5
|
+
{{/content}}
|
|
6
|
+
{{#content "heading"}}
|
|
7
|
+
<div class="notification-area pr-0 pl-0">
|
|
8
|
+
{{> notifications notification-page.warning-tiles-changed withCloseBtn="true"}}
|
|
9
|
+
</div>
|
|
10
|
+
<div class="checkout-header__promo">
|
|
11
|
+
{{#each shopping-cart-v2.potentialOrderPromotions}}
|
|
12
|
+
{{> potential-promotion}}
|
|
13
|
+
{{/each}}
|
|
14
|
+
</div>
|
|
15
|
+
{{> checkout-header shopping-cart-v2.header}}
|
|
16
|
+
{{/content}}
|
|
17
|
+
{{#content "aside"}}
|
|
18
|
+
{{> order-summary
|
|
19
|
+
shopping-cart-v2.checkout
|
|
20
|
+
id=1
|
|
21
|
+
title="Order Summary"
|
|
22
|
+
basket=true
|
|
23
|
+
clearPayIcon=clearPayIcon
|
|
24
|
+
billie-placement=true
|
|
25
|
+
clearpay-placement=true
|
|
26
|
+
klarna-placement=false
|
|
27
|
+
billieIcon=true
|
|
28
|
+
paymentsCheckoutV2=true
|
|
29
|
+
}}
|
|
30
|
+
{{> checkout-action mod="mounted"}}
|
|
31
|
+
{{> summary-payment paymentsCheckoutV2="true" billieIcon=true}}
|
|
32
|
+
{{> checkout-action mod="large"}}
|
|
33
|
+
{{/content}}
|
|
34
|
+
{{#content "main"}}
|
|
35
|
+
<input type="hidden" id="SUPPLIER_DELIVERED_7_DAYS" value="<b> Wickes Supplier </b> - Delivery within 7 days">
|
|
36
|
+
<input type="hidden" id="STANDARD" value="<b> STANDARD </b> - Delivery within 1 day">
|
|
37
|
+
<input type="hidden" id="canDisplayPayPalOnBasketPage" value="true">
|
|
38
|
+
{{#each shopping-cart-v2.sections }}
|
|
39
|
+
<section class="basket__section" data-type="{{type}}">
|
|
40
|
+
{{> checkout-section-title title=type items-count=items-count}}
|
|
41
|
+
{{#each items}}
|
|
42
|
+
{{> order-item}}
|
|
43
|
+
{{/each}}
|
|
44
|
+
</section>
|
|
45
|
+
{{/each}}
|
|
46
|
+
{{> charity-donations-multiple shopping-cart-v2.charityDonationMultiple}}
|
|
47
|
+
{{> checkout-action}}
|
|
48
|
+
{{/content}}
|
|
49
|
+
{{#content "foot" mode="append"}}
|
|
50
|
+
<script defer src="./js/basket.min.js"></script>
|
|
51
|
+
<script defer src="./js/page/components/modal-observer.js"></script>
|
|
52
|
+
{{> billie-modal }}
|
|
53
|
+
{{/content}}
|
|
54
|
+
{{/extend}}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
{{#extend "checkout-new" pageClass="page_checkout page_checkout-confirmation-new" title="Checkout - Confirmation"
|
|
2
|
+
logout=true}}
|
|
3
|
+
{{#content "steps"}}
|
|
4
|
+
<div class="header-wrap">
|
|
5
|
+
<h1 class="header__title">Order Confirmation</h1>
|
|
6
|
+
<p class="header__order-block">Order number: <span class="header__order-number">143402004</span></p>
|
|
7
|
+
</div>
|
|
8
|
+
{{/content}}
|
|
9
|
+
{{#content "main"}}
|
|
10
|
+
|
|
11
|
+
<div class="confirmation-result-wrap">
|
|
12
|
+
<div class="confirmation-result__notif">
|
|
13
|
+
<span class="notif-check"><i class="fas fa-check"></i></span>
|
|
14
|
+
<span class="notif-info">Your Order Was Successful!</span>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<p class="confirmation-result__info">
|
|
18
|
+
We have emailed your order confirmation to <a href="mailto:petra.mendez@gmail.com">petra.mendez@gmail.com</a> with details of when your order will be delivered. This email will also contain our contact details should you wish to get in touch with us.
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
<div class="confirmation-result__action">
|
|
22
|
+
<a href="https://www.wickes.co.uk/track-my-order" class="btn btn-primary"><i class="fas fa-map-marked-alt"></i> Track My Order</a>
|
|
23
|
+
<a href="https://www.wickes.co.uk/my-account/orders" class="btn btn-primary">View My Order</a>
|
|
24
|
+
<a href="./" class="btn btn-secondary">Return Shopping</a>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
{{#with checkoutOrder.delivery.[0]}}
|
|
29
|
+
{{>checkout-order}}
|
|
30
|
+
{{/with}}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
{{#with checkoutOrder.clickCollect.[0]}}
|
|
34
|
+
{{>checkout-order}}
|
|
35
|
+
{{/with}}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
{{#with checkoutOrder.charity.[0]}}
|
|
39
|
+
{{>checkout-order charity="true"}}
|
|
40
|
+
{{/with}}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
{{> checkout_payment-new billie=true}}
|
|
44
|
+
{{> checkout_order-summary-new label="Subtotal:" confirmationSummary="true"}}
|
|
45
|
+
|
|
46
|
+
<form class="checkout-tradepro form-bg">
|
|
47
|
+
<div class="checkout-tradepro__row">
|
|
48
|
+
<div class="checkout-tradepro__descr">
|
|
49
|
+
<div class="checkout-tradepro__info-wrap">
|
|
50
|
+
<div class="checkout-tradepro__info">
|
|
51
|
+
It looks like you're in the Trade?
|
|
52
|
+
You could be eligible to join TradePro and get
|
|
53
|
+
<strong>10% off future purchases whenever you shop in-store or online.</strong>
|
|
54
|
+
</div>
|
|
55
|
+
<a href="#" class="checkout-tradepro__learn-more">Learn more about TradePro</a>
|
|
56
|
+
</div>
|
|
57
|
+
<h3>TradePro Signup</h3>
|
|
58
|
+
<div class="warning-required">Required fields</div>
|
|
59
|
+
<h3 class="checkout-tradepro__title">Proof of Trade ID</h3>
|
|
60
|
+
<p class="checkout-tradepro__paragraph warning-required">
|
|
61
|
+
Please supply two forms of approved ID
|
|
62
|
+
</p>
|
|
63
|
+
|
|
64
|
+
<div class="signup-tradepro__attach checkout-tradepro__attach_id">
|
|
65
|
+
{{> attach-make make-attachment=true}}
|
|
66
|
+
{{> modal id="attac"}}
|
|
67
|
+
{{#extend "modal" id="attach" title="Choose Type of ID" fullWidth=true classMod="id-type"}}
|
|
68
|
+
{{#content "sections"}}
|
|
69
|
+
|
|
70
|
+
{{#extend "modal-body-section" customSectionClass="id-type-signup"}}
|
|
71
|
+
{{#content "body"}}
|
|
72
|
+
{{> notifications notification-page.warning withCloseBtn="true"
|
|
73
|
+
text="Unable to attach file. Only JPG, PNG, GIF, BMP, WEBP, TIFF and HEIF image files are supported."}}
|
|
74
|
+
<div class="signup-tradepro__modal-info">
|
|
75
|
+
Select two forms of ID.
|
|
76
|
+
<div class="tradepro-id-counter_wrap">
|
|
77
|
+
<span>1</span>
|
|
78
|
+
of
|
|
79
|
+
<span>2</span>
|
|
80
|
+
</div>
|
|
81
|
+
ID's chosen
|
|
82
|
+
</div>
|
|
83
|
+
<div class="signup-tradepro__modal-fields">
|
|
84
|
+
<div class="tradepro-field">
|
|
85
|
+
<span class="icon icon__link inactive-el">
|
|
86
|
+
<i class="far fa-link"></i>
|
|
87
|
+
</span>
|
|
88
|
+
<a href="#" class="signup-tradepro__modal-trigger inactive-el">Trade business website</a>
|
|
89
|
+
<div class="signup-tradepro__modal-action">
|
|
90
|
+
<div class="form-row" data-row-required="">
|
|
91
|
+
<label class="form-row__label"></label>
|
|
92
|
+
<div class="form-row__field">
|
|
93
|
+
{{> input need-pattern=true}}
|
|
94
|
+
<div class="form-row__error">{{error}}</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="signup-tradepro__modal-buttons">
|
|
98
|
+
<div class="row">
|
|
99
|
+
<div class="button-done">
|
|
100
|
+
<button class="btn btn-primary">
|
|
101
|
+
Done
|
|
102
|
+
</button>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="button-cancel">
|
|
105
|
+
<button class="btn btn-secondary">
|
|
106
|
+
Cancel
|
|
107
|
+
</button>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="tradepro-field">
|
|
114
|
+
<span class="icon icon__link">
|
|
115
|
+
<i class="far fa-link"></i>
|
|
116
|
+
</span>
|
|
117
|
+
<span class="icon icon__pencil">
|
|
118
|
+
<i class="far fa-pencil"></i>
|
|
119
|
+
</span>
|
|
120
|
+
<a href="#" class="signup-tradepro__modal-trigger">Check a trade profile</a>
|
|
121
|
+
<div class="signup-tradepro__modal-action">
|
|
122
|
+
<div class="form-row" data-row-required="">
|
|
123
|
+
<label class="form-row__label"></label>
|
|
124
|
+
<div class="form-row__field">
|
|
125
|
+
{{> input need-pattern=true}}
|
|
126
|
+
<div class="form-row__error">{{error}}</div>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="signup-tradepro__modal-buttons">
|
|
130
|
+
<div class="row">
|
|
131
|
+
<div class="button-done">
|
|
132
|
+
<button class="btn btn-primary">
|
|
133
|
+
Done
|
|
134
|
+
</button>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="button-cancel">
|
|
137
|
+
<button class="btn btn-secondary">
|
|
138
|
+
Cancel
|
|
139
|
+
</button>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="tradepro-field">
|
|
146
|
+
<span class="icon icon__link">
|
|
147
|
+
<i class="far fa-link"></i>
|
|
148
|
+
</span>
|
|
149
|
+
<a href="#" class="signup-tradepro__modal-trigger">Facebook trade business page</a>
|
|
150
|
+
<span class="icon icon__notification">
|
|
151
|
+
<span class="fas fa-check-circle"></span>
|
|
152
|
+
</span>
|
|
153
|
+
<div class="signup-tradepro__modal-action">
|
|
154
|
+
<div class="form-row" data-row-required="">
|
|
155
|
+
<label class="form-row__label"></label>
|
|
156
|
+
<div class="form-row__field">
|
|
157
|
+
{{> input need-pattern=true}}
|
|
158
|
+
<div class="form-row__error">{{error}}</div>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
<div class="signup-tradepro__modal-buttons">
|
|
162
|
+
<div class="row">
|
|
163
|
+
<div class="button-done">
|
|
164
|
+
<button class="btn btn-primary">
|
|
165
|
+
Done
|
|
166
|
+
</button>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="button-cancel">
|
|
169
|
+
<button class="btn btn-secondary">
|
|
170
|
+
Cancel
|
|
171
|
+
</button>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="tradepro-field">
|
|
178
|
+
<span class="icon icon__link">
|
|
179
|
+
<i class="far fa-link"></i>
|
|
180
|
+
</span>
|
|
181
|
+
<a href="#" class="signup-tradepro__modal-trigger">Mybuilder profile</a>
|
|
182
|
+
<div class="signup-tradepro__modal-action">
|
|
183
|
+
<div class="form-row" data-row-required="">
|
|
184
|
+
<label class="form-row__label"></label>
|
|
185
|
+
<div class="form-row__field">
|
|
186
|
+
{{> input need-pattern=true}}
|
|
187
|
+
<div class="form-row__error">{{error}}</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
<div class="signup-tradepro__modal-buttons">
|
|
191
|
+
<div class="row">
|
|
192
|
+
<div class="button-done">
|
|
193
|
+
<button class="btn btn-primary">
|
|
194
|
+
Done
|
|
195
|
+
</button>
|
|
196
|
+
</div>
|
|
197
|
+
<div class="button-cancel">
|
|
198
|
+
<button class="btn btn-secondary">
|
|
199
|
+
Cancel
|
|
200
|
+
</button>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
<div class="tradepro-field">
|
|
207
|
+
<span class="icon icon__paperclip">
|
|
208
|
+
<i class="far fa-paperclip"></i>
|
|
209
|
+
</span>
|
|
210
|
+
{{> attach-make make-capture=true}}
|
|
211
|
+
<input class="tradepro-attachment" type="file" accept="image/*" capture>
|
|
212
|
+
</div>
|
|
213
|
+
<div class="tradepro-field">
|
|
214
|
+
<img src="img/placeholders/thumbnail-sm.png"/>
|
|
215
|
+
<span class="icon icon__paperclip">
|
|
216
|
+
<i class="far fa-paperclip"></i>
|
|
217
|
+
</span>
|
|
218
|
+
<span class="icon icon__camera">
|
|
219
|
+
<i class="far fa-camera"></i>
|
|
220
|
+
</span>
|
|
221
|
+
<a href="#" class="signup-tradepro__modal-trigger">Letterhead</a>
|
|
222
|
+
<input class="tradepro-attachment" type="file" accept="image/*" capture>
|
|
223
|
+
</div>
|
|
224
|
+
<div class="tradepro-field">
|
|
225
|
+
<span class="icon icon__paperclip">
|
|
226
|
+
<i class="far fa-paperclip"></i>
|
|
227
|
+
</span>
|
|
228
|
+
<span class="icon icon__camera">
|
|
229
|
+
<i class="far fa-camera"></i>
|
|
230
|
+
</span>
|
|
231
|
+
<a href="#" class="signup-tradepro__modal-trigger">Compliment slip</a>
|
|
232
|
+
<input class="tradepro-attachment" type="file" accept="image/*" capture>
|
|
233
|
+
</div>
|
|
234
|
+
<div class="tradepro-field">
|
|
235
|
+
<span class="icon icon__edit">
|
|
236
|
+
<i class="fas fa-edit"></i>
|
|
237
|
+
</span>
|
|
238
|
+
<a href="#" class="signup-tradepro__modal-trigger">Ltd company: Registration number</a>
|
|
239
|
+
<div class="signup-tradepro__modal-action">
|
|
240
|
+
<div class="form-row" data-row-required="">
|
|
241
|
+
<label class="form-row__label"></label>
|
|
242
|
+
<div class="form-row__field">
|
|
243
|
+
{{> input need-pattern=true}}
|
|
244
|
+
<div class="form-row__error">{{error}}</div>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
<div class="signup-tradepro__modal-buttons">
|
|
248
|
+
<div class="row">
|
|
249
|
+
<div class="button-done">
|
|
250
|
+
<button class="btn btn-primary">
|
|
251
|
+
Done
|
|
252
|
+
</button>
|
|
253
|
+
</div>
|
|
254
|
+
<div class="button-cancel">
|
|
255
|
+
<button class="btn btn-secondary">
|
|
256
|
+
Cancel
|
|
257
|
+
</button>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
</div>
|
|
261
|
+
</div>
|
|
262
|
+
</div>
|
|
263
|
+
<div class="tradepro-field">
|
|
264
|
+
<span class="icon icon__edit">
|
|
265
|
+
<i class="fas fa-edit"></i>
|
|
266
|
+
</span>
|
|
267
|
+
<a href="#" class="signup-tradepro__modal-trigger">Plc: Registration number</a>
|
|
268
|
+
<div class="signup-tradepro__modal-action">
|
|
269
|
+
<div class="form-row" data-row-required="">
|
|
270
|
+
<label class="form-row__label"></label>
|
|
271
|
+
<div class="form-row__field">
|
|
272
|
+
{{> input need-pattern=true}}
|
|
273
|
+
<div class="form-row__error">{{error}}</div>
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
<div class="signup-tradepro__modal-buttons">
|
|
277
|
+
<div class="row">
|
|
278
|
+
<div class="button-done">
|
|
279
|
+
<button class="btn btn-primary">
|
|
280
|
+
Done
|
|
281
|
+
</button>
|
|
282
|
+
</div>
|
|
283
|
+
<div class="button-cancel">
|
|
284
|
+
<button class="btn btn-secondary">
|
|
285
|
+
Cancel
|
|
286
|
+
</button>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
{{/content}}
|
|
294
|
+
{{/extend}}
|
|
295
|
+
|
|
296
|
+
{{/content}}
|
|
297
|
+
{{/extend}}
|
|
298
|
+
</div>
|
|
299
|
+
<div class="chosen-form-container">
|
|
300
|
+
<div class="chosen-form-wrap">
|
|
301
|
+
<div class="chosen-form">
|
|
302
|
+
<div>
|
|
303
|
+
<img class="mr-2" src="img/placeholders/thumbnail-sm.png"/>
|
|
304
|
+
Trade business website
|
|
305
|
+
</div>
|
|
306
|
+
<span class="icon icon__notification">
|
|
307
|
+
<span class="fas fa-check-circle"></span>
|
|
308
|
+
</span>
|
|
309
|
+
</div>
|
|
310
|
+
<div class="form-row__error">Error message here</div>
|
|
311
|
+
<div class="chosen-form">
|
|
312
|
+
<div>
|
|
313
|
+
<img class="mr-2" src="img/placeholders/thumbnail-sm.png"/>
|
|
314
|
+
Ltd company: Registration number
|
|
315
|
+
</div>
|
|
316
|
+
|
|
317
|
+
<span class="icon icon__notification">
|
|
318
|
+
<span class="fas fa-check-circle"></span>
|
|
319
|
+
</span>
|
|
320
|
+
</div>
|
|
321
|
+
<div class="form-row__error">Error message here</div>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
{{> signup-form}}
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
</form>
|
|
328
|
+
|
|
329
|
+
{{/content}}
|
|
330
|
+
|
|
331
|
+
{{#content "aside"}}
|
|
332
|
+
{{> checkout_information info-icon="true"}}
|
|
333
|
+
{{/content}}
|
|
334
|
+
|
|
335
|
+
{{#content "foot" mode="append"}}
|
|
336
|
+
<script defer src="./js/page/checkout-confirmation-new.js"></script>
|
|
337
|
+
{{/content}}
|
|
338
|
+
|
|
339
|
+
{{/extend}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{{#extend "checkout" pageClass="page_checkout-delivery-new page_checkout page_checkout-confirmation-new" title="Checkout - Delivery address Customer Journey" isAsideSticky="true"}}
|
|
1
|
+
{{#extend "checkout" pageClass="page_checkout-delivery-new page_checkout page_checkout-confirmation-new" title="Checkout - Delivery address Customer Journey" isAsideSticky="true" billieIcon=true}}
|
|
2
2
|
{{#content "steps"}}
|
|
3
3
|
{{> steps active-step-index="1" }}
|
|
4
4
|
{{/content}}
|
|
@@ -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 billieIcon=true}}
|
|
13
13
|
{{/content}}
|
|
14
14
|
|
|
15
15
|
|