wickes-css2 2.109.0-develop.4 → 2.109.0-develop.5
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 +0 -312
- package/build/js/page/basket-v2.js +26 -30
- 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 +2 -46
- package/src/data/data_shopping-cart-with-energy.json +2 -26
- package/src/js/emulation/basket-data.js +0 -312
- package/src/js/page/basket-v2.js +26 -30
|
@@ -1853,18 +1853,6 @@ Wick.BasketData = function () {
|
|
|
1853
1853
|
currencyIso: 'GBP',
|
|
1854
1854
|
formattedPriceWithoutCurrencySymbol: '4'
|
|
1855
1855
|
},
|
|
1856
|
-
displayBasePrice: {
|
|
1857
|
-
value: 5.0,
|
|
1858
|
-
formattedValue: '£5.00',
|
|
1859
|
-
currencyIso: 'GBP',
|
|
1860
|
-
formattedPriceWithoutCurrencySymbol: '5.00'
|
|
1861
|
-
},
|
|
1862
|
-
displayBasePriceExclusiveVat: {
|
|
1863
|
-
value: 4,
|
|
1864
|
-
formattedValue: '£4',
|
|
1865
|
-
currencyIso: 'GBP',
|
|
1866
|
-
formattedPriceWithoutCurrencySymbol: '4'
|
|
1867
|
-
},
|
|
1868
1856
|
totalPrice: {
|
|
1869
1857
|
currencyIso: 'GBP',
|
|
1870
1858
|
value: 3700.0,
|
|
@@ -2185,18 +2173,6 @@ Wick.BasketData = function () {
|
|
|
2185
2173
|
currencyIso: 'GBP',
|
|
2186
2174
|
formattedPriceWithoutCurrencySymbol: '3600'
|
|
2187
2175
|
},
|
|
2188
|
-
displayItemTotalWithoutDiscount: {
|
|
2189
|
-
value: 3700.0,
|
|
2190
|
-
formattedValue: '£3700.00',
|
|
2191
|
-
currencyIso: 'GBP',
|
|
2192
|
-
formattedPriceWithoutCurrencySymbol: '3700.00'
|
|
2193
|
-
},
|
|
2194
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2195
|
-
value: 3600,
|
|
2196
|
-
formattedValue: '£3600',
|
|
2197
|
-
currencyIso: 'GBP',
|
|
2198
|
-
formattedPriceWithoutCurrencySymbol: '3600'
|
|
2199
|
-
},
|
|
2200
2176
|
appliedPromotions: null,
|
|
2201
2177
|
tilingInstallationData: null,
|
|
2202
2178
|
flooringInstallationData: null,
|
|
@@ -2282,18 +2258,6 @@ Wick.BasketData = function () {
|
|
|
2282
2258
|
currencyIso: 'GBP',
|
|
2283
2259
|
formattedPriceWithoutCurrencySymbol: '99'
|
|
2284
2260
|
},
|
|
2285
|
-
displayBasePrice: {
|
|
2286
|
-
value: 100.0,
|
|
2287
|
-
formattedValue: '£100',
|
|
2288
|
-
currencyIso: 'GBP',
|
|
2289
|
-
formattedPriceWithoutCurrencySymbol: '100'
|
|
2290
|
-
},
|
|
2291
|
-
displayBasePriceExclusiveVat: {
|
|
2292
|
-
value: 99,
|
|
2293
|
-
formattedValue: '£99',
|
|
2294
|
-
currencyIso: 'GBP',
|
|
2295
|
-
formattedPriceWithoutCurrencySymbol: '99'
|
|
2296
|
-
},
|
|
2297
2261
|
product: {
|
|
2298
2262
|
code: '221100',
|
|
2299
2263
|
name: 'Blue Circle Ready To Use Postcrete - 20kg',
|
|
@@ -2345,18 +2309,6 @@ Wick.BasketData = function () {
|
|
|
2345
2309
|
currencyIso: 'GBP',
|
|
2346
2310
|
formattedPriceWithoutCurrencySymbol: '99'
|
|
2347
2311
|
},
|
|
2348
|
-
displayItemTotalWithoutDiscount: {
|
|
2349
|
-
value: 100.0,
|
|
2350
|
-
formattedValue: '£100',
|
|
2351
|
-
currencyIso: 'GBP',
|
|
2352
|
-
formattedPriceWithoutCurrencySymbol: '100'
|
|
2353
|
-
},
|
|
2354
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2355
|
-
value: 99,
|
|
2356
|
-
formattedValue: '£99',
|
|
2357
|
-
currencyIso: 'GBP',
|
|
2358
|
-
formattedPriceWithoutCurrencySymbol: '99'
|
|
2359
|
-
},
|
|
2360
2312
|
orderFulfilmentControls: {
|
|
2361
2313
|
availableForDelivery: true,
|
|
2362
2314
|
availableForCollection: true,
|
|
@@ -2386,18 +2338,6 @@ Wick.BasketData = function () {
|
|
|
2386
2338
|
currencyIso: 'GBP',
|
|
2387
2339
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
2388
2340
|
},
|
|
2389
|
-
displayBasePrice: {
|
|
2390
|
-
value: 24.0,
|
|
2391
|
-
formattedValue: '£24',
|
|
2392
|
-
currencyIso: 'GBP',
|
|
2393
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
2394
|
-
},
|
|
2395
|
-
displayBasePriceExclusiveVat: {
|
|
2396
|
-
value: 23,
|
|
2397
|
-
formattedValue: '£23',
|
|
2398
|
-
currencyIso: 'GBP',
|
|
2399
|
-
formattedPriceWithoutCurrencySymbol: '23'
|
|
2400
|
-
},
|
|
2401
2341
|
product: {
|
|
2402
2342
|
code: '109450',
|
|
2403
2343
|
name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
|
|
@@ -2446,18 +2386,6 @@ Wick.BasketData = function () {
|
|
|
2446
2386
|
currencyIso: 'GBP',
|
|
2447
2387
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
2448
2388
|
},
|
|
2449
|
-
displayItemTotalWithoutDiscount: {
|
|
2450
|
-
value: 24.0,
|
|
2451
|
-
formattedValue: '£24',
|
|
2452
|
-
currencyIso: 'GBP',
|
|
2453
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
2454
|
-
},
|
|
2455
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2456
|
-
value: 23,
|
|
2457
|
-
formattedValue: '£23',
|
|
2458
|
-
currencyIso: 'GBP',
|
|
2459
|
-
formattedPriceWithoutCurrencySymbol: '23'
|
|
2460
|
-
},
|
|
2461
2389
|
orderFulfilmentControls: {
|
|
2462
2390
|
availableForDelivery: true,
|
|
2463
2391
|
availableForCollection: true,
|
|
@@ -2478,18 +2406,6 @@ Wick.BasketData = function () {
|
|
|
2478
2406
|
currencyIso: 'GBP',
|
|
2479
2407
|
formattedPriceWithoutCurrencySymbol: '0'
|
|
2480
2408
|
},
|
|
2481
|
-
displayBasePrice: {
|
|
2482
|
-
value: 0.0,
|
|
2483
|
-
formattedValue: '£0',
|
|
2484
|
-
currencyIso: 'GBP',
|
|
2485
|
-
formattedPriceWithoutCurrencySymbol: '0'
|
|
2486
|
-
},
|
|
2487
|
-
displayBasePriceExclusiveVat: {
|
|
2488
|
-
value: 0,
|
|
2489
|
-
formattedValue: '£0',
|
|
2490
|
-
currencyIso: 'GBP',
|
|
2491
|
-
formattedPriceWithoutCurrencySymbol: '0'
|
|
2492
|
-
},
|
|
2493
2409
|
product: {
|
|
2494
2410
|
code: '103123',
|
|
2495
2411
|
name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
|
|
@@ -2544,18 +2460,6 @@ Wick.BasketData = function () {
|
|
|
2544
2460
|
currencyIso: 'GBP',
|
|
2545
2461
|
formattedPriceWithoutCurrencySymbol: '0'
|
|
2546
2462
|
},
|
|
2547
|
-
displayItemTotalWithoutDiscount: {
|
|
2548
|
-
value: 0.0,
|
|
2549
|
-
formattedValue: '£0',
|
|
2550
|
-
currencyIso: 'GBP',
|
|
2551
|
-
formattedPriceWithoutCurrencySymbol: '0'
|
|
2552
|
-
},
|
|
2553
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2554
|
-
value: 0,
|
|
2555
|
-
formattedValue: '£0',
|
|
2556
|
-
currencyIso: 'GBP',
|
|
2557
|
-
formattedPriceWithoutCurrencySymbol: '0'
|
|
2558
|
-
},
|
|
2559
2463
|
orderFulfilmentControls: {
|
|
2560
2464
|
availableForDelivery: true,
|
|
2561
2465
|
availableForCollection: true,
|
|
@@ -2586,18 +2490,6 @@ Wick.BasketData = function () {
|
|
|
2586
2490
|
currencyIso: 'GBP',
|
|
2587
2491
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
2588
2492
|
},
|
|
2589
|
-
displayBasePrice: {
|
|
2590
|
-
value: 25.0,
|
|
2591
|
-
formattedValue: '£25',
|
|
2592
|
-
currencyIso: 'GBP',
|
|
2593
|
-
formattedPriceWithoutCurrencySymbol: '25'
|
|
2594
|
-
},
|
|
2595
|
-
displayBasePriceExclusiveVat: {
|
|
2596
|
-
value: 24,
|
|
2597
|
-
formattedValue: '£24',
|
|
2598
|
-
currencyIso: 'GBP',
|
|
2599
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
2600
|
-
},
|
|
2601
2493
|
product: {
|
|
2602
2494
|
code: '109451',
|
|
2603
2495
|
name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
|
|
@@ -2654,18 +2546,6 @@ Wick.BasketData = function () {
|
|
|
2654
2546
|
currencyIso: 'GBP',
|
|
2655
2547
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
2656
2548
|
},
|
|
2657
|
-
displayItemTotalWithoutDiscount: {
|
|
2658
|
-
value: 25.0,
|
|
2659
|
-
formattedValue: '£25',
|
|
2660
|
-
currencyIso: 'GBP',
|
|
2661
|
-
formattedPriceWithoutCurrencySymbol: '25'
|
|
2662
|
-
},
|
|
2663
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2664
|
-
value: 24,
|
|
2665
|
-
formattedValue: '£24',
|
|
2666
|
-
currencyIso: 'GBP',
|
|
2667
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
2668
|
-
},
|
|
2669
2549
|
orderFulfilmentControls: {
|
|
2670
2550
|
availableForDelivery: true,
|
|
2671
2551
|
availableForCollection: true,
|
|
@@ -2686,18 +2566,6 @@ Wick.BasketData = function () {
|
|
|
2686
2566
|
currencyIso: 'GBP',
|
|
2687
2567
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
2688
2568
|
},
|
|
2689
|
-
displayBasePrice: {
|
|
2690
|
-
value: 25.0,
|
|
2691
|
-
formattedValue: '£25',
|
|
2692
|
-
currencyIso: 'GBP',
|
|
2693
|
-
formattedPriceWithoutCurrencySymbol: '25'
|
|
2694
|
-
},
|
|
2695
|
-
displayBasePriceExclusiveVat: {
|
|
2696
|
-
value: 24,
|
|
2697
|
-
formattedValue: '£24',
|
|
2698
|
-
currencyIso: 'GBP',
|
|
2699
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
2700
|
-
},
|
|
2701
2569
|
product: {
|
|
2702
2570
|
code: '123143',
|
|
2703
2571
|
name: '6 Wickes General Purpose Claw test',
|
|
@@ -2743,18 +2611,6 @@ Wick.BasketData = function () {
|
|
|
2743
2611
|
currencyIso: 'GBP',
|
|
2744
2612
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
2745
2613
|
},
|
|
2746
|
-
displayItemTotalWithoutDiscount: {
|
|
2747
|
-
value: 25.0,
|
|
2748
|
-
formattedValue: '£25',
|
|
2749
|
-
currencyIso: 'GBP',
|
|
2750
|
-
formattedPriceWithoutCurrencySymbol: '25'
|
|
2751
|
-
},
|
|
2752
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2753
|
-
value: 24,
|
|
2754
|
-
formattedValue: '£24',
|
|
2755
|
-
currencyIso: 'GBP',
|
|
2756
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
2757
|
-
},
|
|
2758
2614
|
orderFulfilmentControls: {
|
|
2759
2615
|
availableForDelivery: true,
|
|
2760
2616
|
availableForCollection: true,
|
|
@@ -2852,18 +2708,6 @@ Wick.BasketData = function () {
|
|
|
2852
2708
|
currencyIso: 'GBP',
|
|
2853
2709
|
formattedPriceWithoutCurrencySymbol: '99'
|
|
2854
2710
|
},
|
|
2855
|
-
displayBasePrice: {
|
|
2856
|
-
value: 100.0,
|
|
2857
|
-
formattedValue: '£100',
|
|
2858
|
-
currencyIso: 'GBP',
|
|
2859
|
-
formattedPriceWithoutCurrencySymbol: '100'
|
|
2860
|
-
},
|
|
2861
|
-
displayBasePriceExclusiveVat: {
|
|
2862
|
-
value: 99,
|
|
2863
|
-
formattedValue: '£99',
|
|
2864
|
-
currencyIso: 'GBP',
|
|
2865
|
-
formattedPriceWithoutCurrencySymbol: '99'
|
|
2866
|
-
},
|
|
2867
2711
|
product: {
|
|
2868
2712
|
code: '221100',
|
|
2869
2713
|
name: 'Blue Circle Ready To Use Postcrete - 20kg',
|
|
@@ -2915,18 +2759,6 @@ Wick.BasketData = function () {
|
|
|
2915
2759
|
currencyIso: 'GBP',
|
|
2916
2760
|
formattedPriceWithoutCurrencySymbol: '99'
|
|
2917
2761
|
},
|
|
2918
|
-
displayItemTotalWithoutDiscount: {
|
|
2919
|
-
value: 100.0,
|
|
2920
|
-
formattedValue: '£100',
|
|
2921
|
-
currencyIso: 'GBP',
|
|
2922
|
-
formattedPriceWithoutCurrencySymbol: '100'
|
|
2923
|
-
},
|
|
2924
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2925
|
-
value: 99,
|
|
2926
|
-
formattedValue: '£99',
|
|
2927
|
-
currencyIso: 'GBP',
|
|
2928
|
-
formattedPriceWithoutCurrencySymbol: '99'
|
|
2929
|
-
},
|
|
2930
2762
|
orderFulfilmentControls: {
|
|
2931
2763
|
availableForDelivery: true,
|
|
2932
2764
|
availableForCollection: true,
|
|
@@ -2956,18 +2788,6 @@ Wick.BasketData = function () {
|
|
|
2956
2788
|
currencyIso: 'GBP',
|
|
2957
2789
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
2958
2790
|
},
|
|
2959
|
-
displayBasePrice: {
|
|
2960
|
-
value: 24.0,
|
|
2961
|
-
formattedValue: '£24',
|
|
2962
|
-
currencyIso: 'GBP',
|
|
2963
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
2964
|
-
},
|
|
2965
|
-
displayBasePriceExclusiveVat: {
|
|
2966
|
-
value: 23,
|
|
2967
|
-
formattedValue: '£23',
|
|
2968
|
-
currencyIso: 'GBP',
|
|
2969
|
-
formattedPriceWithoutCurrencySymbol: '23'
|
|
2970
|
-
},
|
|
2971
2791
|
product: {
|
|
2972
2792
|
code: '109450',
|
|
2973
2793
|
name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
|
|
@@ -3016,18 +2836,6 @@ Wick.BasketData = function () {
|
|
|
3016
2836
|
currencyIso: 'GBP',
|
|
3017
2837
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
3018
2838
|
},
|
|
3019
|
-
displayItemTotalWithoutDiscount: {
|
|
3020
|
-
value: 24.0,
|
|
3021
|
-
formattedValue: '£24',
|
|
3022
|
-
currencyIso: 'GBP',
|
|
3023
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
3024
|
-
},
|
|
3025
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3026
|
-
value: 23,
|
|
3027
|
-
formattedValue: '£23',
|
|
3028
|
-
currencyIso: 'GBP',
|
|
3029
|
-
formattedPriceWithoutCurrencySymbol: '23'
|
|
3030
|
-
},
|
|
3031
2839
|
orderFulfilmentControls: {
|
|
3032
2840
|
availableForDelivery: true,
|
|
3033
2841
|
availableForCollection: true,
|
|
@@ -3048,18 +2856,6 @@ Wick.BasketData = function () {
|
|
|
3048
2856
|
currencyIso: 'GBP',
|
|
3049
2857
|
formattedPriceWithoutCurrencySymbol: '0'
|
|
3050
2858
|
},
|
|
3051
|
-
displayBasePrice: {
|
|
3052
|
-
value: 0.0,
|
|
3053
|
-
formattedValue: '£0',
|
|
3054
|
-
currencyIso: 'GBP',
|
|
3055
|
-
formattedPriceWithoutCurrencySymbol: '0'
|
|
3056
|
-
},
|
|
3057
|
-
displayBasePriceExclusiveVat: {
|
|
3058
|
-
value: 0,
|
|
3059
|
-
formattedValue: '£0',
|
|
3060
|
-
currencyIso: 'GBP',
|
|
3061
|
-
formattedPriceWithoutCurrencySymbol: '0'
|
|
3062
|
-
},
|
|
3063
2859
|
product: {
|
|
3064
2860
|
code: '103123',
|
|
3065
2861
|
name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
|
|
@@ -3114,18 +2910,6 @@ Wick.BasketData = function () {
|
|
|
3114
2910
|
currencyIso: 'GBP',
|
|
3115
2911
|
formattedPriceWithoutCurrencySymbol: '0'
|
|
3116
2912
|
},
|
|
3117
|
-
displayItemTotalWithoutDiscount: {
|
|
3118
|
-
value: 0.0,
|
|
3119
|
-
formattedValue: '£0',
|
|
3120
|
-
currencyIso: 'GBP',
|
|
3121
|
-
formattedPriceWithoutCurrencySymbol: '0'
|
|
3122
|
-
},
|
|
3123
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3124
|
-
value: 0,
|
|
3125
|
-
formattedValue: '£0',
|
|
3126
|
-
currencyIso: 'GBP',
|
|
3127
|
-
formattedPriceWithoutCurrencySymbol: '0'
|
|
3128
|
-
},
|
|
3129
2913
|
orderFulfilmentControls: {
|
|
3130
2914
|
availableForDelivery: true,
|
|
3131
2915
|
availableForCollection: true,
|
|
@@ -3156,18 +2940,6 @@ Wick.BasketData = function () {
|
|
|
3156
2940
|
currencyIso: 'GBP',
|
|
3157
2941
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
3158
2942
|
},
|
|
3159
|
-
displayBasePrice: {
|
|
3160
|
-
value: 25.0,
|
|
3161
|
-
formattedValue: '£25',
|
|
3162
|
-
currencyIso: 'GBP',
|
|
3163
|
-
formattedPriceWithoutCurrencySymbol: '25'
|
|
3164
|
-
},
|
|
3165
|
-
displayBasePriceExclusiveVat: {
|
|
3166
|
-
value: 24,
|
|
3167
|
-
formattedValue: '£24',
|
|
3168
|
-
currencyIso: 'GBP',
|
|
3169
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
3170
|
-
},
|
|
3171
2943
|
product: {
|
|
3172
2944
|
code: '109451',
|
|
3173
2945
|
name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
|
|
@@ -3224,18 +2996,6 @@ Wick.BasketData = function () {
|
|
|
3224
2996
|
currencyIso: 'GBP',
|
|
3225
2997
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
3226
2998
|
},
|
|
3227
|
-
displayItemTotalWithoutDiscount: {
|
|
3228
|
-
value: 25.0,
|
|
3229
|
-
formattedValue: '£25',
|
|
3230
|
-
currencyIso: 'GBP',
|
|
3231
|
-
formattedPriceWithoutCurrencySymbol: '25'
|
|
3232
|
-
},
|
|
3233
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3234
|
-
value: 24,
|
|
3235
|
-
formattedValue: '£24',
|
|
3236
|
-
currencyIso: 'GBP',
|
|
3237
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
3238
|
-
},
|
|
3239
2999
|
orderFulfilmentControls: {
|
|
3240
3000
|
availableForDelivery: true,
|
|
3241
3001
|
availableForCollection: true,
|
|
@@ -3256,18 +3016,6 @@ Wick.BasketData = function () {
|
|
|
3256
3016
|
currencyIso: 'GBP',
|
|
3257
3017
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
3258
3018
|
},
|
|
3259
|
-
displayBasePrice: {
|
|
3260
|
-
value: 25.0,
|
|
3261
|
-
formattedValue: '£25',
|
|
3262
|
-
currencyIso: 'GBP',
|
|
3263
|
-
formattedPriceWithoutCurrencySymbol: '25'
|
|
3264
|
-
},
|
|
3265
|
-
displayBasePriceExclusiveVat: {
|
|
3266
|
-
value: 24,
|
|
3267
|
-
formattedValue: '£24',
|
|
3268
|
-
currencyIso: 'GBP',
|
|
3269
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
3270
|
-
},
|
|
3271
3019
|
product: {
|
|
3272
3020
|
code: '123143',
|
|
3273
3021
|
name: '6 Wickes General Purpose Claw test',
|
|
@@ -3313,18 +3061,6 @@ Wick.BasketData = function () {
|
|
|
3313
3061
|
currencyIso: 'GBP',
|
|
3314
3062
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
3315
3063
|
},
|
|
3316
|
-
displayItemTotalWithoutDiscount: {
|
|
3317
|
-
value: 25.0,
|
|
3318
|
-
formattedValue: '£25',
|
|
3319
|
-
currencyIso: 'GBP',
|
|
3320
|
-
formattedPriceWithoutCurrencySymbol: '25'
|
|
3321
|
-
},
|
|
3322
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3323
|
-
value: 24,
|
|
3324
|
-
formattedValue: '£24',
|
|
3325
|
-
currencyIso: 'GBP',
|
|
3326
|
-
formattedPriceWithoutCurrencySymbol: '24'
|
|
3327
|
-
},
|
|
3328
3064
|
orderFulfilmentControls: {
|
|
3329
3065
|
availableForDelivery: true,
|
|
3330
3066
|
availableForCollection: true,
|
|
@@ -3386,18 +3122,6 @@ Wick.BasketData = function () {
|
|
|
3386
3122
|
currencyIso: 'GBP',
|
|
3387
3123
|
formattedPriceWithoutCurrencySymbol: '17'
|
|
3388
3124
|
},
|
|
3389
|
-
displayBasePrice: {
|
|
3390
|
-
value: 18.0,
|
|
3391
|
-
formattedValue: '£18.00',
|
|
3392
|
-
currencyIso: 'GBP',
|
|
3393
|
-
formattedPriceWithoutCurrencySymbol: '18.00'
|
|
3394
|
-
},
|
|
3395
|
-
displayBasePriceExclusiveVat: {
|
|
3396
|
-
value: 17,
|
|
3397
|
-
formattedValue: '£17',
|
|
3398
|
-
currencyIso: 'GBP',
|
|
3399
|
-
formattedPriceWithoutCurrencySymbol: '17'
|
|
3400
|
-
},
|
|
3401
3125
|
totalPrice: {
|
|
3402
3126
|
currencyIso: 'GBP',
|
|
3403
3127
|
value: 36.0,
|
|
@@ -3848,18 +3572,6 @@ Wick.BasketData = function () {
|
|
|
3848
3572
|
currencyIso: 'GBP',
|
|
3849
3573
|
formattedPriceWithoutCurrencySymbol: '35'
|
|
3850
3574
|
},
|
|
3851
|
-
displayItemTotalWithoutDiscount: {
|
|
3852
|
-
value: 36.0,
|
|
3853
|
-
formattedValue: '£36.00',
|
|
3854
|
-
currencyIso: 'GBP',
|
|
3855
|
-
formattedPriceWithoutCurrencySymbol: '36.00'
|
|
3856
|
-
},
|
|
3857
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3858
|
-
value: 35,
|
|
3859
|
-
formattedValue: '£35',
|
|
3860
|
-
currencyIso: 'GBP',
|
|
3861
|
-
formattedPriceWithoutCurrencySymbol: '35'
|
|
3862
|
-
},
|
|
3863
3575
|
appliedPromotions: null,
|
|
3864
3576
|
tilingInstallationData: null,
|
|
3865
3577
|
flooringInstallationData: null,
|
|
@@ -3910,18 +3622,6 @@ Wick.BasketData = function () {
|
|
|
3910
3622
|
currencyIso: 'GBP',
|
|
3911
3623
|
formattedPriceWithoutCurrencySymbol: '3'
|
|
3912
3624
|
},
|
|
3913
|
-
displayBasePrice: {
|
|
3914
|
-
value: 4.0,
|
|
3915
|
-
formattedValue: '£4.00',
|
|
3916
|
-
currencyIso: 'GBP',
|
|
3917
|
-
formattedPriceWithoutCurrencySymbol: '4.00'
|
|
3918
|
-
},
|
|
3919
|
-
displayBasePriceExclusiveVat: {
|
|
3920
|
-
value: 3,
|
|
3921
|
-
formattedValue: '£3',
|
|
3922
|
-
currencyIso: 'GBP',
|
|
3923
|
-
formattedPriceWithoutCurrencySymbol: '3'
|
|
3924
|
-
},
|
|
3925
3625
|
totalPrice: {
|
|
3926
3626
|
currencyIso: 'GBP',
|
|
3927
3627
|
value: 24.0,
|
|
@@ -4122,18 +3822,6 @@ Wick.BasketData = function () {
|
|
|
4122
3822
|
currencyIso: 'GBP',
|
|
4123
3823
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
4124
3824
|
},
|
|
4125
|
-
displayItemTotalWithoutDiscount: {
|
|
4126
|
-
value: 24.0,
|
|
4127
|
-
formattedValue: '£24.00',
|
|
4128
|
-
currencyIso: 'GBP',
|
|
4129
|
-
formattedPriceWithoutCurrencySymbol: '24.00'
|
|
4130
|
-
},
|
|
4131
|
-
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
4132
|
-
value: 23,
|
|
4133
|
-
formattedValue: '£23',
|
|
4134
|
-
currencyIso: 'GBP',
|
|
4135
|
-
formattedPriceWithoutCurrencySymbol: '23'
|
|
4136
|
-
},
|
|
4137
3825
|
appliedPromotions: null,
|
|
4138
3826
|
tilingInstallationData: null,
|
|
4139
3827
|
flooringInstallationData: null,
|
|
@@ -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.itemTotalWithoutDiscount.formattedValue;
|
|
281
|
+
const totalPriceExcVat = data.entry.itemTotalWithoutDiscountExcVat.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.itemTotalWithoutDiscount.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.basePrice.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.basePrice.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.basePriceExcVat.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.basePrice.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.itemTotalWithoutDiscount.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.itemTotalWithoutDiscount.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.itemTotalWithoutDiscountExcVat.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.itemTotalWithoutDiscount.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.description}</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.description}</div>`
|
|
922
922
|
);
|
|
923
923
|
} else {
|
|
924
|
-
arr.push(`<div class="order-item__promo">${entry.
|
|
924
|
+
arr.push(`<div class="order-item__promo">${entry.description}</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.description) {
|
|
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.description}</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.description}</div>`
|
|
945
945
|
);
|
|
946
946
|
} else {
|
|
947
|
-
arr.push(`<div class="order-item__promo">${entry.
|
|
947
|
+
arr.push(`<div class="order-item__promo">${entry.description}</div>`);
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
});
|
|
@@ -1122,17 +1122,15 @@ Wick.BasketPage = {
|
|
|
1122
1122
|
const arr = [];
|
|
1123
1123
|
if (data.potentialOrderPromotions && data.potentialOrderPromotions.length) {
|
|
1124
1124
|
data.potentialOrderPromotions.forEach((promo) => {
|
|
1125
|
-
!promo.
|
|
1125
|
+
!promo.description ||
|
|
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
|
-
|
|
1134
|
-
: `<div class="p-promotion__description">${promo.displayDescription}</div>`
|
|
1135
|
-
}
|
|
1131
|
+
<div class="p-promotion__description">
|
|
1132
|
+
${promo.description}
|
|
1133
|
+
</div>
|
|
1136
1134
|
<div class="p-promotion__close">
|
|
1137
1135
|
<i class="icon fas fa-times"></i>
|
|
1138
1136
|
</div>
|
|
@@ -1143,17 +1141,15 @@ Wick.BasketPage = {
|
|
|
1143
1141
|
|
|
1144
1142
|
if (data.appliedOrderPromotions && data.appliedOrderPromotions.length) {
|
|
1145
1143
|
data.appliedOrderPromotions.forEach((promo) => {
|
|
1146
|
-
!promo.
|
|
1144
|
+
!promo.description ||
|
|
1147
1145
|
arr.push(`
|
|
1148
1146
|
<div class="p-promotion">
|
|
1149
1147
|
<div class="p-promotion__icon">
|
|
1150
1148
|
<i class="icon fas fa-gift"></i>
|
|
1151
1149
|
</div>
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
: `<div class="p-promotion__description">${promo.displayDescription}</div>`
|
|
1156
|
-
}
|
|
1150
|
+
<div class="p-promotion__description">
|
|
1151
|
+
${promo.description}
|
|
1152
|
+
</div>
|
|
1157
1153
|
<div class="p-promotion__close">
|
|
1158
1154
|
<i class="icon fas fa-times"></i>
|
|
1159
1155
|
</div>
|