wickes-css2 2.109.0-develop.2 → 2.109.0-develop.4

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 (91) 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 +490 -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/basket-v2.js +30 -26
  26. package/build/js/page/components/notify-me.js +99 -0
  27. package/build/js/page/components/order-summary.js +35 -0
  28. package/build/js/pdp.bundle.min.js +2 -1
  29. package/build/js/wickes-dc.js +1 -0
  30. package/package.json +1 -3
  31. package/src/components/base/button.hbs +1 -1
  32. package/src/components/card_product_banner_v2.hbs +4 -1
  33. package/src/components/card_sponsor_banner.hbs +4 -1
  34. package/src/components/checkout_order-summary-new.hbs +10 -1
  35. package/src/components/click-and-collect-modal.hbs +0 -14
  36. package/src/components/date-selection.hbs +1 -1
  37. package/src/components/delivery-types.hbs +11 -3
  38. package/src/components/injected-content.hbs +6 -1
  39. package/src/components/modal.hbs +1 -1
  40. package/src/components/modals/notify-me-modal.hbs +76 -0
  41. package/src/components/order-item.hbs +7 -7
  42. package/src/components/order-summary.hbs +2 -2
  43. package/src/components/potential-promotion.hbs +4 -4
  44. package/src/components/price-block-v2.hbs +211 -214
  45. package/src/components/sponsor-top-banner.hbs +10 -0
  46. package/src/data/data_delivery-address-v2.json +1 -1
  47. package/src/data/data_search-results_v2.json +9 -2
  48. package/src/data/data_shopping-cart-v2.json +46 -2
  49. package/src/data/data_shopping-cart-with-energy.json +26 -2
  50. package/src/data/data_spr_injected_content.json +4 -0
  51. package/src/js/emulation/basket-data.js +312 -0
  52. package/src/js/emulation/checkout-delivery-details.js +28 -25
  53. package/src/js/emulation/custom-slider-emulation.js +1 -1
  54. package/src/js/emulation/date-selection.js +136 -24
  55. package/src/js/emulation/forms.js +12 -0
  56. package/src/js/emulation/mini-basket-data.js +3 -3
  57. package/src/js/emulation/notify-me.js +9 -0
  58. package/src/js/emulation/switchCalendar.js +12 -8
  59. package/src/js/page/basket/mini-basket-total.js +17 -2
  60. package/src/js/page/basket-v2.js +30 -26
  61. package/src/js/page/components/notify-me.js +99 -0
  62. package/src/js/page/components/order-summary.js +35 -0
  63. package/src/page_checkout_next-day-delivery-details.html +2 -2
  64. package/src/page_checkout_payment-details-v2-asm.html +1 -1
  65. package/src/page_checkout_payment-details-v2.html +1 -1
  66. package/src/page_checkout_payment-details_with-card-loader.html +1 -1
  67. package/src/page_checkout_payment-details_with-klarna-loader.html +1 -1
  68. package/src/page_checkout_payment-details_with-loader-v2.html +1 -1
  69. package/src/page_checkout_rapid-delivery-details.html +7 -5
  70. package/src/page_klarna_payment-details_with-klarna.html +1 -1
  71. package/src/page_payment-details-with-billie.html +1 -1
  72. package/src/page_payment-details-with-clearpay.html +1 -1
  73. package/src/page_payment-details-with-gift-card.html +1 -1
  74. package/src/page_payment-details_with_apple-pay.html +1 -1
  75. package/src/page_payment-details_with_google-pay.html +1 -1
  76. package/src/page_plp_v2.html +1 -0
  77. package/src/page_product-details-mfe-calculator.html +9 -3
  78. package/src/scss/common/_CTAs.scss +7 -3
  79. package/src/scss/components/_custom-slider.scss +18 -0
  80. package/src/scss/components/_date-selection-add-new-styles.scss +43 -1
  81. package/src/scss/components/_notify-me-modal.scss +139 -0
  82. package/src/scss/components/_order-summary.scss +25 -12
  83. package/src/scss/components/_price-block-critical.scss +2 -2
  84. package/src/scss/components/_price-block.scss +14 -4
  85. package/src/scss/components/card-product-banner.scss +8 -0
  86. package/src/scss/helpers/_CTAs.scss +15 -5
  87. package/src/scss/pages/page_checkout_delivery-new.scss +36 -0
  88. package/src/scss/pages/page_products-list-combined.scss +8 -1
  89. package/src/scss/pages/page_products-list.scss +8 -1
  90. package/src/scss/pages/page_shopping-cart-v2.scss +34 -10
  91. package/src/scss/pdp-main.scss +1 -0
@@ -8,10 +8,14 @@
8
8
  },
9
9
  "potentialOrderPromotions": [
10
10
  {
11
- "description": "Spend over £200 on Bathroom Lighting and save £10.0"
11
+ "description": "Spend over £200 on Bathroom Lighting and save £10.0",
12
+ "displayDescription": "Spend over £200 on Bathroom Lighting and save £10.0",
13
+ "displayDescriptionExclusiveVat": "Spend over £150 on Bathroom Lighting and save £10.0"
12
14
  },
13
15
  {
14
- "description": "Spend over 2500 pound and get £2500 discount"
16
+ "description": "Spend over 2500 pound and get £2500 discount",
17
+ "displayDescription": "Spend over 2500 pound and get £2500 discount",
18
+ "displayDescriptionExclusiveVat": "Spend over 2000 pound and get £2000 discount"
15
19
  }
16
20
  ],
17
21
  "checkout": {
@@ -80,6 +84,10 @@
80
84
  "price": "16",
81
85
  "quantity": 2,
82
86
  "total": "32",
87
+ "displayBasePrice": "16",
88
+ "displayBasePriceExclusiveVat": "15",
89
+ "displayItemTotalWithoutDiscount": "32",
90
+ "displayItemTotalWithoutDiscountExclusiveVat": "30",
83
91
  "offers": [
84
92
  "Buy 2 for 3 — Add 1 to qualify",
85
93
  "Buy 2 for 3 — Add 1 to qualify"
@@ -339,6 +347,10 @@
339
347
  "price": "16",
340
348
  "quantity": 2,
341
349
  "total": "32",
350
+ "displayBasePrice": "16",
351
+ "displayBasePriceExclusiveVat": "15",
352
+ "displayItemTotalWithoutDiscount": "32",
353
+ "displayItemTotalWithoutDiscountExclusiveVat": "30",
342
354
  "offers": [
343
355
  "Buy 2 for 3 — Add 1 to qualify",
344
356
  "Buy 2 for 3 — Add 1 to qualify"
@@ -604,6 +616,10 @@
604
616
  "price": "16",
605
617
  "quantity": 2,
606
618
  "total": "32",
619
+ "displayBasePrice": "16",
620
+ "displayBasePriceExclusiveVat": "15",
621
+ "displayItemTotalWithoutDiscount": "32",
622
+ "displayItemTotalWithoutDiscountExclusiveVat": "30",
607
623
  "offers": [
608
624
  "Buy 2 for 3 — Add 1 to qualify",
609
625
  "Buy 2 for 3 — Add 1 to qualify"
@@ -628,6 +644,10 @@
628
644
  "price": "16",
629
645
  "quantity": 3,
630
646
  "total": "32",
647
+ "displayBasePrice": "16",
648
+ "displayBasePriceExclusiveVat": "15",
649
+ "displayItemTotalWithoutDiscount": "32",
650
+ "displayItemTotalWithoutDiscountExclusiveVat": "30",
631
651
  "energyEfficiencyInfo": {
632
652
  "ratingValue": "D",
633
653
  "oldRatingType": false,
@@ -641,6 +661,10 @@
641
661
  "image": "./img/tile-buying-guide.jpg",
642
662
  "title": "6 Wickes General Purpose Claw test",
643
663
  "price": "16",
664
+ "displayBasePrice": "16",
665
+ "displayBasePriceExclusiveVat": "15",
666
+ "displayItemTotalWithoutDiscount": "16",
667
+ "displayItemTotalWithoutDiscountExclusiveVat": "15",
644
668
  "code": "123143",
645
669
  "quantity": 1,
646
670
  "totalMobile": "16",
@@ -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"
@@ -69,6 +69,18 @@ Wick.BasketData = (function () {
69
69
  currencyIso: 'GBP',
70
70
  formattedPriceWithoutCurrencySymbol: '4',
71
71
  },
72
+ displayBasePrice: {
73
+ value: 5.0,
74
+ formattedValue: '£5.00',
75
+ currencyIso: 'GBP',
76
+ formattedPriceWithoutCurrencySymbol: '5.00',
77
+ },
78
+ displayBasePriceExclusiveVat: {
79
+ value: 4,
80
+ formattedValue: '£4',
81
+ currencyIso: 'GBP',
82
+ formattedPriceWithoutCurrencySymbol: '4',
83
+ },
72
84
  totalPrice: {
73
85
  currencyIso: 'GBP',
74
86
  value: 3700.0,
@@ -410,6 +422,18 @@ Wick.BasketData = (function () {
410
422
  currencyIso: 'GBP',
411
423
  formattedPriceWithoutCurrencySymbol: '3600',
412
424
  },
425
+ displayItemTotalWithoutDiscount: {
426
+ value: 3700.0,
427
+ formattedValue: '£3700.00',
428
+ currencyIso: 'GBP',
429
+ formattedPriceWithoutCurrencySymbol: '3700.00',
430
+ },
431
+ displayItemTotalWithoutDiscountExclusiveVat: {
432
+ value: 3600,
433
+ formattedValue: '£3600',
434
+ currencyIso: 'GBP',
435
+ formattedPriceWithoutCurrencySymbol: '3600',
436
+ },
413
437
  appliedPromotions: null,
414
438
  tilingInstallationData: null,
415
439
  flooringInstallationData: null,
@@ -498,6 +522,18 @@ Wick.BasketData = (function () {
498
522
  currencyIso: 'GBP',
499
523
  formattedPriceWithoutCurrencySymbol: '99',
500
524
  },
525
+ displayBasePrice: {
526
+ value: 100.0,
527
+ formattedValue: '£100',
528
+ currencyIso: 'GBP',
529
+ formattedPriceWithoutCurrencySymbol: '100',
530
+ },
531
+ displayBasePriceExclusiveVat: {
532
+ value: 99,
533
+ formattedValue: '£99',
534
+ currencyIso: 'GBP',
535
+ formattedPriceWithoutCurrencySymbol: '99',
536
+ },
501
537
  product: {
502
538
  code: '221100',
503
539
  name: 'Blue Circle Ready To Use Postcrete - 20kg',
@@ -553,6 +589,18 @@ Wick.BasketData = (function () {
553
589
  currencyIso: 'GBP',
554
590
  formattedPriceWithoutCurrencySymbol: '99',
555
591
  },
592
+ displayItemTotalWithoutDiscount: {
593
+ value: 100.0,
594
+ formattedValue: '£100',
595
+ currencyIso: 'GBP',
596
+ formattedPriceWithoutCurrencySymbol: '100',
597
+ },
598
+ displayItemTotalWithoutDiscountExclusiveVat: {
599
+ value: 99,
600
+ formattedValue: '£99',
601
+ currencyIso: 'GBP',
602
+ formattedPriceWithoutCurrencySymbol: '99',
603
+ },
556
604
  orderFulfilmentControls: {
557
605
  availableForDelivery: true,
558
606
  availableForCollection: true,
@@ -585,6 +633,18 @@ Wick.BasketData = (function () {
585
633
  currencyIso: 'GBP',
586
634
  formattedPriceWithoutCurrencySymbol: '23',
587
635
  },
636
+ displayBasePrice: {
637
+ value: 24.0,
638
+ formattedValue: '£24',
639
+ currencyIso: 'GBP',
640
+ formattedPriceWithoutCurrencySymbol: '24',
641
+ },
642
+ displayBasePriceExclusiveVat: {
643
+ value: 23,
644
+ formattedValue: '£23',
645
+ currencyIso: 'GBP',
646
+ formattedPriceWithoutCurrencySymbol: '23',
647
+ },
588
648
  product: {
589
649
  code: '109450',
590
650
  name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
@@ -637,6 +697,18 @@ Wick.BasketData = (function () {
637
697
  currencyIso: 'GBP',
638
698
  formattedPriceWithoutCurrencySymbol: '23',
639
699
  },
700
+ displayItemTotalWithoutDiscount: {
701
+ value: 24.0,
702
+ formattedValue: '£24',
703
+ currencyIso: 'GBP',
704
+ formattedPriceWithoutCurrencySymbol: '24',
705
+ },
706
+ displayItemTotalWithoutDiscountExclusiveVat: {
707
+ value: 23,
708
+ formattedValue: '£23',
709
+ currencyIso: 'GBP',
710
+ formattedPriceWithoutCurrencySymbol: '23',
711
+ },
640
712
  orderFulfilmentControls: {
641
713
  availableForDelivery: true,
642
714
  availableForCollection: true,
@@ -658,6 +730,18 @@ Wick.BasketData = (function () {
658
730
  currencyIso: 'GBP',
659
731
  formattedPriceWithoutCurrencySymbol: '0',
660
732
  },
733
+ displayBasePrice: {
734
+ value: 0.0,
735
+ formattedValue: '£0',
736
+ currencyIso: 'GBP',
737
+ formattedPriceWithoutCurrencySymbol: '0',
738
+ },
739
+ displayBasePriceExclusiveVat: {
740
+ value: 0,
741
+ formattedValue: '£0',
742
+ currencyIso: 'GBP',
743
+ formattedPriceWithoutCurrencySymbol: '0',
744
+ },
661
745
  product: {
662
746
  code: '103123',
663
747
  name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
@@ -717,6 +801,18 @@ Wick.BasketData = (function () {
717
801
  currencyIso: 'GBP',
718
802
  formattedPriceWithoutCurrencySymbol: '0',
719
803
  },
804
+ displayItemTotalWithoutDiscount: {
805
+ value: 0.0,
806
+ formattedValue: '£0',
807
+ currencyIso: 'GBP',
808
+ formattedPriceWithoutCurrencySymbol: '0',
809
+ },
810
+ displayItemTotalWithoutDiscountExclusiveVat: {
811
+ value: 0,
812
+ formattedValue: '£0',
813
+ currencyIso: 'GBP',
814
+ formattedPriceWithoutCurrencySymbol: '0',
815
+ },
720
816
  orderFulfilmentControls: {
721
817
  availableForDelivery: true,
722
818
  availableForCollection: true,
@@ -751,6 +847,18 @@ Wick.BasketData = (function () {
751
847
  currencyIso: 'GBP',
752
848
  formattedPriceWithoutCurrencySymbol: '24',
753
849
  },
850
+ displayBasePrice: {
851
+ value: 25.0,
852
+ formattedValue: '£25',
853
+ currencyIso: 'GBP',
854
+ formattedPriceWithoutCurrencySymbol: '25',
855
+ },
856
+ displayBasePriceExclusiveVat: {
857
+ value: 24,
858
+ formattedValue: '£24',
859
+ currencyIso: 'GBP',
860
+ formattedPriceWithoutCurrencySymbol: '24',
861
+ },
754
862
  product: {
755
863
  code: '109451',
756
864
  name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
@@ -811,6 +919,18 @@ Wick.BasketData = (function () {
811
919
  currencyIso: 'GBP',
812
920
  formattedPriceWithoutCurrencySymbol: '24',
813
921
  },
922
+ displayItemTotalWithoutDiscount: {
923
+ value: 25.0,
924
+ formattedValue: '£25',
925
+ currencyIso: 'GBP',
926
+ formattedPriceWithoutCurrencySymbol: '25',
927
+ },
928
+ displayItemTotalWithoutDiscountExclusiveVat: {
929
+ value: 24,
930
+ formattedValue: '£24',
931
+ currencyIso: 'GBP',
932
+ formattedPriceWithoutCurrencySymbol: '24',
933
+ },
814
934
  orderFulfilmentControls: {
815
935
  availableForDelivery: true,
816
936
  availableForCollection: true,
@@ -832,6 +952,18 @@ Wick.BasketData = (function () {
832
952
  currencyIso: 'GBP',
833
953
  formattedPriceWithoutCurrencySymbol: '24',
834
954
  },
955
+ displayBasePrice: {
956
+ value: 25.0,
957
+ formattedValue: '£25',
958
+ currencyIso: 'GBP',
959
+ formattedPriceWithoutCurrencySymbol: '25',
960
+ },
961
+ displayBasePriceExclusiveVat: {
962
+ value: 24,
963
+ formattedValue: '£24',
964
+ currencyIso: 'GBP',
965
+ formattedPriceWithoutCurrencySymbol: '24',
966
+ },
835
967
  product: {
836
968
  code: '123143',
837
969
  name: '6 Wickes General Purpose Claw test',
@@ -881,6 +1013,18 @@ Wick.BasketData = (function () {
881
1013
  currencyIso: 'GBP',
882
1014
  formattedPriceWithoutCurrencySymbol: '24',
883
1015
  },
1016
+ displayItemTotalWithoutDiscount: {
1017
+ value: 25.0,
1018
+ formattedValue: '£25',
1019
+ currencyIso: 'GBP',
1020
+ formattedPriceWithoutCurrencySymbol: '25',
1021
+ },
1022
+ displayItemTotalWithoutDiscountExclusiveVat: {
1023
+ value: 24,
1024
+ formattedValue: '£24',
1025
+ currencyIso: 'GBP',
1026
+ formattedPriceWithoutCurrencySymbol: '24',
1027
+ },
884
1028
  orderFulfilmentControls: {
885
1029
  availableForDelivery: true,
886
1030
  availableForCollection: true,
@@ -979,6 +1123,18 @@ Wick.BasketData = (function () {
979
1123
  currencyIso: 'GBP',
980
1124
  formattedPriceWithoutCurrencySymbol: '99',
981
1125
  },
1126
+ displayBasePrice: {
1127
+ value: 100.0,
1128
+ formattedValue: '£100',
1129
+ currencyIso: 'GBP',
1130
+ formattedPriceWithoutCurrencySymbol: '100',
1131
+ },
1132
+ displayBasePriceExclusiveVat: {
1133
+ value: 99,
1134
+ formattedValue: '£99',
1135
+ currencyIso: 'GBP',
1136
+ formattedPriceWithoutCurrencySymbol: '99',
1137
+ },
982
1138
  product: {
983
1139
  code: '221100',
984
1140
  name: 'Blue Circle Ready To Use Postcrete - 20kg',
@@ -1034,6 +1190,18 @@ Wick.BasketData = (function () {
1034
1190
  currencyIso: 'GBP',
1035
1191
  formattedPriceWithoutCurrencySymbol: '99',
1036
1192
  },
1193
+ displayItemTotalWithoutDiscount: {
1194
+ value: 100.0,
1195
+ formattedValue: '£100',
1196
+ currencyIso: 'GBP',
1197
+ formattedPriceWithoutCurrencySymbol: '100',
1198
+ },
1199
+ displayItemTotalWithoutDiscountExclusiveVat: {
1200
+ value: 99,
1201
+ formattedValue: '£99',
1202
+ currencyIso: 'GBP',
1203
+ formattedPriceWithoutCurrencySymbol: '99',
1204
+ },
1037
1205
  orderFulfilmentControls: {
1038
1206
  availableForDelivery: true,
1039
1207
  availableForCollection: true,
@@ -1066,6 +1234,18 @@ Wick.BasketData = (function () {
1066
1234
  currencyIso: 'GBP',
1067
1235
  formattedPriceWithoutCurrencySymbol: '23',
1068
1236
  },
1237
+ displayBasePrice: {
1238
+ value: 24.0,
1239
+ formattedValue: '£24',
1240
+ currencyIso: 'GBP',
1241
+ formattedPriceWithoutCurrencySymbol: '24',
1242
+ },
1243
+ displayBasePriceExclusiveVat: {
1244
+ value: 23,
1245
+ formattedValue: '£23',
1246
+ currencyIso: 'GBP',
1247
+ formattedPriceWithoutCurrencySymbol: '23',
1248
+ },
1069
1249
  product: {
1070
1250
  code: '109450',
1071
1251
  name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
@@ -1118,6 +1298,18 @@ Wick.BasketData = (function () {
1118
1298
  currencyIso: 'GBP',
1119
1299
  formattedPriceWithoutCurrencySymbol: '23',
1120
1300
  },
1301
+ displayItemTotalWithoutDiscount: {
1302
+ value: 24.0,
1303
+ formattedValue: '£24',
1304
+ currencyIso: 'GBP',
1305
+ formattedPriceWithoutCurrencySymbol: '24',
1306
+ },
1307
+ displayItemTotalWithoutDiscountExclusiveVat: {
1308
+ value: 23,
1309
+ formattedValue: '£23',
1310
+ currencyIso: 'GBP',
1311
+ formattedPriceWithoutCurrencySymbol: '23',
1312
+ },
1121
1313
  orderFulfilmentControls: {
1122
1314
  availableForDelivery: true,
1123
1315
  availableForCollection: true,
@@ -1139,6 +1331,18 @@ Wick.BasketData = (function () {
1139
1331
  currencyIso: 'GBP',
1140
1332
  formattedPriceWithoutCurrencySymbol: '0',
1141
1333
  },
1334
+ displayBasePrice: {
1335
+ value: 0.0,
1336
+ formattedValue: '£0',
1337
+ currencyIso: 'GBP',
1338
+ formattedPriceWithoutCurrencySymbol: '0',
1339
+ },
1340
+ displayBasePriceExclusiveVat: {
1341
+ value: 0,
1342
+ formattedValue: '£0',
1343
+ currencyIso: 'GBP',
1344
+ formattedPriceWithoutCurrencySymbol: '0',
1345
+ },
1142
1346
  product: {
1143
1347
  code: '103123',
1144
1348
  name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
@@ -1198,6 +1402,18 @@ Wick.BasketData = (function () {
1198
1402
  currencyIso: 'GBP',
1199
1403
  formattedPriceWithoutCurrencySymbol: '0',
1200
1404
  },
1405
+ displayItemTotalWithoutDiscount: {
1406
+ value: 0.0,
1407
+ formattedValue: '£0',
1408
+ currencyIso: 'GBP',
1409
+ formattedPriceWithoutCurrencySymbol: '0',
1410
+ },
1411
+ displayItemTotalWithoutDiscountExclusiveVat: {
1412
+ value: 0,
1413
+ formattedValue: '£0',
1414
+ currencyIso: 'GBP',
1415
+ formattedPriceWithoutCurrencySymbol: '0',
1416
+ },
1201
1417
  orderFulfilmentControls: {
1202
1418
  availableForDelivery: true,
1203
1419
  availableForCollection: true,
@@ -1232,6 +1448,18 @@ Wick.BasketData = (function () {
1232
1448
  currencyIso: 'GBP',
1233
1449
  formattedPriceWithoutCurrencySymbol: '24',
1234
1450
  },
1451
+ displayBasePrice: {
1452
+ value: 25.0,
1453
+ formattedValue: '£25',
1454
+ currencyIso: 'GBP',
1455
+ formattedPriceWithoutCurrencySymbol: '25',
1456
+ },
1457
+ displayBasePriceExclusiveVat: {
1458
+ value: 24,
1459
+ formattedValue: '£24',
1460
+ currencyIso: 'GBP',
1461
+ formattedPriceWithoutCurrencySymbol: '24',
1462
+ },
1235
1463
  product: {
1236
1464
  code: '109451',
1237
1465
  name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
@@ -1292,6 +1520,18 @@ Wick.BasketData = (function () {
1292
1520
  currencyIso: 'GBP',
1293
1521
  formattedPriceWithoutCurrencySymbol: '24',
1294
1522
  },
1523
+ displayItemTotalWithoutDiscount: {
1524
+ value: 25.0,
1525
+ formattedValue: '£25',
1526
+ currencyIso: 'GBP',
1527
+ formattedPriceWithoutCurrencySymbol: '25',
1528
+ },
1529
+ displayItemTotalWithoutDiscountExclusiveVat: {
1530
+ value: 24,
1531
+ formattedValue: '£24',
1532
+ currencyIso: 'GBP',
1533
+ formattedPriceWithoutCurrencySymbol: '24',
1534
+ },
1295
1535
  orderFulfilmentControls: {
1296
1536
  availableForDelivery: true,
1297
1537
  availableForCollection: true,
@@ -1313,6 +1553,18 @@ Wick.BasketData = (function () {
1313
1553
  currencyIso: 'GBP',
1314
1554
  formattedPriceWithoutCurrencySymbol: '24',
1315
1555
  },
1556
+ displayBasePrice: {
1557
+ value: 25.0,
1558
+ formattedValue: '£25',
1559
+ currencyIso: 'GBP',
1560
+ formattedPriceWithoutCurrencySymbol: '25',
1561
+ },
1562
+ displayBasePriceExclusiveVat: {
1563
+ value: 24,
1564
+ formattedValue: '£24',
1565
+ currencyIso: 'GBP',
1566
+ formattedPriceWithoutCurrencySymbol: '24',
1567
+ },
1316
1568
  product: {
1317
1569
  code: '123143',
1318
1570
  name: '6 Wickes General Purpose Claw test',
@@ -1362,6 +1614,18 @@ Wick.BasketData = (function () {
1362
1614
  currencyIso: 'GBP',
1363
1615
  formattedPriceWithoutCurrencySymbol: '24',
1364
1616
  },
1617
+ displayItemTotalWithoutDiscount: {
1618
+ value: 25.0,
1619
+ formattedValue: '£25',
1620
+ currencyIso: 'GBP',
1621
+ formattedPriceWithoutCurrencySymbol: '25',
1622
+ },
1623
+ displayItemTotalWithoutDiscountExclusiveVat: {
1624
+ value: 24,
1625
+ formattedValue: '£24',
1626
+ currencyIso: 'GBP',
1627
+ formattedPriceWithoutCurrencySymbol: '24',
1628
+ },
1365
1629
  orderFulfilmentControls: {
1366
1630
  availableForDelivery: true,
1367
1631
  availableForCollection: true,
@@ -1420,6 +1684,18 @@ Wick.BasketData = (function () {
1420
1684
  currencyIso: 'GBP',
1421
1685
  formattedPriceWithoutCurrencySymbol: '17',
1422
1686
  },
1687
+ displayBasePrice: {
1688
+ value: 18.0,
1689
+ formattedValue: '£18.00',
1690
+ currencyIso: 'GBP',
1691
+ formattedPriceWithoutCurrencySymbol: '18.00',
1692
+ },
1693
+ displayBasePriceExclusiveVat: {
1694
+ value: 17,
1695
+ formattedValue: '£17',
1696
+ currencyIso: 'GBP',
1697
+ formattedPriceWithoutCurrencySymbol: '17',
1698
+ },
1423
1699
  totalPrice: {
1424
1700
  currencyIso: 'GBP',
1425
1701
  value: 36.0,
@@ -1900,6 +2176,18 @@ Wick.BasketData = (function () {
1900
2176
  currencyIso: 'GBP',
1901
2177
  formattedPriceWithoutCurrencySymbol: '35',
1902
2178
  },
2179
+ displayItemTotalWithoutDiscount: {
2180
+ value: 36.0,
2181
+ formattedValue: '£36.00',
2182
+ currencyIso: 'GBP',
2183
+ formattedPriceWithoutCurrencySymbol: '36.00',
2184
+ },
2185
+ displayItemTotalWithoutDiscountExclusiveVat: {
2186
+ value: 35,
2187
+ formattedValue: '£35',
2188
+ currencyIso: 'GBP',
2189
+ formattedPriceWithoutCurrencySymbol: '35',
2190
+ },
1903
2191
  appliedPromotions: null,
1904
2192
  tilingInstallationData: null,
1905
2193
  flooringInstallationData: null,
@@ -1950,6 +2238,18 @@ Wick.BasketData = (function () {
1950
2238
  currencyIso: 'GBP',
1951
2239
  formattedPriceWithoutCurrencySymbol: '3',
1952
2240
  },
2241
+ displayBasePrice: {
2242
+ value: 4.0,
2243
+ formattedValue: '£4.00',
2244
+ currencyIso: 'GBP',
2245
+ formattedPriceWithoutCurrencySymbol: '4.00',
2246
+ },
2247
+ displayBasePriceExclusiveVat: {
2248
+ value: 3,
2249
+ formattedValue: '£3',
2250
+ currencyIso: 'GBP',
2251
+ formattedPriceWithoutCurrencySymbol: '3',
2252
+ },
1953
2253
  totalPrice: {
1954
2254
  currencyIso: 'GBP',
1955
2255
  value: 24.0,
@@ -2155,6 +2455,18 @@ Wick.BasketData = (function () {
2155
2455
  currencyIso: 'GBP',
2156
2456
  formattedPriceWithoutCurrencySymbol: '23',
2157
2457
  },
2458
+ displayItemTotalWithoutDiscount: {
2459
+ value: 24.0,
2460
+ formattedValue: '£24.00',
2461
+ currencyIso: 'GBP',
2462
+ formattedPriceWithoutCurrencySymbol: '24.00',
2463
+ },
2464
+ displayItemTotalWithoutDiscountExclusiveVat: {
2465
+ value: 23,
2466
+ formattedValue: '£23',
2467
+ currencyIso: 'GBP',
2468
+ formattedPriceWithoutCurrencySymbol: '23',
2469
+ },
2158
2470
  appliedPromotions: null,
2159
2471
  tilingInstallationData: null,
2160
2472
  flooringInstallationData: null,
@@ -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) {