wickes-css2 2.112.0-develop.4 → 2.112.0-develop.6
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/css/category-main.css +1 -1
- package/build/css/components/global-search.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/kitchen-plp-main.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/my-account-main.css +1 -1
- package/build/css/pages/page_product-details-critical.css +1 -1
- package/build/css/pages/page_product-details.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-critical.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/js/basket.min.js +1 -1
- package/build/js/emulation.min.js +330 -30
- package/build/js/page/basket-v2.js +29 -20
- package/package.json +1 -1
- package/src/components/my-account/order.hbs +6 -1
- package/src/components/order-item.hbs +7 -7
- package/src/components/potential-promotion.hbs +4 -4
- package/src/components/price-badges.hbs +12 -0
- package/src/components/price-block-v2.hbs +3 -12
- package/src/components/share-list-modal-without-social-icons.hbs +2 -2
- package/src/components/share-list-modal.hbs +7 -3
- package/src/data/data_shopping-cart-v2.json +46 -2
- package/src/data/data_shopping-cart-with-energy.json +26 -2
- package/src/data/my-account/data_my-order.json +8 -0
- package/src/js/emulation/basket-data.js +312 -0
- package/src/js/emulation/shopping-list.js +40 -49
- package/src/js/page/basket-v2.js +29 -20
- package/src/page_track-my-order-result.html +1 -0
- package/src/scss/components/_tradepro-discount-banner.scss +10 -14
- package/src/scss/components/global-search.scss +0 -6
- package/src/scss/pages/page_product-details-critical.scss +7 -0
- package/src/scss/pages/page_product-details.scss +7 -0
|
@@ -2020,6 +2020,18 @@ Wick.BasketData = function () {
|
|
|
2020
2020
|
currencyIso: 'GBP',
|
|
2021
2021
|
formattedPriceWithoutCurrencySymbol: '4'
|
|
2022
2022
|
},
|
|
2023
|
+
displayBasePrice: {
|
|
2024
|
+
value: 5.0,
|
|
2025
|
+
formattedValue: '£5.00',
|
|
2026
|
+
currencyIso: 'GBP',
|
|
2027
|
+
formattedPriceWithoutCurrencySymbol: '5.00'
|
|
2028
|
+
},
|
|
2029
|
+
displayBasePriceExclusiveVat: {
|
|
2030
|
+
value: 4,
|
|
2031
|
+
formattedValue: '£4',
|
|
2032
|
+
currencyIso: 'GBP',
|
|
2033
|
+
formattedPriceWithoutCurrencySymbol: '4'
|
|
2034
|
+
},
|
|
2023
2035
|
totalPrice: {
|
|
2024
2036
|
currencyIso: 'GBP',
|
|
2025
2037
|
value: 3700.0,
|
|
@@ -2340,6 +2352,18 @@ Wick.BasketData = function () {
|
|
|
2340
2352
|
currencyIso: 'GBP',
|
|
2341
2353
|
formattedPriceWithoutCurrencySymbol: '3600'
|
|
2342
2354
|
},
|
|
2355
|
+
displayItemTotalWithoutDiscount: {
|
|
2356
|
+
value: 3700.0,
|
|
2357
|
+
formattedValue: '£3700.00',
|
|
2358
|
+
currencyIso: 'GBP',
|
|
2359
|
+
formattedPriceWithoutCurrencySymbol: '3700.00'
|
|
2360
|
+
},
|
|
2361
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2362
|
+
value: 3600,
|
|
2363
|
+
formattedValue: '£3600',
|
|
2364
|
+
currencyIso: 'GBP',
|
|
2365
|
+
formattedPriceWithoutCurrencySymbol: '3600'
|
|
2366
|
+
},
|
|
2343
2367
|
appliedPromotions: null,
|
|
2344
2368
|
tilingInstallationData: null,
|
|
2345
2369
|
flooringInstallationData: null,
|
|
@@ -2425,6 +2449,18 @@ Wick.BasketData = function () {
|
|
|
2425
2449
|
currencyIso: 'GBP',
|
|
2426
2450
|
formattedPriceWithoutCurrencySymbol: '99'
|
|
2427
2451
|
},
|
|
2452
|
+
displayBasePrice: {
|
|
2453
|
+
value: 100.0,
|
|
2454
|
+
formattedValue: '£100',
|
|
2455
|
+
currencyIso: 'GBP',
|
|
2456
|
+
formattedPriceWithoutCurrencySymbol: '100'
|
|
2457
|
+
},
|
|
2458
|
+
displayBasePriceExclusiveVat: {
|
|
2459
|
+
value: 99,
|
|
2460
|
+
formattedValue: '£99',
|
|
2461
|
+
currencyIso: 'GBP',
|
|
2462
|
+
formattedPriceWithoutCurrencySymbol: '99'
|
|
2463
|
+
},
|
|
2428
2464
|
product: {
|
|
2429
2465
|
code: '221100',
|
|
2430
2466
|
name: 'Blue Circle Ready To Use Postcrete - 20kg',
|
|
@@ -2476,6 +2512,18 @@ Wick.BasketData = function () {
|
|
|
2476
2512
|
currencyIso: 'GBP',
|
|
2477
2513
|
formattedPriceWithoutCurrencySymbol: '99'
|
|
2478
2514
|
},
|
|
2515
|
+
displayItemTotalWithoutDiscount: {
|
|
2516
|
+
value: 100.0,
|
|
2517
|
+
formattedValue: '£100',
|
|
2518
|
+
currencyIso: 'GBP',
|
|
2519
|
+
formattedPriceWithoutCurrencySymbol: '100'
|
|
2520
|
+
},
|
|
2521
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2522
|
+
value: 99,
|
|
2523
|
+
formattedValue: '£99',
|
|
2524
|
+
currencyIso: 'GBP',
|
|
2525
|
+
formattedPriceWithoutCurrencySymbol: '99'
|
|
2526
|
+
},
|
|
2479
2527
|
orderFulfilmentControls: {
|
|
2480
2528
|
availableForDelivery: true,
|
|
2481
2529
|
availableForCollection: true,
|
|
@@ -2505,6 +2553,18 @@ Wick.BasketData = function () {
|
|
|
2505
2553
|
currencyIso: 'GBP',
|
|
2506
2554
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
2507
2555
|
},
|
|
2556
|
+
displayBasePrice: {
|
|
2557
|
+
value: 24.0,
|
|
2558
|
+
formattedValue: '£24',
|
|
2559
|
+
currencyIso: 'GBP',
|
|
2560
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
2561
|
+
},
|
|
2562
|
+
displayBasePriceExclusiveVat: {
|
|
2563
|
+
value: 23,
|
|
2564
|
+
formattedValue: '£23',
|
|
2565
|
+
currencyIso: 'GBP',
|
|
2566
|
+
formattedPriceWithoutCurrencySymbol: '23'
|
|
2567
|
+
},
|
|
2508
2568
|
product: {
|
|
2509
2569
|
code: '109450',
|
|
2510
2570
|
name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
|
|
@@ -2553,6 +2613,18 @@ Wick.BasketData = function () {
|
|
|
2553
2613
|
currencyIso: 'GBP',
|
|
2554
2614
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
2555
2615
|
},
|
|
2616
|
+
displayItemTotalWithoutDiscount: {
|
|
2617
|
+
value: 24.0,
|
|
2618
|
+
formattedValue: '£24',
|
|
2619
|
+
currencyIso: 'GBP',
|
|
2620
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
2621
|
+
},
|
|
2622
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2623
|
+
value: 23,
|
|
2624
|
+
formattedValue: '£23',
|
|
2625
|
+
currencyIso: 'GBP',
|
|
2626
|
+
formattedPriceWithoutCurrencySymbol: '23'
|
|
2627
|
+
},
|
|
2556
2628
|
orderFulfilmentControls: {
|
|
2557
2629
|
availableForDelivery: true,
|
|
2558
2630
|
availableForCollection: true,
|
|
@@ -2573,6 +2645,18 @@ Wick.BasketData = function () {
|
|
|
2573
2645
|
currencyIso: 'GBP',
|
|
2574
2646
|
formattedPriceWithoutCurrencySymbol: '0'
|
|
2575
2647
|
},
|
|
2648
|
+
displayBasePrice: {
|
|
2649
|
+
value: 0.0,
|
|
2650
|
+
formattedValue: '£0',
|
|
2651
|
+
currencyIso: 'GBP',
|
|
2652
|
+
formattedPriceWithoutCurrencySymbol: '0'
|
|
2653
|
+
},
|
|
2654
|
+
displayBasePriceExclusiveVat: {
|
|
2655
|
+
value: 0,
|
|
2656
|
+
formattedValue: '£0',
|
|
2657
|
+
currencyIso: 'GBP',
|
|
2658
|
+
formattedPriceWithoutCurrencySymbol: '0'
|
|
2659
|
+
},
|
|
2576
2660
|
product: {
|
|
2577
2661
|
code: '103123',
|
|
2578
2662
|
name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
|
|
@@ -2627,6 +2711,18 @@ Wick.BasketData = function () {
|
|
|
2627
2711
|
currencyIso: 'GBP',
|
|
2628
2712
|
formattedPriceWithoutCurrencySymbol: '0'
|
|
2629
2713
|
},
|
|
2714
|
+
displayItemTotalWithoutDiscount: {
|
|
2715
|
+
value: 0.0,
|
|
2716
|
+
formattedValue: '£0',
|
|
2717
|
+
currencyIso: 'GBP',
|
|
2718
|
+
formattedPriceWithoutCurrencySymbol: '0'
|
|
2719
|
+
},
|
|
2720
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2721
|
+
value: 0,
|
|
2722
|
+
formattedValue: '£0',
|
|
2723
|
+
currencyIso: 'GBP',
|
|
2724
|
+
formattedPriceWithoutCurrencySymbol: '0'
|
|
2725
|
+
},
|
|
2630
2726
|
orderFulfilmentControls: {
|
|
2631
2727
|
availableForDelivery: true,
|
|
2632
2728
|
availableForCollection: true,
|
|
@@ -2657,6 +2753,18 @@ Wick.BasketData = function () {
|
|
|
2657
2753
|
currencyIso: 'GBP',
|
|
2658
2754
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
2659
2755
|
},
|
|
2756
|
+
displayBasePrice: {
|
|
2757
|
+
value: 25.0,
|
|
2758
|
+
formattedValue: '£25',
|
|
2759
|
+
currencyIso: 'GBP',
|
|
2760
|
+
formattedPriceWithoutCurrencySymbol: '25'
|
|
2761
|
+
},
|
|
2762
|
+
displayBasePriceExclusiveVat: {
|
|
2763
|
+
value: 24,
|
|
2764
|
+
formattedValue: '£24',
|
|
2765
|
+
currencyIso: 'GBP',
|
|
2766
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
2767
|
+
},
|
|
2660
2768
|
product: {
|
|
2661
2769
|
code: '109451',
|
|
2662
2770
|
name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
|
|
@@ -2713,6 +2821,18 @@ Wick.BasketData = function () {
|
|
|
2713
2821
|
currencyIso: 'GBP',
|
|
2714
2822
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
2715
2823
|
},
|
|
2824
|
+
displayItemTotalWithoutDiscount: {
|
|
2825
|
+
value: 25.0,
|
|
2826
|
+
formattedValue: '£25',
|
|
2827
|
+
currencyIso: 'GBP',
|
|
2828
|
+
formattedPriceWithoutCurrencySymbol: '25'
|
|
2829
|
+
},
|
|
2830
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2831
|
+
value: 24,
|
|
2832
|
+
formattedValue: '£24',
|
|
2833
|
+
currencyIso: 'GBP',
|
|
2834
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
2835
|
+
},
|
|
2716
2836
|
orderFulfilmentControls: {
|
|
2717
2837
|
availableForDelivery: true,
|
|
2718
2838
|
availableForCollection: true,
|
|
@@ -2733,6 +2853,18 @@ Wick.BasketData = function () {
|
|
|
2733
2853
|
currencyIso: 'GBP',
|
|
2734
2854
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
2735
2855
|
},
|
|
2856
|
+
displayBasePrice: {
|
|
2857
|
+
value: 25.0,
|
|
2858
|
+
formattedValue: '£25',
|
|
2859
|
+
currencyIso: 'GBP',
|
|
2860
|
+
formattedPriceWithoutCurrencySymbol: '25'
|
|
2861
|
+
},
|
|
2862
|
+
displayBasePriceExclusiveVat: {
|
|
2863
|
+
value: 24,
|
|
2864
|
+
formattedValue: '£24',
|
|
2865
|
+
currencyIso: 'GBP',
|
|
2866
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
2867
|
+
},
|
|
2736
2868
|
product: {
|
|
2737
2869
|
code: '123143',
|
|
2738
2870
|
name: '6 Wickes General Purpose Claw test',
|
|
@@ -2778,6 +2910,18 @@ Wick.BasketData = function () {
|
|
|
2778
2910
|
currencyIso: 'GBP',
|
|
2779
2911
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
2780
2912
|
},
|
|
2913
|
+
displayItemTotalWithoutDiscount: {
|
|
2914
|
+
value: 25.0,
|
|
2915
|
+
formattedValue: '£25',
|
|
2916
|
+
currencyIso: 'GBP',
|
|
2917
|
+
formattedPriceWithoutCurrencySymbol: '25'
|
|
2918
|
+
},
|
|
2919
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
2920
|
+
value: 24,
|
|
2921
|
+
formattedValue: '£24',
|
|
2922
|
+
currencyIso: 'GBP',
|
|
2923
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
2924
|
+
},
|
|
2781
2925
|
orderFulfilmentControls: {
|
|
2782
2926
|
availableForDelivery: true,
|
|
2783
2927
|
availableForCollection: true,
|
|
@@ -2879,6 +3023,18 @@ Wick.BasketData = function () {
|
|
|
2879
3023
|
currencyIso: 'GBP',
|
|
2880
3024
|
formattedPriceWithoutCurrencySymbol: '99'
|
|
2881
3025
|
},
|
|
3026
|
+
displayBasePrice: {
|
|
3027
|
+
value: 100.0,
|
|
3028
|
+
formattedValue: '£100',
|
|
3029
|
+
currencyIso: 'GBP',
|
|
3030
|
+
formattedPriceWithoutCurrencySymbol: '100'
|
|
3031
|
+
},
|
|
3032
|
+
displayBasePriceExclusiveVat: {
|
|
3033
|
+
value: 99,
|
|
3034
|
+
formattedValue: '£99',
|
|
3035
|
+
currencyIso: 'GBP',
|
|
3036
|
+
formattedPriceWithoutCurrencySymbol: '99'
|
|
3037
|
+
},
|
|
2882
3038
|
product: {
|
|
2883
3039
|
code: '221100',
|
|
2884
3040
|
name: 'Blue Circle Ready To Use Postcrete - 20kg',
|
|
@@ -2930,6 +3086,18 @@ Wick.BasketData = function () {
|
|
|
2930
3086
|
currencyIso: 'GBP',
|
|
2931
3087
|
formattedPriceWithoutCurrencySymbol: '99'
|
|
2932
3088
|
},
|
|
3089
|
+
displayItemTotalWithoutDiscount: {
|
|
3090
|
+
value: 100.0,
|
|
3091
|
+
formattedValue: '£100',
|
|
3092
|
+
currencyIso: 'GBP',
|
|
3093
|
+
formattedPriceWithoutCurrencySymbol: '100'
|
|
3094
|
+
},
|
|
3095
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3096
|
+
value: 99,
|
|
3097
|
+
formattedValue: '£99',
|
|
3098
|
+
currencyIso: 'GBP',
|
|
3099
|
+
formattedPriceWithoutCurrencySymbol: '99'
|
|
3100
|
+
},
|
|
2933
3101
|
orderFulfilmentControls: {
|
|
2934
3102
|
availableForDelivery: true,
|
|
2935
3103
|
availableForCollection: true,
|
|
@@ -2959,6 +3127,18 @@ Wick.BasketData = function () {
|
|
|
2959
3127
|
currencyIso: 'GBP',
|
|
2960
3128
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
2961
3129
|
},
|
|
3130
|
+
displayBasePrice: {
|
|
3131
|
+
value: 24.0,
|
|
3132
|
+
formattedValue: '£24',
|
|
3133
|
+
currencyIso: 'GBP',
|
|
3134
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
3135
|
+
},
|
|
3136
|
+
displayBasePriceExclusiveVat: {
|
|
3137
|
+
value: 23,
|
|
3138
|
+
formattedValue: '£23',
|
|
3139
|
+
currencyIso: 'GBP',
|
|
3140
|
+
formattedPriceWithoutCurrencySymbol: '23'
|
|
3141
|
+
},
|
|
2962
3142
|
product: {
|
|
2963
3143
|
code: '109450',
|
|
2964
3144
|
name: 'Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²',
|
|
@@ -3007,6 +3187,18 @@ Wick.BasketData = function () {
|
|
|
3007
3187
|
currencyIso: 'GBP',
|
|
3008
3188
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
3009
3189
|
},
|
|
3190
|
+
displayItemTotalWithoutDiscount: {
|
|
3191
|
+
value: 24.0,
|
|
3192
|
+
formattedValue: '£24',
|
|
3193
|
+
currencyIso: 'GBP',
|
|
3194
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
3195
|
+
},
|
|
3196
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3197
|
+
value: 23,
|
|
3198
|
+
formattedValue: '£23',
|
|
3199
|
+
currencyIso: 'GBP',
|
|
3200
|
+
formattedPriceWithoutCurrencySymbol: '23'
|
|
3201
|
+
},
|
|
3010
3202
|
orderFulfilmentControls: {
|
|
3011
3203
|
availableForDelivery: true,
|
|
3012
3204
|
availableForCollection: true,
|
|
@@ -3027,6 +3219,18 @@ Wick.BasketData = function () {
|
|
|
3027
3219
|
currencyIso: 'GBP',
|
|
3028
3220
|
formattedPriceWithoutCurrencySymbol: '0'
|
|
3029
3221
|
},
|
|
3222
|
+
displayBasePrice: {
|
|
3223
|
+
value: 0.0,
|
|
3224
|
+
formattedValue: '£0',
|
|
3225
|
+
currencyIso: 'GBP',
|
|
3226
|
+
formattedPriceWithoutCurrencySymbol: '0'
|
|
3227
|
+
},
|
|
3228
|
+
displayBasePriceExclusiveVat: {
|
|
3229
|
+
value: 0,
|
|
3230
|
+
formattedValue: '£0',
|
|
3231
|
+
currencyIso: 'GBP',
|
|
3232
|
+
formattedPriceWithoutCurrencySymbol: '0'
|
|
3233
|
+
},
|
|
3030
3234
|
product: {
|
|
3031
3235
|
code: '103123',
|
|
3032
3236
|
name: 'Wickes Passage Door Knob Set - Brass 1 Pair',
|
|
@@ -3081,6 +3285,18 @@ Wick.BasketData = function () {
|
|
|
3081
3285
|
currencyIso: 'GBP',
|
|
3082
3286
|
formattedPriceWithoutCurrencySymbol: '0'
|
|
3083
3287
|
},
|
|
3288
|
+
displayItemTotalWithoutDiscount: {
|
|
3289
|
+
value: 0.0,
|
|
3290
|
+
formattedValue: '£0',
|
|
3291
|
+
currencyIso: 'GBP',
|
|
3292
|
+
formattedPriceWithoutCurrencySymbol: '0'
|
|
3293
|
+
},
|
|
3294
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3295
|
+
value: 0,
|
|
3296
|
+
formattedValue: '£0',
|
|
3297
|
+
currencyIso: 'GBP',
|
|
3298
|
+
formattedPriceWithoutCurrencySymbol: '0'
|
|
3299
|
+
},
|
|
3084
3300
|
orderFulfilmentControls: {
|
|
3085
3301
|
availableForDelivery: true,
|
|
3086
3302
|
availableForCollection: true,
|
|
@@ -3111,6 +3327,18 @@ Wick.BasketData = function () {
|
|
|
3111
3327
|
currencyIso: 'GBP',
|
|
3112
3328
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
3113
3329
|
},
|
|
3330
|
+
displayBasePrice: {
|
|
3331
|
+
value: 25.0,
|
|
3332
|
+
formattedValue: '£25',
|
|
3333
|
+
currencyIso: 'GBP',
|
|
3334
|
+
formattedPriceWithoutCurrencySymbol: '25'
|
|
3335
|
+
},
|
|
3336
|
+
displayBasePriceExclusiveVat: {
|
|
3337
|
+
value: 24,
|
|
3338
|
+
formattedValue: '£24',
|
|
3339
|
+
currencyIso: 'GBP',
|
|
3340
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
3341
|
+
},
|
|
3114
3342
|
product: {
|
|
3115
3343
|
code: '109451',
|
|
3116
3344
|
name: 'Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²',
|
|
@@ -3167,6 +3395,18 @@ Wick.BasketData = function () {
|
|
|
3167
3395
|
currencyIso: 'GBP',
|
|
3168
3396
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
3169
3397
|
},
|
|
3398
|
+
displayItemTotalWithoutDiscount: {
|
|
3399
|
+
value: 25.0,
|
|
3400
|
+
formattedValue: '£25',
|
|
3401
|
+
currencyIso: 'GBP',
|
|
3402
|
+
formattedPriceWithoutCurrencySymbol: '25'
|
|
3403
|
+
},
|
|
3404
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3405
|
+
value: 24,
|
|
3406
|
+
formattedValue: '£24',
|
|
3407
|
+
currencyIso: 'GBP',
|
|
3408
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
3409
|
+
},
|
|
3170
3410
|
orderFulfilmentControls: {
|
|
3171
3411
|
availableForDelivery: true,
|
|
3172
3412
|
availableForCollection: true,
|
|
@@ -3187,6 +3427,18 @@ Wick.BasketData = function () {
|
|
|
3187
3427
|
currencyIso: 'GBP',
|
|
3188
3428
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
3189
3429
|
},
|
|
3430
|
+
displayBasePrice: {
|
|
3431
|
+
value: 25.0,
|
|
3432
|
+
formattedValue: '£25',
|
|
3433
|
+
currencyIso: 'GBP',
|
|
3434
|
+
formattedPriceWithoutCurrencySymbol: '25'
|
|
3435
|
+
},
|
|
3436
|
+
displayBasePriceExclusiveVat: {
|
|
3437
|
+
value: 24,
|
|
3438
|
+
formattedValue: '£24',
|
|
3439
|
+
currencyIso: 'GBP',
|
|
3440
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
3441
|
+
},
|
|
3190
3442
|
product: {
|
|
3191
3443
|
code: '123143',
|
|
3192
3444
|
name: '6 Wickes General Purpose Claw test',
|
|
@@ -3232,6 +3484,18 @@ Wick.BasketData = function () {
|
|
|
3232
3484
|
currencyIso: 'GBP',
|
|
3233
3485
|
formattedPriceWithoutCurrencySymbol: '24'
|
|
3234
3486
|
},
|
|
3487
|
+
displayItemTotalWithoutDiscount: {
|
|
3488
|
+
value: 25.0,
|
|
3489
|
+
formattedValue: '£25',
|
|
3490
|
+
currencyIso: 'GBP',
|
|
3491
|
+
formattedPriceWithoutCurrencySymbol: '25'
|
|
3492
|
+
},
|
|
3493
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
3494
|
+
value: 24,
|
|
3495
|
+
formattedValue: '£24',
|
|
3496
|
+
currencyIso: 'GBP',
|
|
3497
|
+
formattedPriceWithoutCurrencySymbol: '24'
|
|
3498
|
+
},
|
|
3235
3499
|
orderFulfilmentControls: {
|
|
3236
3500
|
availableForDelivery: true,
|
|
3237
3501
|
availableForCollection: true,
|
|
@@ -3293,6 +3557,18 @@ Wick.BasketData = function () {
|
|
|
3293
3557
|
currencyIso: 'GBP',
|
|
3294
3558
|
formattedPriceWithoutCurrencySymbol: '17'
|
|
3295
3559
|
},
|
|
3560
|
+
displayBasePrice: {
|
|
3561
|
+
value: 18.0,
|
|
3562
|
+
formattedValue: '£18.00',
|
|
3563
|
+
currencyIso: 'GBP',
|
|
3564
|
+
formattedPriceWithoutCurrencySymbol: '18.00'
|
|
3565
|
+
},
|
|
3566
|
+
displayBasePriceExclusiveVat: {
|
|
3567
|
+
value: 17,
|
|
3568
|
+
formattedValue: '£17',
|
|
3569
|
+
currencyIso: 'GBP',
|
|
3570
|
+
formattedPriceWithoutCurrencySymbol: '17'
|
|
3571
|
+
},
|
|
3296
3572
|
totalPrice: {
|
|
3297
3573
|
currencyIso: 'GBP',
|
|
3298
3574
|
value: 36.0,
|
|
@@ -3743,6 +4019,18 @@ Wick.BasketData = function () {
|
|
|
3743
4019
|
currencyIso: 'GBP',
|
|
3744
4020
|
formattedPriceWithoutCurrencySymbol: '35'
|
|
3745
4021
|
},
|
|
4022
|
+
displayItemTotalWithoutDiscount: {
|
|
4023
|
+
value: 36.0,
|
|
4024
|
+
formattedValue: '£36.00',
|
|
4025
|
+
currencyIso: 'GBP',
|
|
4026
|
+
formattedPriceWithoutCurrencySymbol: '36.00'
|
|
4027
|
+
},
|
|
4028
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
4029
|
+
value: 35,
|
|
4030
|
+
formattedValue: '£35',
|
|
4031
|
+
currencyIso: 'GBP',
|
|
4032
|
+
formattedPriceWithoutCurrencySymbol: '35'
|
|
4033
|
+
},
|
|
3746
4034
|
appliedPromotions: null,
|
|
3747
4035
|
tilingInstallationData: null,
|
|
3748
4036
|
flooringInstallationData: null,
|
|
@@ -3793,6 +4081,18 @@ Wick.BasketData = function () {
|
|
|
3793
4081
|
currencyIso: 'GBP',
|
|
3794
4082
|
formattedPriceWithoutCurrencySymbol: '3'
|
|
3795
4083
|
},
|
|
4084
|
+
displayBasePrice: {
|
|
4085
|
+
value: 4.0,
|
|
4086
|
+
formattedValue: '£4.00',
|
|
4087
|
+
currencyIso: 'GBP',
|
|
4088
|
+
formattedPriceWithoutCurrencySymbol: '4.00'
|
|
4089
|
+
},
|
|
4090
|
+
displayBasePriceExclusiveVat: {
|
|
4091
|
+
value: 3,
|
|
4092
|
+
formattedValue: '£3',
|
|
4093
|
+
currencyIso: 'GBP',
|
|
4094
|
+
formattedPriceWithoutCurrencySymbol: '3'
|
|
4095
|
+
},
|
|
3796
4096
|
totalPrice: {
|
|
3797
4097
|
currencyIso: 'GBP',
|
|
3798
4098
|
value: 24.0,
|
|
@@ -3993,6 +4293,18 @@ Wick.BasketData = function () {
|
|
|
3993
4293
|
currencyIso: 'GBP',
|
|
3994
4294
|
formattedPriceWithoutCurrencySymbol: '23'
|
|
3995
4295
|
},
|
|
4296
|
+
displayItemTotalWithoutDiscount: {
|
|
4297
|
+
value: 24.0,
|
|
4298
|
+
formattedValue: '£24.00',
|
|
4299
|
+
currencyIso: 'GBP',
|
|
4300
|
+
formattedPriceWithoutCurrencySymbol: '24.00'
|
|
4301
|
+
},
|
|
4302
|
+
displayItemTotalWithoutDiscountExclusiveVat: {
|
|
4303
|
+
value: 23,
|
|
4304
|
+
formattedValue: '£23',
|
|
4305
|
+
currencyIso: 'GBP',
|
|
4306
|
+
formattedPriceWithoutCurrencySymbol: '23'
|
|
4307
|
+
},
|
|
3996
4308
|
appliedPromotions: null,
|
|
3997
4309
|
tilingInstallationData: null,
|
|
3998
4310
|
flooringInstallationData: null,
|
|
@@ -16813,6 +17125,7 @@ Wick.Selectable = function () {
|
|
|
16813
17125
|
|
|
16814
17126
|
var Wick = Wick || {};
|
|
16815
17127
|
Wick.ShoppingList = {
|
|
17128
|
+
invalidEmailMessage: 'Please enter a valid email address',
|
|
16816
17129
|
bindAll: function bindAll() {
|
|
16817
17130
|
Wick.ShoppingList.bindButtons();
|
|
16818
17131
|
},
|
|
@@ -16836,50 +17149,37 @@ Wick.ShoppingList = {
|
|
|
16836
17149
|
var forms = new Array();
|
|
16837
17150
|
forms.push($('#share-via-email'));
|
|
16838
17151
|
$('.share-via-email-box').each(function () {
|
|
16839
|
-
forms.push($(this).find('[
|
|
17152
|
+
forms.push($(this).find('[name="share-list-modal"]'));
|
|
16840
17153
|
});
|
|
16841
17154
|
return forms;
|
|
16842
17155
|
},
|
|
16843
|
-
|
|
16844
|
-
var oneFieldFilledIn = false;
|
|
17156
|
+
clearValidationErrors: function clearValidationErrors(forms) {
|
|
16845
17157
|
forms.forEach(function (form) {
|
|
16846
|
-
|
|
16847
|
-
|
|
16848
|
-
|
|
17158
|
+
window.Wick.Validation.removeValidationError(form);
|
|
17159
|
+
});
|
|
17160
|
+
},
|
|
17161
|
+
isFormsValid: function isFormsValid(forms) {
|
|
17162
|
+
Wick.ShoppingList.clearValidationErrors(forms);
|
|
17163
|
+
var oneFieldFilledIn = forms.some(function (form) {
|
|
17164
|
+
return $(form).val() !== '';
|
|
16849
17165
|
});
|
|
16850
17166
|
if (!oneFieldFilledIn) {
|
|
16851
|
-
Wick.
|
|
17167
|
+
window.Wick.Validation.displayValidationError(forms[0], Wick.ShoppingList.invalidEmailMessage);
|
|
16852
17168
|
return false;
|
|
16853
17169
|
}
|
|
16854
17170
|
var isFormsValid = true;
|
|
16855
|
-
forms.
|
|
16856
|
-
|
|
16857
|
-
|
|
16858
|
-
|
|
17171
|
+
forms.filter(function (form) {
|
|
17172
|
+
return $(form).val() !== '';
|
|
17173
|
+
}).forEach(function (form) {
|
|
17174
|
+
if (window.Wick.Validation.isValidEmail($(form).val())) {
|
|
17175
|
+
window.Wick.Validation.removeValidationError(form);
|
|
17176
|
+
} else {
|
|
17177
|
+
window.Wick.Validation.displayValidationError(form, Wick.ShoppingList.invalidEmailMessage);
|
|
16859
17178
|
isFormsValid = false;
|
|
16860
17179
|
}
|
|
16861
17180
|
});
|
|
16862
17181
|
return isFormsValid;
|
|
16863
17182
|
},
|
|
16864
|
-
showEmptyFormsWarning: function showEmptyFormsWarning(form) {
|
|
16865
|
-
form.prop('required', true);
|
|
16866
|
-
try {
|
|
16867
|
-
form.get(0).reportValidity();
|
|
16868
|
-
} catch (e) {
|
|
16869
|
-
Wick.ShoppingList.resetFormErrors();
|
|
16870
|
-
form.closest('.form-row').addClass('form-row_validation-error');
|
|
16871
|
-
form.closest('.form-row__field').append('<div class="form-row__error">Please fill in the field</div>');
|
|
16872
|
-
}
|
|
16873
|
-
},
|
|
16874
|
-
showInvalidEmailWarning: function showInvalidEmailWarning(form) {
|
|
16875
|
-
try {
|
|
16876
|
-
form.get(0).reportValidity();
|
|
16877
|
-
} catch (e) {
|
|
16878
|
-
Wick.ShoppingList.resetFormErrors();
|
|
16879
|
-
form.closest('.form-row').addClass('form-row_validation-error');
|
|
16880
|
-
form.closest('.form-row__field').append('<div class="form-row__error">Please fill in the field</div>');
|
|
16881
|
-
}
|
|
16882
|
-
},
|
|
16883
17183
|
resetFormErrors: function resetFormErrors() {
|
|
16884
17184
|
$('#share-list-form .form-row').each(function () {
|
|
16885
17185
|
$(this).removeClass('form-row_validation-error');
|
|
@@ -277,13 +277,14 @@ 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 =
|
|
280
|
+
const totalPrice = data.entry.displayItemTotalWithoutDiscount.formattedValue;
|
|
281
|
+
const totalPriceExcVat =
|
|
282
|
+
data.entry.displayItemTotalWithoutDiscountExclusiveVat.formattedValue;
|
|
282
283
|
itemTotalIncVat.text(totalPrice);
|
|
283
284
|
itemTotalExcVat.text(totalPriceExcVat);
|
|
284
285
|
} else {
|
|
285
286
|
const totalValue = context.find(Wick.BasketPage.el.itemTotal);
|
|
286
|
-
const totalPrice = data.entry.
|
|
287
|
+
const totalPrice = data.entry.displayItemTotalWithoutDiscount.formattedValue;
|
|
287
288
|
totalValue.text(totalPrice);
|
|
288
289
|
}
|
|
289
290
|
}
|
|
@@ -798,20 +799,20 @@ Wick.BasketPage = {
|
|
|
798
799
|
<div class="order-item__price-title">Item price:</div>
|
|
799
800
|
<div class="order-item__price-value">
|
|
800
801
|
${
|
|
801
|
-
currentItem.
|
|
802
|
+
currentItem.displayBasePrice.value === 0
|
|
802
803
|
? '<span class="order-item__value">FREE</span>'
|
|
803
804
|
: Wick.VatToggle.isToggleVatAvailable()
|
|
804
805
|
? `
|
|
805
806
|
<div class="including-vat"><!--
|
|
806
|
-
--><span class="order-item__value">${currentItem.
|
|
807
|
+
--><span class="order-item__value">${currentItem.displayBasePrice.formattedValue}</span><!--
|
|
807
808
|
--><div class="price-vat">Inc.VAT</div>
|
|
808
809
|
</div>
|
|
809
810
|
<div class="excluding-vat"><!--
|
|
810
|
-
--><span class="order-item__value">${currentItem.
|
|
811
|
+
--><span class="order-item__value">${currentItem.displayBasePriceExclusiveVat.formattedValue}</span><!--
|
|
811
812
|
--><div class="price-vat">Exc.VAT</div>
|
|
812
813
|
</div>
|
|
813
814
|
`
|
|
814
|
-
: `<span class="order-item__value">${currentItem.
|
|
815
|
+
: `<span class="order-item__value">${currentItem.displayBasePrice.formattedValue}</span>`
|
|
815
816
|
}
|
|
816
817
|
</div>
|
|
817
818
|
</div>
|
|
@@ -820,20 +821,20 @@ Wick.BasketPage = {
|
|
|
820
821
|
<div class="order-item__total-title">Item total:</div>
|
|
821
822
|
<div class="order-item__total-value">
|
|
822
823
|
${
|
|
823
|
-
currentItem.
|
|
824
|
+
currentItem.displayItemTotalWithoutDiscount.value === 0
|
|
824
825
|
? '<span class="order-item__value">FREE</span>'
|
|
825
826
|
: Wick.VatToggle.isToggleVatAvailable()
|
|
826
827
|
? `
|
|
827
828
|
<div class="including-vat"><!--
|
|
828
|
-
--><span class="order-item__value">${currentItem.
|
|
829
|
+
--><span class="order-item__value">${currentItem.displayItemTotalWithoutDiscount.formattedValue}</span><!--
|
|
829
830
|
--><div class="price-vat">Inc.VAT</div><!--
|
|
830
831
|
--></div>
|
|
831
832
|
<div class="excluding-vat"><!--
|
|
832
|
-
--><span class="order-item__value">${currentItem.
|
|
833
|
+
--><span class="order-item__value">${currentItem.displayItemTotalWithoutDiscountExclusiveVat.formattedValue}</span><!--
|
|
833
834
|
--><div class="price-vat">Exc.VAT</div>
|
|
834
835
|
</div>
|
|
835
836
|
`
|
|
836
|
-
: `<span class="order-item__value">${currentItem.
|
|
837
|
+
: `<span class="order-item__value">${currentItem.displayItemTotalWithoutDiscount.formattedValue}</span>`
|
|
837
838
|
}
|
|
838
839
|
</div>
|
|
839
840
|
</div>
|
|
@@ -929,7 +930,7 @@ Wick.BasketPage = {
|
|
|
929
930
|
data.appliedProductPromotions &&
|
|
930
931
|
data.appliedProductPromotions.forEach((entry) => {
|
|
931
932
|
entry.consumedEntries.forEach((promo) => {
|
|
932
|
-
if (promo.orderEntryNumber === item.entryNumber && entry.
|
|
933
|
+
if (promo.orderEntryNumber === item.entryNumber && entry.displayDescription) {
|
|
933
934
|
if (arr.length) {
|
|
934
935
|
let duplicate = arr.every((el) => {
|
|
935
936
|
return el !== Wick.BasketPage.buildPromotion(entry);
|
|
@@ -1115,15 +1116,19 @@ Wick.BasketPage = {
|
|
|
1115
1116
|
const arr = [];
|
|
1116
1117
|
if (data.potentialOrderPromotions && data.potentialOrderPromotions.length) {
|
|
1117
1118
|
data.potentialOrderPromotions.forEach((promo) => {
|
|
1118
|
-
!promo.
|
|
1119
|
+
!promo.displayDescription ||
|
|
1119
1120
|
arr.push(`
|
|
1120
1121
|
<div class="p-promotion">
|
|
1121
1122
|
<div class="p-promotion__icon">
|
|
1122
1123
|
<i class="icon fas fa-gift"></i>
|
|
1123
1124
|
</div>
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1125
|
+
${
|
|
1126
|
+
Wick.VatToggle.isToggleVatAvailable() &&
|
|
1127
|
+
promo.displayDescriptionExclusiveVat
|
|
1128
|
+
? `<div class="p-promotion__description including-vat">${promo.displayDescription}</div>
|
|
1129
|
+
<div class="p-promotion__description excluding-vat d-none">${promo.displayDescriptionExclusiveVat}</div>`
|
|
1130
|
+
: `<div class="p-promotion__description">${promo.displayDescription}</div>`
|
|
1131
|
+
}
|
|
1127
1132
|
<div class="p-promotion__close">
|
|
1128
1133
|
<i class="icon fas fa-times"></i>
|
|
1129
1134
|
</div>
|
|
@@ -1134,15 +1139,19 @@ Wick.BasketPage = {
|
|
|
1134
1139
|
|
|
1135
1140
|
if (data.appliedOrderPromotions && data.appliedOrderPromotions.length) {
|
|
1136
1141
|
data.appliedOrderPromotions.forEach((promo) => {
|
|
1137
|
-
!promo.
|
|
1142
|
+
!promo.displayDescription ||
|
|
1138
1143
|
arr.push(`
|
|
1139
1144
|
<div class="p-promotion">
|
|
1140
1145
|
<div class="p-promotion__icon">
|
|
1141
1146
|
<i class="icon fas fa-gift"></i>
|
|
1142
1147
|
</div>
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1148
|
+
${
|
|
1149
|
+
Wick.VatToggle.isToggleVatAvailable() &&
|
|
1150
|
+
promo.displayDescriptionExclusiveVat
|
|
1151
|
+
? `<div class="p-promotion__description including-vat">${promo.displayDescription}</div>
|
|
1152
|
+
<div class="p-promotion__description excluding-vat d-none">${promo.displayDescriptionExclusiveVat}</div>`
|
|
1153
|
+
: `<div class="p-promotion__description">${promo.displayDescription}</div>`
|
|
1154
|
+
}
|
|
1146
1155
|
<div class="p-promotion__close">
|
|
1147
1156
|
<i class="icon fas fa-times"></i>
|
|
1148
1157
|
</div>
|