wickes-css2 2.109.0-develop.3 → 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.
- package/build/js/basket.min.js +1 -1
- package/build/js/emulation.min.js +312 -0
- package/build/js/page/basket-v2.js +30 -26
- package/package.json +1 -1
- package/src/components/order-item.hbs +7 -7
- package/src/components/potential-promotion.hbs +4 -4
- package/src/data/data_shopping-cart-v2.json +46 -2
- package/src/data/data_shopping-cart-with-energy.json +26 -2
- package/src/js/emulation/basket-data.js +312 -0
- package/src/js/page/basket-v2.js +30 -26
|
@@ -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,
|
package/src/js/page/basket-v2.js
CHANGED
|
@@ -277,13 +277,13 @@ Wick.BasketPage = {
|
|
|
277
277
|
if (isSwitchVat) {
|
|
278
278
|
const itemTotalIncVat = context.find(Wick.BasketPage.el.itemTotalIncVat);
|
|
279
279
|
const itemTotalExcVat = context.find(Wick.BasketPage.el.itemTotalExcVat);
|
|
280
|
-
const totalPrice = data.entry.
|
|
281
|
-
const totalPriceExcVat = data.entry.
|
|
280
|
+
const totalPrice = data.entry.displayItemTotalWithoutDiscount.formattedValue;
|
|
281
|
+
const totalPriceExcVat = data.entry.displayItemTotalWithoutDiscountExclusiveVat.formattedValue;
|
|
282
282
|
itemTotalIncVat.text(totalPrice);
|
|
283
283
|
itemTotalExcVat.text(totalPriceExcVat);
|
|
284
284
|
} else {
|
|
285
285
|
const totalValue = context.find(Wick.BasketPage.el.itemTotal);
|
|
286
|
-
const totalPrice = data.entry.
|
|
286
|
+
const totalPrice = data.entry.displayItemTotalWithoutDiscount.formattedValue;
|
|
287
287
|
totalValue.text(totalPrice);
|
|
288
288
|
}
|
|
289
289
|
}
|
|
@@ -798,20 +798,20 @@ Wick.BasketPage = {
|
|
|
798
798
|
<div class="order-item__price-title">Item price:</div>
|
|
799
799
|
<div class="order-item__price-value">
|
|
800
800
|
${
|
|
801
|
-
currentItem.
|
|
801
|
+
currentItem.displayBasePrice.value === 0
|
|
802
802
|
? '<span class="order-item__value">FREE</span>'
|
|
803
803
|
: Wick.VatToggle.isToggleVatAvailable()
|
|
804
804
|
? `
|
|
805
805
|
<div class="including-vat"><!--
|
|
806
|
-
--><span class="order-item__value">${currentItem.
|
|
806
|
+
--><span class="order-item__value">${currentItem.displayBasePrice.formattedValue}</span><!--
|
|
807
807
|
--><div class="price-vat">Inc.VAT</div>
|
|
808
808
|
</div>
|
|
809
809
|
<div class="excluding-vat"><!--
|
|
810
|
-
--><span class="order-item__value">${currentItem.
|
|
810
|
+
--><span class="order-item__value">${currentItem.displayBasePriceExclusiveVat.formattedValue}</span><!--
|
|
811
811
|
--><div class="price-vat">Exc.VAT</div>
|
|
812
812
|
</div>
|
|
813
813
|
`
|
|
814
|
-
: `<span class="order-item__value">${currentItem.
|
|
814
|
+
: `<span class="order-item__value">${currentItem.displayBasePrice.formattedValue}</span>`
|
|
815
815
|
}
|
|
816
816
|
</div>
|
|
817
817
|
</div>
|
|
@@ -820,20 +820,20 @@ Wick.BasketPage = {
|
|
|
820
820
|
<div class="order-item__total-title">Item total:</div>
|
|
821
821
|
<div class="order-item__total-value">
|
|
822
822
|
${
|
|
823
|
-
currentItem.
|
|
823
|
+
currentItem.displayItemTotalWithoutDiscount.value === 0
|
|
824
824
|
? '<span class="order-item__value">FREE</span>'
|
|
825
825
|
: Wick.VatToggle.isToggleVatAvailable()
|
|
826
826
|
? `
|
|
827
827
|
<div class="including-vat"><!--
|
|
828
|
-
--><span class="order-item__value">${currentItem.
|
|
828
|
+
--><span class="order-item__value">${currentItem.displayItemTotalWithoutDiscount.formattedValue}</span><!--
|
|
829
829
|
--><div class="price-vat">Inc.VAT</div><!--
|
|
830
830
|
--></div>
|
|
831
831
|
<div class="excluding-vat"><!--
|
|
832
|
-
--><span class="order-item__value">${currentItem.
|
|
832
|
+
--><span class="order-item__value">${currentItem.displayItemTotalWithoutDiscountExclusiveVat.formattedValue}</span><!--
|
|
833
833
|
--><div class="price-vat">Exc.VAT</div>
|
|
834
834
|
</div>
|
|
835
835
|
`
|
|
836
|
-
: `<span class="order-item__value">${currentItem.
|
|
836
|
+
: `<span class="order-item__value">${currentItem.displayItemTotalWithoutDiscount.formattedValue}</span>`
|
|
837
837
|
}
|
|
838
838
|
</div>
|
|
839
839
|
</div>
|
|
@@ -912,16 +912,16 @@ Wick.BasketPage = {
|
|
|
912
912
|
let duplicate = arr.every((el) => {
|
|
913
913
|
return (
|
|
914
914
|
el !==
|
|
915
|
-
`<div class="order-item__promo">${entry.
|
|
915
|
+
`<div class="order-item__promo">${entry.displayDescription}</div>`
|
|
916
916
|
);
|
|
917
917
|
});
|
|
918
918
|
|
|
919
919
|
!duplicate ||
|
|
920
920
|
arr.push(
|
|
921
|
-
`<div class="order-item__promo">${entry.
|
|
921
|
+
`<div class="order-item__promo">${entry.displayDescription}</div>`
|
|
922
922
|
);
|
|
923
923
|
} else {
|
|
924
|
-
arr.push(`<div class="order-item__promo">${entry.
|
|
924
|
+
arr.push(`<div class="order-item__promo">${entry.displayDescription}</div>`);
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
});
|
|
@@ -930,21 +930,21 @@ Wick.BasketPage = {
|
|
|
930
930
|
data.appliedProductPromotions &&
|
|
931
931
|
data.appliedProductPromotions.forEach((entry) => {
|
|
932
932
|
entry.consumedEntries.forEach((promo) => {
|
|
933
|
-
if (promo.orderEntryNumber === item.entryNumber && entry.
|
|
933
|
+
if (promo.orderEntryNumber === item.entryNumber && entry.displayDescription) {
|
|
934
934
|
if (arr.length) {
|
|
935
935
|
let duplicate = arr.every((el) => {
|
|
936
936
|
return (
|
|
937
937
|
el !==
|
|
938
|
-
`<div class="order-item__promo">${entry.
|
|
938
|
+
`<div class="order-item__promo">${entry.displayDescription}</div>`
|
|
939
939
|
);
|
|
940
940
|
});
|
|
941
941
|
|
|
942
942
|
!duplicate ||
|
|
943
943
|
arr.push(
|
|
944
|
-
`<div class="order-item__promo">${entry.
|
|
944
|
+
`<div class="order-item__promo">${entry.displayDescription}</div>`
|
|
945
945
|
);
|
|
946
946
|
} else {
|
|
947
|
-
arr.push(`<div class="order-item__promo">${entry.
|
|
947
|
+
arr.push(`<div class="order-item__promo">${entry.displayDescription}</div>`);
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
});
|
|
@@ -1122,15 +1122,17 @@ Wick.BasketPage = {
|
|
|
1122
1122
|
const arr = [];
|
|
1123
1123
|
if (data.potentialOrderPromotions && data.potentialOrderPromotions.length) {
|
|
1124
1124
|
data.potentialOrderPromotions.forEach((promo) => {
|
|
1125
|
-
!promo.
|
|
1125
|
+
!promo.displayDescription ||
|
|
1126
1126
|
arr.push(`
|
|
1127
1127
|
<div class="p-promotion">
|
|
1128
1128
|
<div class="p-promotion__icon">
|
|
1129
1129
|
<i class="icon fas fa-gift"></i>
|
|
1130
1130
|
</div>
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1131
|
+
${Wick.VatToggle.isToggleVatAvailable() && promo.displayDescriptionExclusiveVat
|
|
1132
|
+
? `<div class="p-promotion__description including-vat">${promo.displayDescription}</div>
|
|
1133
|
+
<div class="p-promotion__description excluding-vat d-none">${promo.displayDescriptionExclusiveVat}</div>`
|
|
1134
|
+
: `<div class="p-promotion__description">${promo.displayDescription}</div>`
|
|
1135
|
+
}
|
|
1134
1136
|
<div class="p-promotion__close">
|
|
1135
1137
|
<i class="icon fas fa-times"></i>
|
|
1136
1138
|
</div>
|
|
@@ -1141,15 +1143,17 @@ Wick.BasketPage = {
|
|
|
1141
1143
|
|
|
1142
1144
|
if (data.appliedOrderPromotions && data.appliedOrderPromotions.length) {
|
|
1143
1145
|
data.appliedOrderPromotions.forEach((promo) => {
|
|
1144
|
-
!promo.
|
|
1146
|
+
!promo.displayDescription ||
|
|
1145
1147
|
arr.push(`
|
|
1146
1148
|
<div class="p-promotion">
|
|
1147
1149
|
<div class="p-promotion__icon">
|
|
1148
1150
|
<i class="icon fas fa-gift"></i>
|
|
1149
1151
|
</div>
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1152
|
+
${Wick.VatToggle.isToggleVatAvailable() && promo.displayDescriptionExclusiveVat
|
|
1153
|
+
? `<div class="p-promotion__description including-vat">${promo.displayDescription}</div>
|
|
1154
|
+
<div class="p-promotion__description excluding-vat d-none">${promo.displayDescriptionExclusiveVat}</div>`
|
|
1155
|
+
: `<div class="p-promotion__description">${promo.displayDescription}</div>`
|
|
1156
|
+
}
|
|
1153
1157
|
<div class="p-promotion__close">
|
|
1154
1158
|
<i class="icon fas fa-times"></i>
|
|
1155
1159
|
</div>
|