wickes-css2 2.109.0-develop.1 → 2.109.0-develop.3

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.
Files changed (84) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/components/card-product-banner.css +1 -1
  3. package/build/css/homepage-main.css +1 -1
  4. package/build/css/kitchen-plp-main.css +1 -1
  5. package/build/css/main.css +1 -1
  6. package/build/css/my-account-main-v2.css +1 -1
  7. package/build/css/my-account-main.css +1 -1
  8. package/build/css/pages/page_checkout_delivery-new.css +1 -1
  9. package/build/css/pages/page_products-list-combined.css +1 -1
  10. package/build/css/pages/page_products-list.css +1 -1
  11. package/build/css/pages/page_shopping-cart-v2.css +1 -1
  12. package/build/css/pdp-main-before-combine.css +1 -1
  13. package/build/css/pdp-main-critical.css +1 -1
  14. package/build/css/pdp-main-non-critical.css +1 -1
  15. package/build/css/pdp-main.css +1 -1
  16. package/build/css/plp-main.css +1 -1
  17. package/build/css/store-locator-main.css +1 -1
  18. package/build/js/basket.min.js +1 -1
  19. package/build/js/checkout.min.js +1 -1
  20. package/build/js/emulation.min.js +178 -56
  21. package/build/js/gift-cards.min.js +1 -1
  22. package/build/js/merged-checkout.min.js +1 -1
  23. package/build/js/mini-basket-slider.min.js +1 -1
  24. package/build/js/page/basket/mini-basket-total.js +17 -2
  25. package/build/js/page/components/notify-me.js +99 -0
  26. package/build/js/page/components/order-summary.js +35 -0
  27. package/build/js/pdp.bundle.min.js +2 -1
  28. package/build/js/wickes-dc.js +1 -0
  29. package/package.json +1 -3
  30. package/src/components/base/button.hbs +1 -1
  31. package/src/components/card_product_banner_v2.hbs +4 -1
  32. package/src/components/card_sponsor_banner.hbs +4 -1
  33. package/src/components/checkout_order-summary-new.hbs +10 -1
  34. package/src/components/click-and-collect-modal.hbs +0 -14
  35. package/src/components/date-selection.hbs +1 -1
  36. package/src/components/delivery-types.hbs +11 -3
  37. package/src/components/injected-content.hbs +6 -1
  38. package/src/components/modal.hbs +1 -1
  39. package/src/components/modals/notify-me-modal.hbs +76 -0
  40. package/src/components/order-summary.hbs +2 -2
  41. package/src/components/price-block-v2.hbs +211 -214
  42. package/src/components/sponsor-top-banner.hbs +10 -0
  43. package/src/data/data_delivery-address-v2.json +1 -1
  44. package/src/data/data_search-results_v2.json +9 -2
  45. package/src/data/data_spr_injected_content.json +4 -0
  46. package/src/js/emulation/checkout-delivery-details.js +28 -25
  47. package/src/js/emulation/custom-slider-emulation.js +1 -1
  48. package/src/js/emulation/date-selection.js +136 -24
  49. package/src/js/emulation/forms.js +12 -0
  50. package/src/js/emulation/mini-basket-data.js +3 -3
  51. package/src/js/emulation/notify-me.js +9 -0
  52. package/src/js/emulation/switchCalendar.js +12 -8
  53. package/src/js/page/basket/mini-basket-total.js +17 -2
  54. package/src/js/page/components/notify-me.js +99 -0
  55. package/src/js/page/components/order-summary.js +35 -0
  56. package/src/page_checkout_next-day-delivery-details.html +2 -2
  57. package/src/page_checkout_payment-details-v2-asm.html +1 -1
  58. package/src/page_checkout_payment-details-v2.html +1 -1
  59. package/src/page_checkout_payment-details_with-card-loader.html +1 -1
  60. package/src/page_checkout_payment-details_with-klarna-loader.html +1 -1
  61. package/src/page_checkout_payment-details_with-loader-v2.html +1 -1
  62. package/src/page_checkout_rapid-delivery-details.html +7 -5
  63. package/src/page_klarna_payment-details_with-klarna.html +1 -1
  64. package/src/page_payment-details-with-billie.html +1 -1
  65. package/src/page_payment-details-with-clearpay.html +1 -1
  66. package/src/page_payment-details-with-gift-card.html +1 -1
  67. package/src/page_payment-details_with_apple-pay.html +1 -1
  68. package/src/page_payment-details_with_google-pay.html +1 -1
  69. package/src/page_plp_v2.html +1 -0
  70. package/src/page_product-details-mfe-calculator.html +9 -3
  71. package/src/scss/common/_CTAs.scss +7 -3
  72. package/src/scss/components/_custom-slider.scss +18 -0
  73. package/src/scss/components/_date-selection-add-new-styles.scss +43 -1
  74. package/src/scss/components/_notify-me-modal.scss +139 -0
  75. package/src/scss/components/_order-summary.scss +25 -12
  76. package/src/scss/components/_price-block-critical.scss +2 -2
  77. package/src/scss/components/_price-block.scss +14 -4
  78. package/src/scss/components/card-product-banner.scss +8 -0
  79. package/src/scss/helpers/_CTAs.scss +15 -5
  80. package/src/scss/pages/page_checkout_delivery-new.scss +36 -0
  81. package/src/scss/pages/page_products-list-combined.scss +8 -1
  82. package/src/scss/pages/page_products-list.scss +8 -1
  83. package/src/scss/pages/page_shopping-cart-v2.scss +34 -10
  84. package/src/scss/pdp-main.scss +1 -0
@@ -1,232 +1,229 @@
1
1
  <div class="pdp-price-container">
2
- {{#if isDiscount}}
3
- <div class="pdp__badges pdp-price-container__badges price__badges-v2 price__badges-v2-{{badge-color}}
4
- {{#if badge-text-color}}price__badges-v2-text-{{badge-text-color}}{{/if}}
5
- {{#if badge-wide}}price__badges-v2-wide{{/if}}">
6
- {{#ifCond switch-vat '&&' badge-text-exc}}
7
- <div class="pdp__badge including-vat">{{badge-text}}</div>
8
- <div class="pdp__badge excluding-vat d-none">{{badge-text-exc}}</div>
9
- {{else}}
10
- <div class="pdp__badge">{{badge-text}}</div>
11
- {{/ifCond}}
12
- </div>
13
- {{/if}}
14
- <div class="pdp-price">
15
- <div class="pdp-price__value">
16
- {{#if switch-vat}}
17
- <div class="pdp-price-sale__value including-vat">
18
- {{#if isDiscount}}
19
- <div class="pdp-price__old-price"><s>&pound;119.99</s></div>
20
- <div class="main-price">
21
- <div class="main-price__value pdp-price__new-price">&pound;79.99</div>
22
- <div class="main-price__vat">Inc.VAT</div>
23
- </div>
24
- {{#if isSQM}}
25
- <div class="pdp-price__sqm">&pound;40 per SQM</div>
26
- {{/if}}
27
- <div class="pdp-price__remainder">You save &pound;40</div>
28
- {{#if isExcludingDelivery}}
29
- <a href="#" class="pdp-price__excluding-delivery">Excluding delivery</a>
30
- {{/if}}
31
- {{#if isDescription}}
32
- {{#if isCashback}}
33
- <div class="pdp-price__description">
34
- *Cashback offer valid until 31st May 2019.
35
- Claim by 31st July 2019.
36
- Terms & conditions apply.
37
- </div>
38
- <div class="pdp-price__terms">
39
- <a href="#">
40
- Cashback Terms and Conditions
41
- </a>
42
- </div>
43
- {{else}}
44
- <div class="pdp-price__description">
45
- Offer price equivalent to &pound;24 per item
46
- </div>
47
- {{/if}}
48
- {{/if}}
49
-
50
- {{else}}
51
- <div class="pdp-price__price">&pound;79.99</div>
52
- {{/if}}
2
+ {{#if isDiscount}}
3
+ <div class="pdp__badges pdp-price-container__badges price__badges-v2 price__badges-v2-{{badge-color}}
4
+ {{#if badge-text-color}}price__badges-v2-text-{{badge-text-color}}{{/if}}
5
+ {{#if badge-wide}}price__badges-v2-wide{{/if}}">
6
+ {{#ifCond switch-vat '&&' badge-text-exc}}
7
+ <div class="pdp__badge including-vat">{{badge-text}}</div>
8
+ <div class="pdp__badge excluding-vat d-none">{{badge-text-exc}}</div>
9
+ {{else}}
10
+ <div class="pdp__badge">{{badge-text}}</div>
11
+ {{/ifCond}}
12
+ </div>
13
+ {{/if}}
14
+ <div class="pdp-price">
15
+ <div class="pdp-price__value">
16
+ {{#if switch-vat}}
17
+ <div class="pdp-price-sale__value including-vat">
18
+ {{#if isDiscount}}
19
+ <div class="pdp-price__old-price"><s>&pound;119.99</s></div>
20
+ <div class="main-price">
21
+ <div class="main-price__value pdp-price__new-price">&pound;79.99</div>
22
+ <div class="main-price__vat">Inc.VAT</div>
23
+ </div>
24
+ {{#if isSQM}}
25
+ <div class="pdp-price__sqm">&pound;40 per SQM</div>
26
+ {{/if}}
27
+ <div class="pdp-price__remainder">You save &pound;40</div>
28
+ {{#if isExcludingDelivery}}
29
+ <a href="#" class="pdp-price__excluding-delivery">Excluding delivery</a>
30
+ {{/if}}
31
+ {{#if isDescription}}
32
+ {{#if isCashback}}
33
+ <div class="pdp-price__description">
34
+ *Cashback offer valid until 31st May 2019.
35
+ Claim by 31st July 2019.
36
+ Terms & conditions apply.
53
37
  </div>
54
- <div class="pdp-price-sale__value excluding-vat d-none">
55
- {{#if isDiscount}}
56
- <div class="pdp-price__old-price"><s>&pound;118.99</s></div>
57
- <div class="main-price">
58
- <div class="main-price__value pdp-price__new-price">&pound;78.99</div>
59
- <div class="main-price__vat">Exc.VAT</div>
60
- </div>
61
- {{#if isSQM}}
62
- <div class="pdp-price__sqm">&pound;39 per SQM</div>
63
- {{/if}}
64
- <div class="pdp-price__remainder">You save &pound;39</div>
65
- {{#if isExcludingDelivery}}
66
- <a href="#" class="pdp-price__excluding-delivery">Excluding delivery</a>
67
- {{/if}}
68
- {{#if isDescription}}
69
- {{#if isCashback}}
70
- <div class="pdp-price__description">
71
- *Cashback offer valid until 31st May 2019.
72
- Claim by 31st July 2019.
73
- Terms & conditions apply.
74
- </div>
75
- <div class="pdp-price__terms">
76
- <a href="#">
77
- Cashback Terms and Conditions
78
- </a>
79
- </div>
80
- {{else}}
81
- <div class="pdp-price__description">
82
- Offer price equivalent to &pound;23 per item
83
- </div>
84
- {{/if}}
85
- {{/if}}
86
-
87
- {{else}}
88
- <div class="pdp-price__price">&pound;79.99</div>
89
- {{/if}}
38
+ <div class="pdp-price__terms">
39
+ <a href="#">
40
+ Cashback Terms and Conditions
41
+ </a>
90
42
  </div>
91
- {{else}}
92
- <div class="pdp-price-sale__value">
93
- {{#if isDiscount}}
94
- <div class="pdp-price__old-price"><s>&pound;119.99</s></div>
95
- <div class="pdp-price__new-price">&pound;79.99</div>
96
- {{#if isSQM}}
97
- <div class="pdp-price__sqm">&pound;40 per SQM</div>
98
- {{/if}}
99
- <div class="pdp-price__remainder">You save &pound;40</div>
100
- {{#if isExcludingDelivery}}
101
- <a href="#" class="pdp-price__excluding-delivery">Excluding delivery</a>
102
- {{/if}}
103
- {{#if isDescription}}
104
- {{#if isCashback}}
105
- <div class="pdp-price__description">
106
- *Cashback offer valid until 31st May 2019.
107
- Claim by 31st July 2019.
108
- Terms & conditions apply.
109
- </div>
110
- <div class="pdp-price__terms">
111
- <a href="#">
112
- Cashback Terms and Conditions
113
- </a>
114
- </div>
115
- {{else}}
116
- <div class="pdp-price__description">
117
- Long offer message Lorem ipsum dolor sit amet,
118
- consectetur adipiscing elit.
119
- Aenean euismod bibendum laoreet
120
- </div>
121
- {{/if}}
122
- {{/if}}
123
- {{else}}
124
- <div class="pdp-price__price">&pound;79.99</div>
125
- {{/if}}
43
+ {{else}}
44
+ <div class="pdp-price__description">
45
+ Offer price equivalent to &pound;24 per item
126
46
  </div>
47
+ {{/if}}
127
48
  {{/if}}
128
- {{#if klarna-placement}}
129
- <div class="pdp-price__klarna-payment">
130
- <klarna-placement
131
- data-key="credit-promotion-badge"
132
- data-locale="en-GB"
133
- data-purchase-amount="12000"
134
- {{#if klarna-method-ids}}data-custom-payment-method-ids="{{klarna-method-ids}}"{{/if}}
135
- ></klarna-placement>
136
- </div>
137
- {{/if}}
138
- {{#if billie-placement}}
139
- <div class="pdp-price__billie-payment">
140
- {{> billie-online-messaging}}
49
+
50
+ {{else}}
51
+ <div class="pdp-price__price">&pound;79.99</div>
52
+ {{/if}}
53
+ </div>
54
+ <div class="pdp-price-sale__value excluding-vat d-none">
55
+ {{#if isDiscount}}
56
+ <div class="pdp-price__old-price"><s>&pound;118.99</s></div>
57
+ <div class="main-price">
58
+ <div class="main-price__value pdp-price__new-price">&pound;78.99</div>
59
+ <div class="main-price__vat">Exc.VAT</div>
141
60
  </div>
61
+ {{#if isSQM}}
62
+ <div class="pdp-price__sqm">&pound;39 per SQM</div>
142
63
  {{/if}}
143
- {{#if clearpay-placement}}
144
- {{> clearpay}}
64
+ <div class="pdp-price__remainder">You save &pound;39</div>
65
+ {{#if isExcludingDelivery}}
66
+ <a href="#" class="pdp-price__excluding-delivery">Excluding delivery</a>
145
67
  {{/if}}
146
- </div>
147
- {{#if currentlyInStock}}
148
- <div class="pdp-price__value pdp-price__value_extended">
149
- <div class="pdp-price__delivery">
150
- <span class="delivery-link">Delivery</span>
151
- <span class="delivery-info">Available to certain postcodes</span>
68
+ {{#if isDescription}}
69
+ {{#if isCashback}}
70
+ <div class="pdp-price__description">
71
+ *Cashback offer valid until 31st May 2019.
72
+ Claim by 31st July 2019.
73
+ Terms & conditions apply.
152
74
  </div>
153
- </div>
154
- {{else if notifyMe}}
155
- <div class="pdp-price__oos">
156
- <a href="#" class="btn btn-action btn_full">
157
- <span class="btn__text">Notify Me</span>
158
- </a>
159
- <p>Currently out of stock, use our Notify Me button to receive an email when this item is available</p>
160
- </div>
161
- {{else}}
162
- <div class="pdp-price__oos">
163
- <strong>Out of Stock</strong>
164
- <p>Sorry, this product is out of stock</p>
165
- </div>
166
- <div class="pdp-price__in-store-only">
167
- <p>In Store Only</p>
168
- </div>
169
- {{/if}}
170
- <div class="pdp-price__controls">
171
- {{#if isSize}}
172
- <div class="pdp-price__size">
173
- {{> form-row row-mod="sort-order-by" dropdown="true" id="d1" placeholder="Please select a size"}}
75
+ <div class="pdp-price__terms">
76
+ <a href="#">
77
+ Cashback Terms and Conditions
78
+ </a>
174
79
  </div>
80
+ {{else}}
81
+ <div class="pdp-price__description">
82
+ Offer price equivalent to &pound;23 per item
83
+ </div>
84
+ {{/if}}
175
85
  {{/if}}
176
- <div class="
177
- pdp-price__control-holder
178
- {{#unless wisdom}}
179
- {{#if big-wins}}
180
- control-holder__big-wins
86
+
87
+ {{else}}
88
+ <div class="pdp-price__price">&pound;79.99</div>
181
89
  {{/if}}
182
- {{/unless}}
183
- ">
184
- <p>Minimum order quantity for delivery is 4</p>
185
- {{#unless isQuantity}}
186
- <label for="quantity-field" class="quantity-label">Quantity: </label>
187
- <input type="text" inputmode="numeric" required="" pattern="[0-9]*\d" id="quantity-field"
188
- class="tbx tbx_quantity"
189
- value="1">
190
- {{/unless}}
191
- {{#unless default-store}}
192
- <div class="pdp-price__calculator-wrapper">
193
- <a href="#">
194
- <span class="icon">
195
- <i class="far fa-calculator"></i>
196
- </span>
197
- Calculator
198
- </a>
199
- </div>
200
- {{/unless}}
201
- </div>
202
- {{#if mfeProductCalculator}}
203
- <div class="pdp-price__quantity-calculator">MFE Calculator Placeholder</div>
90
+ </div>
91
+ {{else}}
92
+ <div class="pdp-price-sale__value">
93
+ {{#if isDiscount}}
94
+ <div class="pdp-price__old-price"><s>&pound;119.99</s></div>
95
+ <div class="pdp-price__new-price">&pound;79.99</div>
96
+ {{#if isSQM}}
97
+ <div class="pdp-price__sqm">&pound;40 per SQM</div>
204
98
  {{/if}}
205
- {{#if currentlyInStock}}
206
- {{> pdp-price-actions
207
- installation=install
208
- order-sample=sample
209
- c-and-c=cc
210
- delivery=delivery
211
- big-wins=big-wins
212
- wisdom=wisdom
213
- mcfc=mcfc
214
- available=available
215
- stock-accordion="stock-accordion"
216
- isUserNonRegistered=isUserNonRegistered
217
- nearest-purchase=nearest-purchase
218
- unhappy=unhappy
219
- nearestAmount=nearestAmount
220
- nearestName=nearestName
221
- }}
222
- <div class="pdp-price__call-to-actions">
223
- {{#unless default-store}}
224
- <div class="pdp-price__control-holder pdp-price__actions">
225
- <a href="#" class="link-secondary">Check stock in your local store</a>
226
- </div>
227
- {{/unless}}
99
+ <div class="pdp-price__remainder">You save &pound;40</div>
100
+ {{#if isExcludingDelivery}}
101
+ <a href="#" class="pdp-price__excluding-delivery">Excluding delivery</a>
102
+ {{/if}}
103
+ {{#if isDescription}}
104
+ {{#if isCashback}}
105
+ <div class="pdp-price__description">
106
+ *Cashback offer valid until 31st May 2019.
107
+ Claim by 31st July 2019.
108
+ Terms & conditions apply.
109
+ </div>
110
+ <div class="pdp-price__terms">
111
+ <a href="#">
112
+ Cashback Terms and Conditions
113
+ </a>
114
+ </div>
115
+ {{else}}
116
+ <div class="pdp-price__description">
117
+ Long offer message Lorem ipsum dolor sit amet,
118
+ consectetur adipiscing elit.
119
+ Aenean euismod bibendum laoreet
228
120
  </div>
121
+ {{/if}}
229
122
  {{/if}}
123
+ {{else}}
124
+ <div class="pdp-price__price">&pound;79.99</div>
125
+ {{/if}}
126
+ </div>
127
+ {{/if}}
128
+ {{#if currentlyInStock}}
129
+ <div class="pdp-price__value pdp-price__value_extended">
130
+ <div class="pdp-price__delivery">
131
+ <span class="delivery-link">Delivery</span>
132
+ <span class="delivery-info">Available to certain postcodes</span>
133
+ </div>
134
+ </div>
135
+ {{else if notifyMe}}
136
+ <div class="pdp-price__oos">
137
+ <a href="#" class="btn btn-primary btn_full btn--notify-open" data-target="#modal-notify-me">
138
+ <i class="fas fa-bell"></i>
139
+ <span class="btn__text">Notify Me</span>
140
+ </a>
141
+ <p>Currently out of stock, use our Notify Me button to receive an email when this product is available</p>
142
+ </div>
143
+ {{else}}
144
+ <div class="pdp-price__oos">
145
+ <strong>Out of Stock</strong>
146
+ <p>Sorry, this product is out of stock</p>
147
+ </div>
148
+ <div class="pdp-price__in-store-only">
149
+ <p>In Store Only</p>
150
+ </div>
151
+ {{/if}}
152
+ {{#if klarna-placement}}
153
+ <div class="pdp-price__klarna-payment">
154
+ <klarna-placement
155
+ data-key="credit-promotion-badge"
156
+ data-locale="en-GB"
157
+ data-purchase-amount="12000"
158
+ {{#if klarna-method-ids}}data-custom-payment-method-ids="{{klarna-method-ids}}"{{/if}}
159
+ ></klarna-placement>
160
+ </div>
161
+ {{/if}}
162
+ {{#if billie-placement}}
163
+ <div class="pdp-price__billie-payment">
164
+ {{> billie-online-messaging}}
165
+ </div>
166
+ {{/if}}
167
+ {{#if clearpay-placement}}
168
+ {{> clearpay}}
169
+ {{/if}}
170
+ </div>
171
+ <div class="pdp-price__controls">
172
+ {{#if isSize}}
173
+ <div class="pdp-price__size">
174
+ {{> form-row row-mod="sort-order-by" dropdown="true" id="d1" placeholder="Please select a size"}}
175
+ </div>
176
+ {{/if}}
177
+
178
+ {{#if (or (not isQuantity) (not default-store))}}
179
+ <div class="pdp-price__control-holder {{#unless wisdom}}{{#if big-wins}}control-holder__big-wins{{/if}}{{/unless}}">
180
+ {{#unless isQuantity}}
181
+ <label for="quantity-field" class="quantity-label">Quantity: </label>
182
+ <input type="text" inputmode="numeric" pattern="[0-9]*" id="quantity-field"
183
+ class="tbx tbx_quantity"
184
+ value="1">
185
+ {{/unless}}
186
+ {{#unless default-store}}
187
+ <div class="pdp-price__calculator-wrapper">
188
+ <a href="#">
189
+ <span class="icon">
190
+ <i class="far fa-calculator"></i>
191
+ </span>
192
+ Calculator
193
+ </a>
194
+ </div>
195
+ {{/unless}}
196
+ </div>
197
+ {{/if}}
198
+
199
+ {{#if mfeProductCalculator}}
200
+ <div class="pdp-price__quantity-calculator">MFE Calculator Placeholder</div>
201
+ {{/if}}
202
+ {{#if currentlyInStock}}
203
+ {{> pdp-price-actions
204
+ installation=install
205
+ order-sample=sample
206
+ c-and-c=cc
207
+ delivery=delivery
208
+ big-wins=big-wins
209
+ wisdom=wisdom
210
+ mcfc=mcfc
211
+ available=available
212
+ stock-accordion="stock-accordion"
213
+ isUserNonRegistered=isUserNonRegistered
214
+ nearest-purchase=nearest-purchase
215
+ unhappy=unhappy
216
+ nearestAmount=nearestAmount
217
+ nearestName=nearestName
218
+ }}
219
+ <div class="pdp-price__call-to-actions">
220
+ {{#unless default-store}}
221
+ <div class="pdp-price__control-holder pdp-price__actions">
222
+ <a href="#" class="link-secondary">Check stock in your local store</a>
223
+ </div>
224
+ {{/unless}}
230
225
  </div>
226
+ {{/if}}
231
227
  </div>
228
+ </div>
232
229
  </div>
@@ -0,0 +1,10 @@
1
+ {{#if search-result_v2.sponsor-top-banner}}
2
+ <div class="sponsor-top-banner sponsored-ad">
3
+ <a class="sponsor-top-banner__link" href="{{search-result_v2.sponsor-top-banner.href}}">
4
+ <picture class="sponsor-top-banner__picture">
5
+ <source class="sponsor-top-banner__image" srcset="{{#if search-result_v2.sponsor-top-banner.mobile-src}}{{search-result_v2.sponsor-top-banner.mobile-src}}{{else}}{{search-result_v2.sponsor-top-banner.src}}{{/if}}" media="(max-width: 768px)">
6
+ <img class="sponsor-top-banner__image" src="{{search-result_v2.sponsor-top-banner.src}}" alt="banner">
7
+ </picture>
8
+ </a>
9
+ </div>
10
+ {{/if}}
@@ -19,7 +19,7 @@
19
19
  },
20
20
  {
21
21
  "title": "Delivery:",
22
- "value": "applied at Checkout",
22
+ "value": "£4.00",
23
23
  "mod": "delivery"
24
24
  },
25
25
  {
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "search-result_v2": {
3
+ "sponsor-top-banner": {
4
+ "src": "https://placehold.co/1200x200?text=Top+Banner+Desktop",
5
+ "mobile-src": "https://placehold.co/600x200?text=Top+Banner+Mobile",
6
+ "href": "/sitemap.html"
7
+ },
3
8
  "product-banner": [
4
9
  {
5
- "src": "https://placehold.co/912x1426?text=Decorating+Tools\n+\nShop+Now",
10
+ "src": "https://placehold.co/912x1426?text=Hybris+Banner+Desktop",
11
+ "mobile-src": "https://placehold.co/600x400?text=Hybris+Banner+Mobile",
6
12
  "href": "/sitemap.html",
7
13
  "desktop-position": 8,
8
14
  "mobile-position": 7,
@@ -64,7 +70,8 @@
64
70
  ],
65
71
  "sponsor-banner": [
66
72
  {
67
- "src": "https://placehold.co/912x1426?text=Decorating+Tools\n+\nShop+Now",
73
+ "src": "https://placehold.co/912x1426?text=Sponsor+Banner+Desktop",
74
+ "mobile-src": "https://placehold.co/600x400?text=Sponsor+Banner+Mobile",
68
75
  "href": "/sitemap.html",
69
76
  "desktop-position": 6,
70
77
  "mobile-position": 8
@@ -7,6 +7,10 @@
7
7
  "name": "Essentials TEST",
8
8
  "keyword": "plaster",
9
9
  "bannerType": "image_url",
10
+ "src": "https://placehold.co/1200x200?text=Injected+Banner+Desktop",
11
+ "mobile-src": "https://placehold.co/600x200?text=Injected+Banner+Mobile",
12
+ "href": "/sitemap.html",
13
+ "alt": "Wickes Essentials",
10
14
  "htmlText": "<img src=\"https://media.wickes.co.uk/is/image/wickes/28120-Feb-Trade-Essentials-Homepage-Full-Width?&extend=0,0,0,0&fmt=png8\" usemap=\"#hotspot-map-186857\"><map name=\"hotspot-map-186857\"><area shape=\"rect\" coords=\"0,0,1400,400\" href=\"https://www.wickes.co.uk/trade/trade-offers\" alt=\"Wickes Essentials\"></map>",
11
15
  "dateEnd": "Fri Jan 12 20:06:43 UTC 1001968",
12
16
  "id": "186857"
@@ -1,35 +1,38 @@
1
1
  var Wick = Wick || {};
2
2
  Wick.DeliveryDetails = (function () {
3
- var $page = $('.page_checkout-delivery-details');
3
+ var $page = $('.page_checkout-delivery-details');
4
4
 
5
- function bindEvents () {
6
- var dateAlert;
5
+ function bindEvents() {
6
+ var dateAlert;
7
7
 
8
- $page.find('.btn-payment-details, .delivery-details__payment-details, .delivery-details__payment-details_mobile').on('click', function () {
8
+ $page
9
+ .find(
10
+ '.btn-payment-details, .delivery-details__payment-details, .delivery-details__payment-details_mobile'
11
+ )
12
+ .on('click', function () {
13
+ if (navigator.userAgent.match(/TradeProMobile_Android|DIYMobile_Android/i)) {
14
+ document.body.scrollTop = 0;
15
+ document.documentElement.scrollTop = 0;
16
+ }
9
17
 
10
- if (navigator.userAgent.match(/TradeProMobile_Android|DIYMobile_Android/i)) {
11
- document.body.scrollTop = 0;
12
- document.documentElement.scrollTop = 0;
13
- }
18
+ if (!Wick.DateSelection.isDateSelected()) {
19
+ dateAlert = Wick.Notification.show({
20
+ text: 'Sorry, please select a delivery date and/or time',
21
+ container: '.checkout-heading',
22
+ type: 'error',
23
+ });
24
+ return false;
25
+ }
26
+ });
14
27
 
15
- if (!Wick.DateSelection.isDateSelected()){
16
- dateAlert = Wick.Notification.show({
17
- text: 'Sorry, please select a delivery date and/or time',
18
- container: '.checkout-heading',
19
- type: 'error'
28
+ $('.date-selection').on('selected', function () {
29
+ dateAlert && dateAlert.hide();
20
30
  });
21
- return false;
22
- }
23
- });
31
+ }
24
32
 
25
- $('.date-selection').on('selected', function(){
26
- dateAlert && dateAlert.hide();
27
- });
28
- }
33
+ if (!$page.length) {
34
+ return;
35
+ }
29
36
 
30
- if (!$page.length){
31
- return;
32
- }
33
-
34
- bindEvents();
37
+ bindEvents();
35
38
  })();
@@ -3,7 +3,7 @@ function simulateHybrisSendingHtml() {
3
3
  const event = new CustomEvent('productAddedToCart', {
4
4
  detail: { html: htmlFromHybris },
5
5
  });
6
- document.dispatchEvent(event);
6
+ window.dispatchEvent(event);
7
7
  }
8
8
 
9
9
  function bindResolveEvent(events) {