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.
@@ -1853,6 +1853,18 @@ 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
+ },
1856
1868
  totalPrice: {
1857
1869
  currencyIso: 'GBP',
1858
1870
  value: 3700.0,
@@ -2173,6 +2185,18 @@ Wick.BasketData = function () {
2173
2185
  currencyIso: 'GBP',
2174
2186
  formattedPriceWithoutCurrencySymbol: '3600'
2175
2187
  },
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
+ },
2176
2200
  appliedPromotions: null,
2177
2201
  tilingInstallationData: null,
2178
2202
  flooringInstallationData: null,
@@ -2258,6 +2282,18 @@ Wick.BasketData = function () {
2258
2282
  currencyIso: 'GBP',
2259
2283
  formattedPriceWithoutCurrencySymbol: '99'
2260
2284
  },
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
+ },
2261
2297
  product: {
2262
2298
  code: '221100',
2263
2299
  name: 'Blue Circle Ready To Use Postcrete - 20kg',
@@ -2309,6 +2345,18 @@ Wick.BasketData = function () {
2309
2345
  currencyIso: 'GBP',
2310
2346
  formattedPriceWithoutCurrencySymbol: '99'
2311
2347
  },
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
+ },
2312
2360
  orderFulfilmentControls: {
2313
2361
  availableForDelivery: true,
2314
2362
  availableForCollection: true,
@@ -2338,6 +2386,18 @@ Wick.BasketData = function () {
2338
2386
  currencyIso: 'GBP',
2339
2387
  formattedPriceWithoutCurrencySymbol: '23'
2340
2388
  },
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
+ },
2341
2401
  product: {
2342
2402
  code: '109450',
2343
2403
  name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
@@ -2386,6 +2446,18 @@ Wick.BasketData = function () {
2386
2446
  currencyIso: 'GBP',
2387
2447
  formattedPriceWithoutCurrencySymbol: '23'
2388
2448
  },
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
+ },
2389
2461
  orderFulfilmentControls: {
2390
2462
  availableForDelivery: true,
2391
2463
  availableForCollection: true,
@@ -2406,6 +2478,18 @@ Wick.BasketData = function () {
2406
2478
  currencyIso: 'GBP',
2407
2479
  formattedPriceWithoutCurrencySymbol: '0'
2408
2480
  },
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
+ },
2409
2493
  product: {
2410
2494
  code: '103123',
2411
2495
  name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
@@ -2460,6 +2544,18 @@ Wick.BasketData = function () {
2460
2544
  currencyIso: 'GBP',
2461
2545
  formattedPriceWithoutCurrencySymbol: '0'
2462
2546
  },
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
+ },
2463
2559
  orderFulfilmentControls: {
2464
2560
  availableForDelivery: true,
2465
2561
  availableForCollection: true,
@@ -2490,6 +2586,18 @@ Wick.BasketData = function () {
2490
2586
  currencyIso: 'GBP',
2491
2587
  formattedPriceWithoutCurrencySymbol: '24'
2492
2588
  },
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
+ },
2493
2601
  product: {
2494
2602
  code: '109451',
2495
2603
  name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
@@ -2546,6 +2654,18 @@ Wick.BasketData = function () {
2546
2654
  currencyIso: 'GBP',
2547
2655
  formattedPriceWithoutCurrencySymbol: '24'
2548
2656
  },
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
+ },
2549
2669
  orderFulfilmentControls: {
2550
2670
  availableForDelivery: true,
2551
2671
  availableForCollection: true,
@@ -2566,6 +2686,18 @@ Wick.BasketData = function () {
2566
2686
  currencyIso: 'GBP',
2567
2687
  formattedPriceWithoutCurrencySymbol: '24'
2568
2688
  },
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
+ },
2569
2701
  product: {
2570
2702
  code: '123143',
2571
2703
  name: '6 Wickes General Purpose Claw test',
@@ -2611,6 +2743,18 @@ Wick.BasketData = function () {
2611
2743
  currencyIso: 'GBP',
2612
2744
  formattedPriceWithoutCurrencySymbol: '24'
2613
2745
  },
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
+ },
2614
2758
  orderFulfilmentControls: {
2615
2759
  availableForDelivery: true,
2616
2760
  availableForCollection: true,
@@ -2708,6 +2852,18 @@ Wick.BasketData = function () {
2708
2852
  currencyIso: 'GBP',
2709
2853
  formattedPriceWithoutCurrencySymbol: '99'
2710
2854
  },
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
+ },
2711
2867
  product: {
2712
2868
  code: '221100',
2713
2869
  name: 'Blue Circle Ready To Use Postcrete - 20kg',
@@ -2759,6 +2915,18 @@ Wick.BasketData = function () {
2759
2915
  currencyIso: 'GBP',
2760
2916
  formattedPriceWithoutCurrencySymbol: '99'
2761
2917
  },
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
+ },
2762
2930
  orderFulfilmentControls: {
2763
2931
  availableForDelivery: true,
2764
2932
  availableForCollection: true,
@@ -2788,6 +2956,18 @@ Wick.BasketData = function () {
2788
2956
  currencyIso: 'GBP',
2789
2957
  formattedPriceWithoutCurrencySymbol: '23'
2790
2958
  },
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
+ },
2791
2971
  product: {
2792
2972
  code: '109450',
2793
2973
  name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
@@ -2836,6 +3016,18 @@ Wick.BasketData = function () {
2836
3016
  currencyIso: 'GBP',
2837
3017
  formattedPriceWithoutCurrencySymbol: '23'
2838
3018
  },
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
+ },
2839
3031
  orderFulfilmentControls: {
2840
3032
  availableForDelivery: true,
2841
3033
  availableForCollection: true,
@@ -2856,6 +3048,18 @@ Wick.BasketData = function () {
2856
3048
  currencyIso: 'GBP',
2857
3049
  formattedPriceWithoutCurrencySymbol: '0'
2858
3050
  },
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
+ },
2859
3063
  product: {
2860
3064
  code: '103123',
2861
3065
  name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
@@ -2910,6 +3114,18 @@ Wick.BasketData = function () {
2910
3114
  currencyIso: 'GBP',
2911
3115
  formattedPriceWithoutCurrencySymbol: '0'
2912
3116
  },
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
+ },
2913
3129
  orderFulfilmentControls: {
2914
3130
  availableForDelivery: true,
2915
3131
  availableForCollection: true,
@@ -2940,6 +3156,18 @@ Wick.BasketData = function () {
2940
3156
  currencyIso: 'GBP',
2941
3157
  formattedPriceWithoutCurrencySymbol: '24'
2942
3158
  },
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
+ },
2943
3171
  product: {
2944
3172
  code: '109451',
2945
3173
  name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
@@ -2996,6 +3224,18 @@ Wick.BasketData = function () {
2996
3224
  currencyIso: 'GBP',
2997
3225
  formattedPriceWithoutCurrencySymbol: '24'
2998
3226
  },
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
+ },
2999
3239
  orderFulfilmentControls: {
3000
3240
  availableForDelivery: true,
3001
3241
  availableForCollection: true,
@@ -3016,6 +3256,18 @@ Wick.BasketData = function () {
3016
3256
  currencyIso: 'GBP',
3017
3257
  formattedPriceWithoutCurrencySymbol: '24'
3018
3258
  },
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
+ },
3019
3271
  product: {
3020
3272
  code: '123143',
3021
3273
  name: '6 Wickes General Purpose Claw test',
@@ -3061,6 +3313,18 @@ Wick.BasketData = function () {
3061
3313
  currencyIso: 'GBP',
3062
3314
  formattedPriceWithoutCurrencySymbol: '24'
3063
3315
  },
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
+ },
3064
3328
  orderFulfilmentControls: {
3065
3329
  availableForDelivery: true,
3066
3330
  availableForCollection: true,
@@ -3122,6 +3386,18 @@ Wick.BasketData = function () {
3122
3386
  currencyIso: 'GBP',
3123
3387
  formattedPriceWithoutCurrencySymbol: '17'
3124
3388
  },
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
+ },
3125
3401
  totalPrice: {
3126
3402
  currencyIso: 'GBP',
3127
3403
  value: 36.0,
@@ -3572,6 +3848,18 @@ Wick.BasketData = function () {
3572
3848
  currencyIso: 'GBP',
3573
3849
  formattedPriceWithoutCurrencySymbol: '35'
3574
3850
  },
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
+ },
3575
3863
  appliedPromotions: null,
3576
3864
  tilingInstallationData: null,
3577
3865
  flooringInstallationData: null,
@@ -3622,6 +3910,18 @@ Wick.BasketData = function () {
3622
3910
  currencyIso: 'GBP',
3623
3911
  formattedPriceWithoutCurrencySymbol: '3'
3624
3912
  },
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
+ },
3625
3925
  totalPrice: {
3626
3926
  currencyIso: 'GBP',
3627
3927
  value: 24.0,
@@ -3822,6 +4122,18 @@ Wick.BasketData = function () {
3822
4122
  currencyIso: 'GBP',
3823
4123
  formattedPriceWithoutCurrencySymbol: '23'
3824
4124
  },
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
+ },
3825
4137
  appliedPromotions: null,
3826
4138
  tilingInstallationData: null,
3827
4139
  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.itemTotalWithoutDiscount.formattedValue;
281
- const totalPriceExcVat = data.entry.itemTotalWithoutDiscountExcVat.formattedValue;
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.itemTotalWithoutDiscount.formattedValue;
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.basePrice.value === 0
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.basePrice.formattedValue}</span><!--
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.basePriceExcVat.formattedValue}</span><!--
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.basePrice.formattedValue}</span>`
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.itemTotalWithoutDiscount.value === 0
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.itemTotalWithoutDiscount.formattedValue}</span><!--
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.itemTotalWithoutDiscountExcVat.formattedValue}</span><!--
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.itemTotalWithoutDiscount.formattedValue}</span>`
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.description}</div>`
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.description}</div>`
921
+ `<div class="order-item__promo">${entry.displayDescription}</div>`
922
922
  );
923
923
  } else {
924
- arr.push(`<div class="order-item__promo">${entry.description}</div>`);
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.description) {
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.description}</div>`
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.description}</div>`
944
+ `<div class="order-item__promo">${entry.displayDescription}</div>`
945
945
  );
946
946
  } else {
947
- arr.push(`<div class="order-item__promo">${entry.description}</div>`);
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.description ||
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
- <div class="p-promotion__description">
1132
- ${promo.description}
1133
- </div>
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.description ||
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
- <div class="p-promotion__description">
1151
- ${promo.description}
1152
- </div>
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.109.0-develop.3",
3
+ "version": "2.109.0-develop.4",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {