wickes-css2 2.103.0-gift-cards.16 → 2.103.0-gift-cards.18
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 +0 -1
- package/build/css/components/card-product-banner.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/pages/page_product-details-v2.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-before-combine.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/img/klarna.svg +10 -0
- package/build/img/payment/checkout/klarna.svg +10 -0
- package/build/img/payment/footer/klarna.svg +10 -0
- 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 +54 -0
- package/build/js/gift-cards.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/page/components/gift-cards.js +3 -3
- package/build/js/page/plp-cards-v2.js +15 -6
- package/build/js/page/plp-load-more.js +1 -1
- package/build/js/page/utils/gift-cards-utils.js +15 -2
- 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/card_product_v2.hbs +10 -5
- package/src/components/card_sponsor_banner.hbs +8 -0
- package/src/components/card_sponsor_product.hbs +6 -0
- package/src/components/checkout-payment-details-v2.hbs +7 -9
- package/src/components/checkout_payment-new.hbs +1 -4
- package/src/components/checkout_payment-other-methods.hbs +1 -4
- package/src/components/injected-content.hbs +1 -1
- package/src/components/payments-checkout-v2.hbs +2 -7
- package/src/components/payments-checkout.hbs +1 -6
- package/src/components/payments.hbs +1 -5
- package/src/components/table_order-details-klarna.hbs +1 -1
- package/src/components/table_payment.hbs +1 -4
- package/src/data/data_search-results_v2.json +56 -141
- package/src/data/data_wismo.json +1 -1
- package/src/img/klarna.svg +10 -0
- package/src/img/payment/checkout/klarna.svg +10 -0
- package/src/img/payment/footer/klarna.svg +10 -0
- package/src/js/components/banner-placement-manager.js +267 -0
- package/src/js/emulation/banner-placement-manager.js +53 -0
- package/src/js/page/components/gift-cards.js +3 -3
- package/src/js/page/plp-cards-v2.js +15 -6
- package/src/js/page/plp-load-more.js +1 -1
- package/src/js/page/utils/gift-cards-utils.js +15 -2
- 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 +16 -6
- package/src/page_search-results.html +12 -2
- package/src/page_shopping-cart-v2.html +2 -2
- package/src/scss/components/card-product-banner.scss +91 -3
- package/src/scss/pages/page_product-details-v2.scss +4 -0
- package/src/scss/pages/page_products-list-combined.scss +11 -0
- package/src/scss/pages/page_products-list.scss +8 -0
- package/src/sitemap.html +0 -6
- package/src/js/components/product-banner.js +0 -148
- package/src/page_split-orders-klarna.html +0 -106
|
@@ -47,6 +47,17 @@ $color-bar-radius: 3px;
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
.sponsor-top-banner {
|
|
51
|
+
margin-bottom: 20px;
|
|
52
|
+
margin-top: 10px;
|
|
53
|
+
|
|
54
|
+
&__image {
|
|
55
|
+
display: block;
|
|
56
|
+
max-width: 100%;
|
|
57
|
+
margin-bottom: 20px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
50
61
|
.color-pick {
|
|
51
62
|
&__wrap {
|
|
52
63
|
display: none;
|
package/src/sitemap.html
CHANGED
|
@@ -805,12 +805,6 @@
|
|
|
805
805
|
Klarna TradePro Payment Details
|
|
806
806
|
</a>
|
|
807
807
|
</li>
|
|
808
|
-
<li>
|
|
809
|
-
<span class="page-id">6</span>
|
|
810
|
-
<a href="page_split-orders-klarna.html" target="_blank">
|
|
811
|
-
Klarna Split Orders
|
|
812
|
-
</a>
|
|
813
|
-
</li>
|
|
814
808
|
<li>
|
|
815
809
|
<span class="page-id">7</span>
|
|
816
810
|
<a href="page_checkout_confirmation-new-klarna.html" target="_blank">
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
var Wick = Wick || {};
|
|
2
|
-
Wick.ProductBanner = {
|
|
3
|
-
el: {
|
|
4
|
-
banners: '.card-product-banner',
|
|
5
|
-
bannerInactiveClass: 'card-product-banner--inactive',
|
|
6
|
-
productsWrap: '.products-list-v2',
|
|
7
|
-
$products: $('.product-card'),
|
|
8
|
-
attrPositionDesktop: 'data-desktop-position',
|
|
9
|
-
attrPositionMobile: 'data-mobile-position',
|
|
10
|
-
attrRequiredAmountDesktop: 'data-required-amount-desktop',
|
|
11
|
-
attrRequiredAmountMobile: 'data-required-amount-mobile',
|
|
12
|
-
hide: 'd-none'
|
|
13
|
-
},
|
|
14
|
-
currentBreakpoint: null,
|
|
15
|
-
checkProductsInColumn() {
|
|
16
|
-
Wick.ProductBanner.addInactiveClasses();
|
|
17
|
-
Wick.ProductBanner.arrangeBannersInRightOrder();
|
|
18
|
-
$(Wick.ProductBanner.el.banners).each((index, banner) => {
|
|
19
|
-
Wick.ProductBanner.hideBannerDueLimit(banner, index);
|
|
20
|
-
Wick.ProductBanner.moveBannerToSpecifiedPosition(banner);
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
moveBannerToSpecifiedPosition(banner) {
|
|
24
|
-
const $listSlots = Wick.ProductBanner.getListSlots();
|
|
25
|
-
const bannerPosition = Wick.ProductBanner.getBannerPosition(banner) - 2;
|
|
26
|
-
const listSlotsLength = $listSlots.length;
|
|
27
|
-
|
|
28
|
-
if(Wick.ProductBanner.isBannerVisible(banner)) {
|
|
29
|
-
if (bannerPosition <= listSlotsLength) {
|
|
30
|
-
if ($listSlots[bannerPosition]) {
|
|
31
|
-
Wick.ProductBanner.showBanner(banner);
|
|
32
|
-
Wick.ProductBanner.removeInactiveClass(banner);
|
|
33
|
-
Wick.ProductBanner.moveBanner(banner, $listSlots[bannerPosition]);
|
|
34
|
-
} else {
|
|
35
|
-
Wick.ProductBanner.hideBanner(banner);
|
|
36
|
-
Wick.ProductBanner.coverEdgeCases(banner);
|
|
37
|
-
}
|
|
38
|
-
} else {
|
|
39
|
-
Wick.ProductBanner.hideBanner(banner);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
moveBanner(banner, targetElement) {
|
|
44
|
-
$(banner).remove();
|
|
45
|
-
$(targetElement).after(banner);
|
|
46
|
-
},
|
|
47
|
-
hideBanner(banner) {
|
|
48
|
-
$(banner).addClass(Wick.ProductBanner.el.hide);
|
|
49
|
-
},
|
|
50
|
-
showBanner(banner) {
|
|
51
|
-
$(banner).removeClass(Wick.ProductBanner.el.hide);
|
|
52
|
-
},
|
|
53
|
-
isBannerVisible(banner) {
|
|
54
|
-
return !$(banner).hasClass(Wick.ProductBanner.el.hide);
|
|
55
|
-
},
|
|
56
|
-
hideBannerDueLimit(banner) {
|
|
57
|
-
const bannerMinLimit = Wick.ProductBanner.getBannerLimit(banner) - 1;
|
|
58
|
-
const $listSlots = Wick.ProductBanner.getListSlots();
|
|
59
|
-
const listProductsLength = $listSlots.length;
|
|
60
|
-
Wick.ProductBanner.showBanner(banner);
|
|
61
|
-
|
|
62
|
-
if (bannerMinLimit > listProductsLength) {
|
|
63
|
-
Wick.ProductBanner.hideBanner(banner);
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
getBannerPosition(banner) {
|
|
67
|
-
const isMobile = Wick.ProductBanner.isMobileResolution();
|
|
68
|
-
const positionAttribute = isMobile
|
|
69
|
-
? Wick.ProductBanner.el.attrPositionMobile
|
|
70
|
-
: Wick.ProductBanner.el.attrPositionDesktop
|
|
71
|
-
|
|
72
|
-
return banner.hasAttribute(positionAttribute)
|
|
73
|
-
? Number(banner.getAttribute(positionAttribute))
|
|
74
|
-
: Number(Wick.ProductBanner.getListLength() + Wick.ProductBanner.getBannersAmount());
|
|
75
|
-
},
|
|
76
|
-
getBannerLimit(banner) {
|
|
77
|
-
const isMobile = Wick.ProductBanner.isMobileResolution();
|
|
78
|
-
|
|
79
|
-
const limitAttribute = isMobile
|
|
80
|
-
? Wick.ProductBanner.el.attrRequiredAmountMobile
|
|
81
|
-
: Wick.ProductBanner.el.attrRequiredAmountDesktop;
|
|
82
|
-
|
|
83
|
-
return banner.hasAttribute(limitAttribute)
|
|
84
|
-
? Number(banner.getAttribute(limitAttribute))
|
|
85
|
-
: 0;
|
|
86
|
-
},
|
|
87
|
-
isMobileResolution() {
|
|
88
|
-
return Wick.Responsive.getCurrentBreakpoint() !== 'up-lg';
|
|
89
|
-
},
|
|
90
|
-
getListLength() {
|
|
91
|
-
const $listItems = $(Wick.ProductBanner.el.productsWrap).find('.product-card');
|
|
92
|
-
return $listItems.length;
|
|
93
|
-
},
|
|
94
|
-
getBannersAmount() {
|
|
95
|
-
return $(Wick.ProductBanner.el.banners).length;
|
|
96
|
-
},
|
|
97
|
-
getProductsAmount() {
|
|
98
|
-
return Wick.ProductBanner.el.$products.length;
|
|
99
|
-
},
|
|
100
|
-
arrangeBannersInRightOrder() {
|
|
101
|
-
$(Wick.ProductBanner.el.banners).sort((a, b) => {
|
|
102
|
-
let bannerPositionA = Wick.ProductBanner.getBannerPosition(a);
|
|
103
|
-
let bannerPositionB = Wick.ProductBanner.getBannerPosition(b);
|
|
104
|
-
|
|
105
|
-
return bannerPositionA - bannerPositionB
|
|
106
|
-
}).appendTo(Wick.ProductBanner.el.productsWrap);
|
|
107
|
-
},
|
|
108
|
-
addInactiveClasses() {
|
|
109
|
-
$(Wick.ProductBanner.el.banners).addClass(Wick.ProductBanner.el.bannerInactiveClass);
|
|
110
|
-
},
|
|
111
|
-
removeInactiveClass(banner) {
|
|
112
|
-
$(banner).removeClass(Wick.ProductBanner.el.bannerInactiveClass)
|
|
113
|
-
},
|
|
114
|
-
insertFirstBanner(banner) {
|
|
115
|
-
const bannerPosition = Wick.ProductBanner.getBannerPosition(banner);
|
|
116
|
-
|
|
117
|
-
if (bannerPosition === 1) {
|
|
118
|
-
Wick.ProductBanner.showBanner(banner);
|
|
119
|
-
Wick.ProductBanner.removeInactiveClass(banner);
|
|
120
|
-
$(banner).remove();
|
|
121
|
-
$(Wick.ProductBanner.el.productsWrap).prepend(banner);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
coverEdgeCases(banner) {
|
|
125
|
-
Wick.ProductBanner.insertFirstBanner(banner);
|
|
126
|
-
},
|
|
127
|
-
getListSlots() {
|
|
128
|
-
return $(Wick.ProductBanner.el.productsWrap)
|
|
129
|
-
.find('.product-card, .card-product-banner:not(.card-product-banner--inactive)');
|
|
130
|
-
},
|
|
131
|
-
init() {
|
|
132
|
-
Wick.Responsive.onResize(function () {
|
|
133
|
-
if(Wick.ProductBanner.currentBreakpoint !== Wick.Responsive.getCurrentBreakpoint()) {
|
|
134
|
-
Wick.ProductBanner.currentBreakpoint = Wick.Responsive.getCurrentBreakpoint()
|
|
135
|
-
Wick.ProductBanner.checkProductsInColumn();
|
|
136
|
-
$(window).trigger('productBannerPositionChanged');
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
$(document).ready(function () {
|
|
143
|
-
if (!Wick.ProductBanner.getBannersAmount() || !Wick.ProductBanner.getProductsAmount()) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
Wick.ProductBanner.init();
|
|
148
|
-
})
|
|
@@ -1,106 +0,0 @@
|
|
|
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}}
|