wickes-css2 2.111.0-develop.5 → 2.111.0-dont-forget-widget.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.
Files changed (54) hide show
  1. package/Readme.md +1 -1
  2. package/build/css/pdp-main-before-combine.css +1 -1
  3. package/build/css/pdp-main-non-critical.css +1 -1
  4. package/build/css/pdp-main.css +1 -1
  5. package/build/js/basket.min.js +1 -1
  6. package/build/js/bloomreach-widget.min.js +1 -1
  7. package/build/js/bundle.min.js +1 -1
  8. package/build/js/checkout.min.js +1 -1
  9. package/build/js/emulation.min.js +689 -54
  10. package/build/js/general.bundle.min.js +1 -1
  11. package/build/js/merged-checkout.min.js +1 -1
  12. package/build/js/page/bloomreach-widget/bloomreach-recommendation-carousel-widget.js +223 -0
  13. package/build/js/page/bloomreach-widget/bloomreach-widget.js +319 -0
  14. package/build/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +214 -387
  15. package/build/js/page/bloomreach-widget/dont-forget-widget.js +33 -0
  16. package/build/js/page/bloomreach-widget/why-not-add-widget.js +30 -0
  17. package/build/js/pdp.bundle.min.js +1 -1
  18. package/build/js/plp.bundle.min.js +1 -1
  19. package/build/js/project-list.min.js +1 -1
  20. package/package.json +1 -1
  21. package/src/components/bloomreach/complete-card.hbs +4 -32
  22. package/src/components/bloomreach/complete-your-project-skeleton.hbs +21 -0
  23. package/src/components/bloomreach/complete-your-project.hbs +4 -21
  24. package/src/components/bloomreach/why-not-add-card-skeleton.hbs +14 -0
  25. package/src/components/bloomreach/why-not-add-card.hbs +86 -0
  26. package/src/components/bloomreach/why-not-add-content.hbs +41 -0
  27. package/src/components/bloomreach/why-not-add-skeleton.hbs +9 -0
  28. package/src/components/bloomreach/why-not-add.hbs +4 -0
  29. package/src/components/pdp-price-actions.hbs +2 -2
  30. package/src/components/price-block-v2.hbs +2 -0
  31. package/src/components/reviews-rating.hbs +22 -0
  32. package/src/js/components/general/cart-slider.js +5 -0
  33. package/src/js/emulation/bloomreach-widget-loading.js +2 -2
  34. package/src/js/emulation/complete-your-project-loading.js +16 -0
  35. package/src/js/emulation/dont-forget-loading.js +18 -0
  36. package/src/js/emulation/mock.js +611 -3
  37. package/src/js/emulation/why-not-add-loading.js +16 -0
  38. package/src/js/emulation/why-not-add.js +28 -0
  39. package/src/js/page/bloomreach-widget/bloomreach-recommendation-carousel-widget.js +223 -0
  40. package/src/js/page/bloomreach-widget/bloomreach-widget.js +319 -0
  41. package/src/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +214 -387
  42. package/src/js/page/bloomreach-widget/dont-forget-widget.js +33 -0
  43. package/src/js/page/bloomreach-widget/why-not-add-widget.js +30 -0
  44. package/src/page_product-details-bloomreach.html +1 -1
  45. package/src/page_product-details-with-global-search-v2.html +2 -1
  46. package/src/page_product-details-with-why-not-add-single.html +131 -0
  47. package/src/scss/components/bloomreach/_bloomreach.scss +3 -0
  48. package/src/scss/components/bloomreach/_complete-card.scss +0 -38
  49. package/src/scss/components/bloomreach/_reviews.scss +60 -0
  50. package/src/scss/components/bloomreach/_why-not-add-card.scss +270 -0
  51. package/src/scss/components/bloomreach/_why-not-add.scss +172 -0
  52. package/src/sitemap.html +10 -4
  53. package/src/components/.DS_Store +0 -0
  54. package/src/js/page/.DS_Store +0 -0
@@ -9,6 +9,613 @@ Wick.FEMock = {
9
9
  );
10
10
  },
11
11
  dataBloomreach: {
12
+ dontForgetRecommendations: {
13
+ recommendedProducts: [
14
+ {
15
+ baseProduct: {
16
+ code: '153731',
17
+ name: 'Wickes Trade Paint Roller Set - 9in',
18
+ url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
19
+ purchasable: true,
20
+ productType: 'ProductModel',
21
+ isBaseProduct: false,
22
+ availabilityRestriction: 'NO_RESTRICTIONS',
23
+ fulfilmentType: 'STANDARD',
24
+ stock: {
25
+ stockLevelStatus: {
26
+ code: 'inStock',
27
+ },
28
+ },
29
+ fulfillmentAttributes: {
30
+ type: 'STANDARD',
31
+ },
32
+ potentialPromotions: [
33
+ {
34
+ customAttributes: {
35
+ overlayText: '15% off',
36
+ overlayBackgroundColor: 'yellow',
37
+ overlayTextColor: 'gray',
38
+ },
39
+ },
40
+ ],
41
+ images: [
42
+ {
43
+ imageType: 'PRIMARY',
44
+ format: 'product',
45
+ url: 'https://placehold.co/68x68?text=roller',
46
+ altText: 'Wickes Trade Paint Roller Set - 9in',
47
+ },
48
+ ],
49
+ externalAverageRating: 5,
50
+ externalReviewCount: 100,
51
+ displayPrice: {
52
+ currencyIso: 'GBP',
53
+ value: 9999,
54
+ priceType: 'BUY',
55
+ formattedValue: '£9,999.00',
56
+ formattedPriceWithoutCurrencySymbol: '9999',
57
+ currencySymbol: '£',
58
+ vatRatePercentage: 20,
59
+ valueInPence: 999900,
60
+ wasPrice: 3000,
61
+ },
62
+ displayPriceExclusiveVat: {
63
+ currencyIso: 'GBP',
64
+ value: 9998,
65
+ priceType: 'BUY',
66
+ formattedValue: '£9,998.00',
67
+ formattedPriceWithoutCurrencySymbol: '9998',
68
+ currencySymbol: '£',
69
+ valueInPence: 999800,
70
+ wasPrice: 2500,
71
+ },
72
+ },
73
+ },
74
+ {
75
+ baseProduct: {
76
+ code: '349137',
77
+ name: 'Wickes Microfibre Paint Roller Sleeve - 9in',
78
+ url: '/Wickes-Microfibre-Paint-Roller-Sleeve---9in/p/349137',
79
+ purchasable: true,
80
+ productType: 'ProductModel',
81
+ isBaseProduct: false,
82
+ availabilityRestriction: 'NO_RESTRICTIONS',
83
+ fulfilmentType: 'STANDARD',
84
+ stock: {
85
+ stockLevelStatus: {
86
+ code: 'inStock',
87
+ },
88
+ },
89
+ fulfillmentAttributes: {
90
+ type: 'STANDARD',
91
+ },
92
+ potentialPromotions: [
93
+ {
94
+ customAttributes: {
95
+ overlayText: 'Multi-buy',
96
+ overlayBackgroundColor: 'green',
97
+ overlayTextColor: 'gray',
98
+ },
99
+ },
100
+ ],
101
+ images: [
102
+ {
103
+ imageType: 'PRIMARY',
104
+ format: 'product',
105
+ url: 'https://placehold.co/68x68?text=sleeve',
106
+ altText: 'Wickes Microfibre Paint Roller Sleeve - 9in',
107
+ },
108
+ ],
109
+ externalAverageRating: 4.2,
110
+ externalReviewCount: 48,
111
+ displayPrice: {
112
+ currencyIso: 'GBP',
113
+ value: 7.5,
114
+ priceType: 'BUY',
115
+ formattedValue: '£7.50',
116
+ formattedPriceWithoutCurrencySymbol: '7.50',
117
+ currencySymbol: '£',
118
+ vatRatePercentage: 20,
119
+ valueInPence: 750,
120
+ },
121
+ displayPriceExclusiveVat: {
122
+ currencyIso: 'GBP',
123
+ value: 6.25,
124
+ priceType: 'BUY',
125
+ formattedValue: '£6.25',
126
+ formattedPriceWithoutCurrencySymbol: '6.25',
127
+ currencySymbol: '£',
128
+ valueInPence: 625,
129
+ },
130
+ },
131
+ },
132
+ {
133
+ baseProduct: {
134
+ code: '221048',
135
+ name: 'Wickes Paint Tray - 9in',
136
+ url: '/Wickes-Paint-Tray---9in/p/221048',
137
+ purchasable: true,
138
+ productType: 'ProductModel',
139
+ isBaseProduct: false,
140
+ availabilityRestriction: 'NO_RESTRICTIONS',
141
+ fulfilmentType: 'STANDARD',
142
+ stock: {
143
+ stockLevelStatus: {
144
+ code: 'inStock',
145
+ },
146
+ },
147
+ fulfillmentAttributes: {
148
+ type: 'STANDARD',
149
+ },
150
+ potentialPromotions: [
151
+ {
152
+ customAttributes: {
153
+ overlayText: 'Offer Ends Wednesday',
154
+ overlayBackgroundColor: 'red',
155
+ overlayTextColor: 'white',
156
+ },
157
+ },
158
+ ],
159
+ images: [
160
+ {
161
+ imageType: 'PRIMARY',
162
+ format: 'product',
163
+ url: 'https://placehold.co/68x68?text=tray',
164
+ altText: 'Wickes Paint Tray - 9in',
165
+ },
166
+ ],
167
+ externalAverageRating: 3.8,
168
+ externalReviewCount: 19,
169
+ displayPrice: {
170
+ currencyIso: 'GBP',
171
+ value: 4,
172
+ priceType: 'BUY',
173
+ formattedValue: '£4',
174
+ formattedPriceWithoutCurrencySymbol: '4',
175
+ currencySymbol: '£',
176
+ vatRatePercentage: 20,
177
+ valueInPence: 400,
178
+ },
179
+ displayPriceExclusiveVat: {
180
+ currencyIso: 'GBP',
181
+ value: 3.33,
182
+ priceType: 'BUY',
183
+ formattedValue: '£3.33',
184
+ formattedPriceWithoutCurrencySymbol: '3.33',
185
+ currencySymbol: '£',
186
+ valueInPence: 333,
187
+ },
188
+ },
189
+ },
190
+ {
191
+ baseProduct: {
192
+ code: '654221',
193
+ name: 'Wickes Professional Masking Tape - 48mm x 50m',
194
+ url: '/Wickes-Professional-Masking-Tape---48mm-x-50m/p/654221',
195
+ purchasable: true,
196
+ productType: 'ProductModel',
197
+ isBaseProduct: false,
198
+ availabilityRestriction: 'NO_RESTRICTIONS',
199
+ fulfilmentType: 'STANDARD',
200
+ stock: {
201
+ stockLevelStatus: {
202
+ code: 'inStock',
203
+ },
204
+ },
205
+ fulfillmentAttributes: {
206
+ type: 'STANDARD',
207
+ },
208
+ potentialPromotions: [
209
+ {
210
+ customAttributes: {
211
+ overlayText: 'Online Only',
212
+ overlayBackgroundColor: 'blue',
213
+ overlayTextColor: 'white',
214
+ },
215
+ },
216
+ ],
217
+ images: [
218
+ {
219
+ imageType: 'PRIMARY',
220
+ format: 'product',
221
+ url: 'https://placehold.co/68x68?text=tape',
222
+ altText: 'Wickes Professional Masking Tape - 48mm x 50m',
223
+ },
224
+ ],
225
+ externalAverageRating: 4.6,
226
+ externalReviewCount: 72,
227
+ displayPrice: {
228
+ currencyIso: 'GBP',
229
+ value: 5.5,
230
+ priceType: 'BUY',
231
+ formattedValue: '£5.50',
232
+ formattedPriceWithoutCurrencySymbol: '5.50',
233
+ currencySymbol: '£',
234
+ vatRatePercentage: 20,
235
+ valueInPence: 550,
236
+ },
237
+ displayPriceExclusiveVat: {
238
+ currencyIso: 'GBP',
239
+ value: 4.58,
240
+ priceType: 'BUY',
241
+ formattedValue: '£4.58',
242
+ formattedPriceWithoutCurrencySymbol: '4.58',
243
+ currencySymbol: '£',
244
+ valueInPence: 458,
245
+ },
246
+ },
247
+ },
248
+ {
249
+ baseProduct: {
250
+ code: '782913',
251
+ name: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m Extra Long Product Name For Two Line Truncation Test',
252
+ url: '/Wickes-Dust-Sheet-Cotton-Twill---3-6m-x-2-7m/p/782913',
253
+ purchasable: true,
254
+ productType: 'ProductModel',
255
+ isBaseProduct: false,
256
+ availabilityRestriction: 'NO_RESTRICTIONS',
257
+ fulfilmentType: 'STANDARD',
258
+ stock: {
259
+ stockLevelStatus: {
260
+ code: 'inStock',
261
+ },
262
+ },
263
+ fulfillmentAttributes: {
264
+ type: 'STANDARD',
265
+ },
266
+ potentialPromotions: [
267
+ {
268
+ customAttributes: {
269
+ overlayText: 'Clearance',
270
+ overlayBackgroundColor: 'gray',
271
+ overlayTextColor: 'white',
272
+ },
273
+ },
274
+ ],
275
+ images: [
276
+ {
277
+ imageType: 'PRIMARY',
278
+ format: 'product',
279
+ url: 'https://placehold.co/68x68?text=sheet',
280
+ altText: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m',
281
+ },
282
+ ],
283
+ externalAverageRating: 4.1,
284
+ externalReviewCount: 34,
285
+ displayPrice: {
286
+ currencyIso: 'GBP',
287
+ value: 12,
288
+ priceType: 'BUY',
289
+ formattedValue: '£12',
290
+ formattedPriceWithoutCurrencySymbol: '12',
291
+ currencySymbol: '£',
292
+ vatRatePercentage: 20,
293
+ valueInPence: 1200,
294
+ wasPrice: 18,
295
+ },
296
+ displayPriceExclusiveVat: {
297
+ currencyIso: 'GBP',
298
+ value: 10,
299
+ priceType: 'BUY',
300
+ formattedValue: '£10',
301
+ formattedPriceWithoutCurrencySymbol: '10',
302
+ currencySymbol: '£',
303
+ valueInPence: 1000,
304
+ wasPrice: 15,
305
+ },
306
+ },
307
+ },
308
+ ],
309
+ },
310
+ whyNotAddRecommendationsSingle: {
311
+ recommendedProducts: [
312
+ {
313
+ baseProduct: {
314
+ code: '153731',
315
+ name: 'Wickes Trade Paint Roller Set - 9in',
316
+ url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
317
+ purchasable: true,
318
+ productType: 'ProductModel',
319
+ isBaseProduct: false,
320
+ availabilityRestriction: 'NO_RESTRICTIONS',
321
+ fulfilmentType: 'STANDARD',
322
+ stock: {
323
+ stockLevelStatus: {
324
+ code: 'inStock',
325
+ },
326
+ },
327
+ fulfillmentAttributes: {
328
+ type: 'STANDARD',
329
+ },
330
+ images: [
331
+ {
332
+ imageType: 'PRIMARY',
333
+ format: 'product',
334
+ url: 'https://placehold.co/68x68?text=roller',
335
+ altText: 'Wickes Trade Paint Roller Set - 9in',
336
+ },
337
+ ],
338
+ externalAverageRating: 5,
339
+ externalReviewCount: 100,
340
+ displayPrice: {
341
+ currencyIso: 'GBP',
342
+ value: 9999,
343
+ priceType: 'BUY',
344
+ formattedValue: '£9,999.00',
345
+ formattedPriceWithoutCurrencySymbol: '16',
346
+ currencySymbol: '£',
347
+ vatRatePercentage: 20,
348
+ valueInPence: 999900,
349
+ wasPrice: 30,
350
+ },
351
+ displayPriceExclusiveVat: {
352
+ currencyIso: 'GBP',
353
+ value: 9998,
354
+ priceType: 'BUY',
355
+ formattedValue: '£9,998.00',
356
+ formattedPriceWithoutCurrencySymbol: '13.33',
357
+ currencySymbol: '£',
358
+ valueInPence: 999800,
359
+ wasPrice: 25,
360
+ },
361
+ },
362
+ },
363
+ ],
364
+ },
365
+ whyNotAddRecommendations: {
366
+ recommendedProducts: [
367
+ {
368
+ baseProduct: {
369
+ code: '153731',
370
+ name: 'Wickes Trade Paint Roller Set - 9in',
371
+ url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
372
+ purchasable: true,
373
+ productType: 'ProductModel',
374
+ isBaseProduct: false,
375
+ availabilityRestriction: 'NO_RESTRICTIONS',
376
+ fulfilmentType: 'STANDARD',
377
+ stock: {
378
+ stockLevelStatus: {
379
+ code: 'inStock',
380
+ },
381
+ },
382
+ fulfillmentAttributes: {
383
+ type: 'STANDARD',
384
+ },
385
+ images: [
386
+ {
387
+ imageType: 'PRIMARY',
388
+ format: 'product',
389
+ url: 'https://placehold.co/68x68?text=roller',
390
+ altText: 'Wickes Trade Paint Roller Set - 9in',
391
+ },
392
+ ],
393
+ externalAverageRating: 5,
394
+ externalReviewCount: 100,
395
+
396
+ displayPrice: {
397
+ currencyIso: 'GBP',
398
+ value: 9999,
399
+ priceType: 'BUY',
400
+ formattedValue: '£9,999.00',
401
+ formattedPriceWithoutCurrencySymbol: '16',
402
+ currencySymbol: '£',
403
+ vatRatePercentage: 20,
404
+ valueInPence: 999900,
405
+ wasPrice: 3000,
406
+ },
407
+ displayPriceExclusiveVat: {
408
+ currencyIso: 'GBP',
409
+ value: 9998,
410
+ priceType: 'BUY',
411
+ formattedValue: '£9,998.00',
412
+ formattedPriceWithoutCurrencySymbol: '13.33',
413
+ currencySymbol: '£',
414
+ valueInPence: 999800,
415
+ wasPrice: 2500,
416
+ },
417
+ },
418
+ },
419
+ {
420
+ baseProduct: {
421
+ code: '349137',
422
+ name: 'Wickes Microfibre Paint Roller Sleeve - 9in',
423
+ url: '/Wickes-Microfibre-Paint-Roller-Sleeve---9in/p/349137',
424
+ purchasable: true,
425
+ productType: 'ProductModel',
426
+ isBaseProduct: false,
427
+ availabilityRestriction: 'NO_RESTRICTIONS',
428
+ fulfilmentType: 'STANDARD',
429
+ stock: {
430
+ stockLevelStatus: {
431
+ code: 'inStock',
432
+ },
433
+ },
434
+ fulfillmentAttributes: {
435
+ type: 'STANDARD',
436
+ },
437
+ images: [
438
+ {
439
+ imageType: 'PRIMARY',
440
+ format: 'product',
441
+ url: 'https://placehold.co/68x68?text=sleeve',
442
+ altText: 'Wickes Microfibre Paint Roller Sleeve - 9in',
443
+ },
444
+ ],
445
+ externalAverageRating: 4.2,
446
+ externalReviewCount: 48,
447
+ displayPrice: {
448
+ currencyIso: 'GBP',
449
+ value: 9999,
450
+ priceType: 'BUY',
451
+ formattedValue: '£7.5220',
452
+ formattedPriceWithoutCurrencySymbol: '7.50',
453
+ currencySymbol: '£',
454
+ vatRatePercentage: 20,
455
+ valueInPence: 999900,
456
+ },
457
+ displayPriceExclusiveVat: {
458
+ currencyIso: 'GBP',
459
+ value: 9998,
460
+ priceType: 'BUY',
461
+ formattedValue: '£6.25',
462
+ formattedPriceWithoutCurrencySymbol: '6.25',
463
+ currencySymbol: '£',
464
+ valueInPence: 999800,
465
+ },
466
+ },
467
+ },
468
+ {
469
+ baseProduct: {
470
+ code: '221048',
471
+ name: 'Wickes Paint Tray - 9in',
472
+ url: '/Wickes-Paint-Tray---9in/p/221048',
473
+ purchasable: true,
474
+ productType: 'ProductModel',
475
+ isBaseProduct: false,
476
+ availabilityRestriction: 'NO_RESTRICTIONS',
477
+ fulfilmentType: 'STANDARD',
478
+ stock: {
479
+ stockLevelStatus: {
480
+ code: 'inStock',
481
+ },
482
+ },
483
+ fulfillmentAttributes: {
484
+ type: 'STANDARD',
485
+ },
486
+ images: [
487
+ {
488
+ imageType: 'PRIMARY',
489
+ format: 'product',
490
+ url: 'https://placehold.co/68x68?text=tray',
491
+ altText: 'Wickes Paint Tray - 9in',
492
+ },
493
+ ],
494
+ externalAverageRating: 3.8,
495
+ externalReviewCount: 19,
496
+ displayPrice: {
497
+ currencyIso: 'GBP',
498
+ value: 4,
499
+ priceType: 'BUY',
500
+ formattedValue: '£4',
501
+ formattedPriceWithoutCurrencySymbol: '4',
502
+ currencySymbol: '£',
503
+ vatRatePercentage: 20,
504
+ valueInPence: 400,
505
+ },
506
+ displayPriceExclusiveVat: {
507
+ currencyIso: 'GBP',
508
+ value: 3.33,
509
+ priceType: 'BUY',
510
+ formattedValue: '£3.33',
511
+ formattedPriceWithoutCurrencySymbol: '3.33',
512
+ currencySymbol: '£',
513
+ valueInPence: 333,
514
+ },
515
+ },
516
+ },
517
+ {
518
+ baseProduct: {
519
+ code: '654221',
520
+ name: 'Wickes Professional Masking Tape - 48mm x 50m',
521
+ url: '/Wickes-Professional-Masking-Tape---48mm-x-50m/p/654221',
522
+ purchasable: true,
523
+ productType: 'ProductModel',
524
+ isBaseProduct: false,
525
+ availabilityRestriction: 'NO_RESTRICTIONS',
526
+ fulfilmentType: 'STANDARD',
527
+ stock: {
528
+ stockLevelStatus: {
529
+ code: 'inStock',
530
+ },
531
+ },
532
+ fulfillmentAttributes: {
533
+ type: 'STANDARD',
534
+ },
535
+ images: [
536
+ {
537
+ imageType: 'PRIMARY',
538
+ format: 'product',
539
+ url: 'https://placehold.co/68x68?text=tape',
540
+ altText: 'Wickes Professional Masking Tape - 48mm x 50m',
541
+ },
542
+ ],
543
+ externalAverageRating: 4.6,
544
+ externalReviewCount: 72,
545
+ displayPrice: {
546
+ currencyIso: 'GBP',
547
+ value: 5.5,
548
+ priceType: 'BUY',
549
+ formattedValue: '£5.50',
550
+ formattedPriceWithoutCurrencySymbol: '5.50',
551
+ currencySymbol: '£',
552
+ vatRatePercentage: 20,
553
+ valueInPence: 550,
554
+ },
555
+ displayPriceExclusiveVat: {
556
+ currencyIso: 'GBP',
557
+ value: 4.58,
558
+ priceType: 'BUY',
559
+ formattedValue: '£4.58',
560
+ formattedPriceWithoutCurrencySymbol: '4.58',
561
+ currencySymbol: '£',
562
+ valueInPence: 458,
563
+ },
564
+ },
565
+ },
566
+ {
567
+ baseProduct: {
568
+ code: '782913',
569
+ name: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m Extra Long Product Name For Two Line Truncation Test',
570
+ url: '/Wickes-Dust-Sheet-Cotton-Twill---3-6m-x-2-7m/p/782913',
571
+ purchasable: true,
572
+ productType: 'ProductModel',
573
+ isBaseProduct: false,
574
+ availabilityRestriction: 'NO_RESTRICTIONS',
575
+ fulfilmentType: 'STANDARD',
576
+ stock: {
577
+ stockLevelStatus: {
578
+ code: 'inStock',
579
+ },
580
+ },
581
+ fulfillmentAttributes: {
582
+ type: 'STANDARD',
583
+ },
584
+ images: [
585
+ {
586
+ imageType: 'PRIMARY',
587
+ format: 'product',
588
+ url: 'https://placehold.co/68x68?text=sheet',
589
+ altText: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m',
590
+ },
591
+ ],
592
+ externalAverageRating: 4.1,
593
+ externalReviewCount: 34,
594
+ displayPrice: {
595
+ currencyIso: 'GBP',
596
+ value: 12,
597
+ priceType: 'BUY',
598
+ formattedValue: '£12',
599
+ formattedPriceWithoutCurrencySymbol: '12',
600
+ currencySymbol: '£',
601
+ vatRatePercentage: 20,
602
+ valueInPence: 1200,
603
+ wasPrice: 18,
604
+ },
605
+ displayPriceExclusiveVat: {
606
+ currencyIso: 'GBP',
607
+ value: 10,
608
+ priceType: 'BUY',
609
+ formattedValue: '£10',
610
+ formattedPriceWithoutCurrencySymbol: '10',
611
+ currencySymbol: '£',
612
+ valueInPence: 1000,
613
+ wasPrice: 15,
614
+ },
615
+ },
616
+ },
617
+ ],
618
+ },
12
619
  completeYourProject3Recomendations: [
13
620
  {
14
621
  baseProduct: {
@@ -3189,9 +3796,10 @@ Wick.FEMock = {
3189
3796
  </div>
3190
3797
  </div>
3191
3798
  </div>
3192
- <div class="custom-slider__content">
3193
- <p>Product description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam fermentum, nulla luctus pharetra vulputate, felis tellus mollis orci, sed rhoncus pronin sapien nunc accuan eget. Product description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam fermentum, nulla luctus pharetra vulputate, felis tellus mollis orci, sed rhoncus pronin sapien nunc accuan eget.</p>
3194
- </div>
3799
+ <div
3800
+ data-dont-forget-widget
3801
+ data-mock-key="dontForgetRecommendations"
3802
+ ></div>
3195
3803
  </div>
3196
3804
  <div class="custom-slider__footer">
3197
3805
  <button class="btn btn_full btn-secondary close-popup">Continue Shopping</button>
@@ -0,0 +1,16 @@
1
+ var Wick = window.Wick || {};
2
+
3
+ $(document).ready(function () {
4
+ const $container = $('[data-why-not-add-widget]');
5
+
6
+ if (!$container.length) {
7
+ return;
8
+ }
9
+
10
+ window.setTimeout(function () {
11
+ const mockDataKey = $container.data('mock-key');
12
+ const payloadData = Wick.FEMock.dataBloomreach[mockDataKey];
13
+
14
+ Wick.BloomreachWidget.init('whyNotAdd', payloadData);
15
+ }, 3000);
16
+ });
@@ -0,0 +1,28 @@
1
+ var Wick = window.Wick || {};
2
+
3
+ function simulateHybrisSendingHtml() {
4
+ const htmlFromHybris = Wick.FEMock.cartPDP;
5
+
6
+ window.dispatchEvent(
7
+ new CustomEvent('productAddedToCart', {
8
+ detail: {
9
+ html: htmlFromHybris,
10
+ },
11
+ })
12
+ );
13
+ }
14
+
15
+ function bindWhyNotAddToCartEvent() {
16
+ $(window)
17
+ .off('addToCart.whyNotAddEmulation')
18
+ .on('addToCart.whyNotAddEmulation', function ({ detail: { resolve } }) {
19
+ setTimeout(function () {
20
+ resolve();
21
+ simulateHybrisSendingHtml();
22
+ }, 3000);
23
+ });
24
+ }
25
+
26
+ $(document).ready(function () {
27
+ bindWhyNotAddToCartEvent();
28
+ });