wickes-css2 2.94.0 → 2.95.0
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/Readme.md +3 -2
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/pages/checkout-new.css +1 -1
- package/build/css/pages/checkout.css +1 -1
- package/build/css/pages/my-account-v2.css +1 -1
- package/build/css/pages/page_checkout_delivery-new.css +1 -1
- package/build/css/pages/page_my-orders.css +1 -0
- package/build/css/pages/page_products-list-combined.css +1 -1
- package/build/css/pages/page_products-list.css +1 -1
- package/build/css/pages/page_shopping-cart-v2.css +1 -1
- package/build/css/pages/tradePro-signup.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/js/basket.min.js +2 -2
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +2 -2
- package/build/js/emulation.min.js +54 -2
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +2 -2
- package/build/js/my-orders.min.js +1 -0
- package/build/js/page/basket/summary-mobile.js +22 -0
- package/build/js/page/basket-v2.js +13 -0
- package/build/js/page/components/order-summary.js +8 -1
- package/build/js/page/components/sticky-order-observer.js +49 -0
- package/build/js/page/components/voucher.js +1 -1
- package/build/js/page/my-orders.js +165 -0
- package/build/js/page/quiz.js +20 -11
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/build/js/quiz.min.js +1 -1
- package/package.json +1 -1
- package/src/components/checkout-action.hbs +14 -11
- package/src/components/checkout-voucher-accordion.hbs +15 -0
- package/src/components/checkout_order-summary-new.hbs +5 -3
- package/src/components/checkout_voucher_large.hbs +20 -16
- package/src/components/date-selection.hbs +1 -1
- package/src/components/flatpickr-calendar.hbs +26 -0
- package/src/components/my-account/active-orders/header.hbs +6 -2
- package/src/components/my-account/active-orders/list-orders.hbs +14 -2
- package/src/components/my-account/active-orders/order-header.hbs +1 -1
- package/src/components/my-account/active-orders/order.hbs +10 -6
- package/src/components/my-account/clipboard-code-card.hbs +1 -1
- package/src/components/my-account/empty-orders.hbs +9 -0
- package/src/components/my-account/mobile-nav.hbs +23 -19
- package/src/components/my-account/orders-nav.hbs +15 -0
- package/src/components/my-account/sort-by.hbs +3 -0
- package/src/components/my-account/user-account-actions.hbs +1 -1
- package/src/components/order-item.hbs +3 -3
- package/src/components/order-summary.hbs +91 -56
- package/src/components/partner-signup-form.hbs +4 -0
- package/src/components/signup-form.hbs +1 -2
- package/src/components/summary-mobile-bar.hbs +17 -0
- package/src/data/data_delivery-address-v2.json +1 -1
- package/src/data/data_shopping-cart-v2.json +24 -0
- package/src/data/my-account/data_my-orders.json +246 -0
- package/src/elements/dropdown.hbs +1 -1
- package/src/js/components/flatpickr.js +167 -0
- package/src/js/components/general/handleAccordion.js +35 -0
- package/src/js/components/general/is-trade-pro.js +15 -1
- package/src/js/emulation/basket-data.js +2 -2
- package/src/js/emulation/mock.js +10 -0
- package/src/js/emulation/my-orders-local.js +41 -0
- package/src/js/page/basket/summary-mobile.js +22 -0
- package/src/js/page/basket-v2.js +13 -0
- package/src/js/page/components/order-summary.js +8 -1
- package/src/js/page/components/sticky-order-observer.js +49 -0
- package/src/js/page/components/voucher.js +1 -1
- package/src/js/page/my-orders.js +165 -0
- package/src/js/page/quiz.js +20 -11
- package/src/layouts/basket-new.hbs +1 -1
- package/src/layouts/checkout-new.hbs +1 -0
- package/src/page_checkout_confirmation-new-marketing-consent-error.html +0 -2
- package/src/page_checkout_delivery-address-customer-journey.html +0 -5
- package/src/page_checkout_delivery-address-v2.html +0 -4
- package/src/page_checkout_delivery-details-v2-asm.html +1 -5
- package/src/page_checkout_delivery-details-v2-calendar-message.html +0 -3
- package/src/page_checkout_delivery-details-v2-oos.html +0 -3
- package/src/page_checkout_delivery-details-v2-wisdom-not-available.html +0 -5
- package/src/page_checkout_delivery-details-v2-wisdom.html +0 -5
- package/src/page_checkout_delivery-details-with-loader-v2.html +0 -3
- package/src/page_checkout_delivery-details_guest-new.html +0 -5
- package/src/page_checkout_delivery_address-asm-new.html +0 -4
- package/src/page_checkout_next-day-delivery-details.html +0 -6
- package/src/page_checkout_payment-details-v2.html +1 -1
- package/src/page_checkout_payment-details_guest-with-checkout-journey.html +0 -2
- package/src/page_checkout_payment-details_login-with-checkout-journey.html +0 -2
- package/src/page_checkout_rapid-delivery-details.html +0 -6
- package/src/page_klarna_payment-details_with-klarna.html +3 -6
- package/src/page_my-orders-empty.html +49 -0
- package/src/page_my-orders.html +64 -0
- package/src/page_payment-details-with-clearpay.html +1 -1
- package/src/page_payment-details_with_apple-pay.html +1 -1
- package/src/page_payment-details_with_google-pay.html +1 -1
- package/src/page_shopping-cart-v2.html +6 -16
- package/src/page_tradePro-signup.html +1 -1
- package/src/scss/components/_checkout-action.scss +132 -6
- package/src/scss/components/_marketing-preferences.scss +1 -1
- package/src/scss/components/_order-summary.scss +329 -178
- package/src/scss/components/_sticky-element-appearance.scss +25 -0
- package/src/scss/components/my-account/_active-orders.scss +263 -0
- package/src/scss/components/my-account/_orders-nav.scss +61 -0
- package/src/scss/helpers/_variables.scss +3 -0
- package/src/scss/libs/flatpickr.scss +235 -0
- package/src/scss/main.scss +1 -0
- package/src/scss/pages/_checkout-widget.scss +137 -28
- package/src/scss/pages/my-account-v2.scss +1 -136
- package/src/scss/pages/page_checkout_delivery-new.scss +119 -10
- package/src/scss/pages/page_my-orders.scss +232 -0
- package/src/scss/pages/page_products-list-combined.scss +0 -1
- package/src/scss/pages/page_products-list.scss +0 -1
- package/src/scss/pages/page_shopping-cart-v2.scss +137 -36
- package/src/scss/pages/tradePro-signup.scss +27 -0
- package/src/sitemap.html +2 -0
- package/src/scss/components/my-account/_order.scss +0 -112
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
</p>
|
|
16
16
|
<div class="form-row">
|
|
17
17
|
<div class="form-row__field">
|
|
18
|
-
{{> checkbox id="email-chk" label="Email
|
|
19
|
-
TradePro barcode via email)"}}
|
|
18
|
+
{{> checkbox id="email-chk" label="Email"}}
|
|
20
19
|
</div>
|
|
21
20
|
</div>
|
|
22
21
|
<div class="form-row">
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<div class="summary__mobile-bar" data-sticky-element>
|
|
2
|
+
<div class="summary__mobile-order collapsed"
|
|
3
|
+
data-toggle="collapse"
|
|
4
|
+
aria-expanded="false"
|
|
5
|
+
data-target="#checkout-summary-mobile-accordion-{{id}}">
|
|
6
|
+
<div class="summary__mobile-container container">
|
|
7
|
+
<span class="summary__mobile-bar-label">Order Summary</span>
|
|
8
|
+
<div class="summary__icon-container">
|
|
9
|
+
<span class="summary__mobile-bar-total">{{ total.value }}</span>
|
|
10
|
+
<span class="summary__icon summary__icon-up">
|
|
11
|
+
<i class="fal fa-angle-up fa-2x"></i>
|
|
12
|
+
</span>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
{{> checkout-action container="true" hidePaypalEmail="true"}}
|
|
17
|
+
</div>
|
|
@@ -78,8 +78,10 @@
|
|
|
78
78
|
"title": "Wickes General Purpose Claw \nHammer - 16oz",
|
|
79
79
|
"code": "123123",
|
|
80
80
|
"price": "16",
|
|
81
|
+
"priceExcVat": "15",
|
|
81
82
|
"quantity": 2,
|
|
82
83
|
"total": "32",
|
|
84
|
+
"totalExcVat": "30",
|
|
83
85
|
"offers": [
|
|
84
86
|
"Buy 2 for 3 — Add 1 to qualify",
|
|
85
87
|
"Buy 2 for 3 — Add 1 to qualify"
|
|
@@ -87,6 +89,9 @@
|
|
|
87
89
|
"pricePerSQM": {
|
|
88
90
|
"value": "12"
|
|
89
91
|
},
|
|
92
|
+
"pricePerSQMExcVat": {
|
|
93
|
+
"value": "10"
|
|
94
|
+
},
|
|
90
95
|
"message": "Purchased 12 times since your last visit 1 day ago",
|
|
91
96
|
"click-and-collect": {
|
|
92
97
|
"store": "Watford",
|
|
@@ -328,8 +333,10 @@
|
|
|
328
333
|
"title": "Wickes General Purpose Claw \nHammer - 16oz asd asd asd as das d asd as as d",
|
|
329
334
|
"code": "123124",
|
|
330
335
|
"price": "16",
|
|
336
|
+
"priceExcVat": "15",
|
|
331
337
|
"quantity": 123,
|
|
332
338
|
"total": "19776",
|
|
339
|
+
"totalExcVat": "19000",
|
|
333
340
|
"message": "Purchased 12 times since your last visit 1 day ago",
|
|
334
341
|
"click-and-collect": {
|
|
335
342
|
"otherStores": [
|
|
@@ -561,8 +568,10 @@
|
|
|
561
568
|
"title": "Wickes General Purpose Claw \nHammer - 16oz asdasd as das da sd as daasd as das as sd asa",
|
|
562
569
|
"code": "123125",
|
|
563
570
|
"price": "16",
|
|
571
|
+
"priceExcVat": "15",
|
|
564
572
|
"quantity": 2,
|
|
565
573
|
"total": "32",
|
|
574
|
+
"totalExcVat": "30",
|
|
566
575
|
"click-and-collect": {
|
|
567
576
|
"otherStores": [
|
|
568
577
|
{
|
|
@@ -792,6 +801,9 @@
|
|
|
792
801
|
"title": "Wickes General Purpose Claw test",
|
|
793
802
|
"code": "123126",
|
|
794
803
|
"price": "16",
|
|
804
|
+
"priceExcVat": "15",
|
|
805
|
+
"total": "32",
|
|
806
|
+
"totalExcVat": "30",
|
|
795
807
|
"quantity": 1,
|
|
796
808
|
"totalMobile": "16",
|
|
797
809
|
"click-and-collect": {
|
|
@@ -1029,8 +1041,10 @@
|
|
|
1029
1041
|
"title": "Wickes General Purpose Claw \nHammer - 16oz",
|
|
1030
1042
|
"code": "123127",
|
|
1031
1043
|
"price": "16",
|
|
1044
|
+
"priceExcVat": "15",
|
|
1032
1045
|
"quantity": 2,
|
|
1033
1046
|
"total": "32",
|
|
1047
|
+
"totalExcVat": "30",
|
|
1034
1048
|
"offers": [
|
|
1035
1049
|
"Buy 2 for 3 — Add 1 to qualify",
|
|
1036
1050
|
"Buy 2 for 3 — Add 1 to qualify"
|
|
@@ -1046,8 +1060,10 @@
|
|
|
1046
1060
|
"title": "Wickes General Purpose Claw \nHammer - 16oz asd asd asd as das d asd as as d",
|
|
1047
1061
|
"code": "123128",
|
|
1048
1062
|
"price": "16",
|
|
1063
|
+
"priceExcVat": "15",
|
|
1049
1064
|
"quantity": 123,
|
|
1050
1065
|
"total": "19776",
|
|
1066
|
+
"totalExcVat": "19000",
|
|
1051
1067
|
"message": "Purchased 12 times since your last visit 1 day ago",
|
|
1052
1068
|
"address": "Watford",
|
|
1053
1069
|
"updateable": true
|
|
@@ -1059,8 +1075,10 @@
|
|
|
1059
1075
|
"title": "Wickes General Purpose Claw \nHammer - 16oz asdasd as das da sd as daasd as das as sd asa",
|
|
1060
1076
|
"code": "123129",
|
|
1061
1077
|
"price": "16",
|
|
1078
|
+
"priceExcVat": "15",
|
|
1062
1079
|
"quantity": 2,
|
|
1063
1080
|
"total": "32",
|
|
1081
|
+
"totalExcVat": "30",
|
|
1064
1082
|
"updateable": true
|
|
1065
1083
|
|
|
1066
1084
|
},
|
|
@@ -1069,7 +1087,9 @@
|
|
|
1069
1087
|
"image": "./img/tile-buying-guide.jpg",
|
|
1070
1088
|
"title": "Wickes General Purpose Claw test",
|
|
1071
1089
|
"price": "16",
|
|
1090
|
+
"priceExcVat": "15",
|
|
1072
1091
|
"total": "32",
|
|
1092
|
+
"totalExcVat": "30",
|
|
1073
1093
|
"code": "1231210",
|
|
1074
1094
|
"quantity": 1,
|
|
1075
1095
|
"totalMobile": "16",
|
|
@@ -1080,7 +1100,9 @@
|
|
|
1080
1100
|
"image": "./img/tile-buying-guide.jpg",
|
|
1081
1101
|
"title": "Wickes General Purpose Claw test",
|
|
1082
1102
|
"price": "0",
|
|
1103
|
+
"priceExcVat": "0",
|
|
1083
1104
|
"total": "0",
|
|
1105
|
+
"totalExcVat": "0",
|
|
1084
1106
|
"updateable": false,
|
|
1085
1107
|
"code": "1231211",
|
|
1086
1108
|
"quantity": 1,
|
|
@@ -1094,9 +1116,11 @@
|
|
|
1094
1116
|
"image": "./img/tile-buying-guide.jpg",
|
|
1095
1117
|
"title": "Euramax Carolina 2 Sidelight Right Hand Hung uPVC White Door Set - 2085 x 1520mm",
|
|
1096
1118
|
"price": "968",
|
|
1119
|
+
"priceExcVat": "960",
|
|
1097
1120
|
"code": "121570",
|
|
1098
1121
|
"quantity": 1,
|
|
1099
1122
|
"total": "968",
|
|
1123
|
+
"totalExcVat": "960",
|
|
1100
1124
|
"deliveryStock": true,
|
|
1101
1125
|
"onlyDeliveryType": true
|
|
1102
1126
|
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
{
|
|
2
|
+
"my_orders": {
|
|
3
|
+
"nav": [
|
|
4
|
+
{
|
|
5
|
+
"title": "All orders",
|
|
6
|
+
"id": "",
|
|
7
|
+
"link": "#",
|
|
8
|
+
"isActive": true
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"title": "Processing",
|
|
12
|
+
"id": "processing",
|
|
13
|
+
"link": "#"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"title": "Complete",
|
|
17
|
+
"id": "complete",
|
|
18
|
+
"link": "#"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"title": "Cancelled",
|
|
22
|
+
"id": "cancelled",
|
|
23
|
+
"link": "#"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"orderList": [
|
|
27
|
+
{
|
|
28
|
+
"orderId": "940524222",
|
|
29
|
+
"orderTooltipText": "We try to plan efficient routes for all our deliveries. We are trying to get your order to you as quickly as we can, therefore your order may come in multiple vans",
|
|
30
|
+
"orderStatus": {
|
|
31
|
+
"statusTitle": "Created",
|
|
32
|
+
"statusIcon": "fas fa-check"
|
|
33
|
+
},
|
|
34
|
+
"totalPrice": "948.37",
|
|
35
|
+
"totalItemCount": 8,
|
|
36
|
+
"orderDate": "22nd January 2025 10:35 AM",
|
|
37
|
+
"totalConsignments": 5,
|
|
38
|
+
"shipmentDetails": [
|
|
39
|
+
{
|
|
40
|
+
"shipmentIcon": "fas fa-hand-holding-box",
|
|
41
|
+
"shipmentTitle": "Click & Collect at Southport Kitchens & Bathrooms Showroom",
|
|
42
|
+
"shipmentInfo": "Ready for Collection",
|
|
43
|
+
"itemsCount": 4
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"shipmentIcon": "fas fa-times",
|
|
47
|
+
"shipmentTitle": "Click & Collect at Wickes Long Eaton",
|
|
48
|
+
"shipmentInfo": "Cancelled",
|
|
49
|
+
"itemsCount": 4
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"shipmentIcon": "fas fa-shipping-fast",
|
|
53
|
+
"shipmentTitle": "Wickes Delivery from Ashford Store",
|
|
54
|
+
"shipmentInfo": "Dispatched. Delivery - 8th Jan 2025",
|
|
55
|
+
"itemsCount": 4,
|
|
56
|
+
"trackingLink": "/"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"shipmentIcon": "fas fa-shipping-fast",
|
|
60
|
+
"shipmentTitle": "Wickes Rapid Delivery from Southampton Store",
|
|
61
|
+
"shipmentInfo": "Dispatched. Delivery — within 3 hours",
|
|
62
|
+
"itemsCount": 4,
|
|
63
|
+
"trackingLink": "/"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"shipmentIcon": "fas fa-shipping-fast",
|
|
67
|
+
"shipmentTitle": "Supplier Delivery",
|
|
68
|
+
"shipmentInfo": "Dispatched. The supplier will be in contact with you after receiving order confirmation.",
|
|
69
|
+
"itemsCount": 4
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"orderId": "940524222",
|
|
75
|
+
"orderStatus": {
|
|
76
|
+
"statusTitle": "Processing",
|
|
77
|
+
"statusIcon": "fas fa-sync"
|
|
78
|
+
},
|
|
79
|
+
"totalPrice": "721.28",
|
|
80
|
+
"totalItemCount": 3,
|
|
81
|
+
"orderDate": "14th December 2025 10:35 AM",
|
|
82
|
+
"shipmentDetails": [
|
|
83
|
+
{
|
|
84
|
+
"shipmentIcon": "fas fa-shipping-fast",
|
|
85
|
+
"shipmentTitle": "Supplier Delivery",
|
|
86
|
+
"shipmentInfo": "Dispatched. The supplier will be in contact with you after receiving order confirmation.",
|
|
87
|
+
"itemsCount": 4
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"orderId": "940564923",
|
|
93
|
+
"orderStatus": {
|
|
94
|
+
"statusTitle": "Complete",
|
|
95
|
+
"statusClass": "completed",
|
|
96
|
+
"statusIcon": "fas fa-check-circle"
|
|
97
|
+
},
|
|
98
|
+
"totalPrice": "920.75",
|
|
99
|
+
"totalItemCount": 7,
|
|
100
|
+
"orderDate": "21st November 2024 4:32 PM"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"orderId": "940564923",
|
|
104
|
+
"orderStatus": {
|
|
105
|
+
"statusTitle": "Complete",
|
|
106
|
+
"statusClass": "completed",
|
|
107
|
+
"statusIcon": "fas fa-check-circle"
|
|
108
|
+
},
|
|
109
|
+
"totalPrice": "86.40",
|
|
110
|
+
"totalItemCount": 7,
|
|
111
|
+
"orderDate": "13th November 2024 11:13 PM"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"orderId": "940590031",
|
|
115
|
+
"orderStatus": {
|
|
116
|
+
"statusTitle": "Complete",
|
|
117
|
+
"statusClass": "completed",
|
|
118
|
+
"statusIcon": "fas fa-check-circle"
|
|
119
|
+
},
|
|
120
|
+
"totalPrice": "613.94",
|
|
121
|
+
"totalItemCount": 9,
|
|
122
|
+
"orderDate": "6th November 2024 9:57 PM"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"orderId": "940590023",
|
|
126
|
+
"orderStatus": {
|
|
127
|
+
"statusTitle": "Cancelled",
|
|
128
|
+
"statusClass": "cancelled",
|
|
129
|
+
"statusIcon": "far fa-times"
|
|
130
|
+
},
|
|
131
|
+
"totalPrice": "3.00",
|
|
132
|
+
"totalItemCount": 1,
|
|
133
|
+
"orderDate": "28th October 2024 7:29 AM"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"orderId": "940590023",
|
|
137
|
+
"orderStatus": {
|
|
138
|
+
"statusTitle": "Complete",
|
|
139
|
+
"statusClass": "completed",
|
|
140
|
+
"statusIcon": "fas fa-check-circle"
|
|
141
|
+
},
|
|
142
|
+
"totalPrice": "86.40",
|
|
143
|
+
"totalItemCount": 7,
|
|
144
|
+
"orderDate": "16th October 2024 12:27 AM"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"orderId": "940590023",
|
|
148
|
+
"orderStatus": {
|
|
149
|
+
"statusTitle": "Complete",
|
|
150
|
+
"statusClass": "completed",
|
|
151
|
+
"statusIcon": "fas fa-check-circle"
|
|
152
|
+
},
|
|
153
|
+
"totalPrice": "86.40",
|
|
154
|
+
"totalItemCount": 4,
|
|
155
|
+
"orderDate": "9th September 2024 6:01 PM"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"orderId": "940590023",
|
|
159
|
+
"orderStatus": {
|
|
160
|
+
"statusTitle": "Complete",
|
|
161
|
+
"statusClass": "completed",
|
|
162
|
+
"statusIcon": "fas fa-check-circle"
|
|
163
|
+
},
|
|
164
|
+
"totalPrice": "86.40",
|
|
165
|
+
"totalItemCount": 8,
|
|
166
|
+
"orderDate": "11th July 2024 11:10 AM"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"orderId": "940590023",
|
|
170
|
+
"orderStatus": {
|
|
171
|
+
"statusTitle": "Complete",
|
|
172
|
+
"statusClass": "completed",
|
|
173
|
+
"statusIcon": "fas fa-check-circle"
|
|
174
|
+
},
|
|
175
|
+
"totalPrice": "86.40",
|
|
176
|
+
"totalItemCount": 8,
|
|
177
|
+
"orderDate": "3rd April 2024 8:18 PM"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"breadcrumbs": [
|
|
181
|
+
{
|
|
182
|
+
"url": "/",
|
|
183
|
+
"text": "Home"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"url": "/page_my-account.html",
|
|
187
|
+
"text": "My Account"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"url": "/page_my-orders.html",
|
|
191
|
+
"text": "My Orders"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"menu": [
|
|
195
|
+
{
|
|
196
|
+
"icon": "fas fa-user",
|
|
197
|
+
"title": "My Account",
|
|
198
|
+
"link": "./page_my-account.html"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"icon": "fas fa-box-open",
|
|
202
|
+
"link": "./page_my-account_order-history.html",
|
|
203
|
+
"title": "My Orders",
|
|
204
|
+
"description": "View and manage your orders."
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"icon": "fas fa-address-card",
|
|
208
|
+
"link": "./page_personal-details.html",
|
|
209
|
+
"title": "Personal Details",
|
|
210
|
+
"description": "View and update your Personal Details."
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"icon": "fas fa-book",
|
|
214
|
+
"link": "./page_my-account_address-book.html",
|
|
215
|
+
"title": "Address Book",
|
|
216
|
+
"description": "Manage your delivery addresses."
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"icon": "fas fa-sliders-h",
|
|
220
|
+
"link": "./page_marketing-preferences.html",
|
|
221
|
+
"title": "Marketing Preferences",
|
|
222
|
+
"description": "Manage how you would like to receive the latest offers and deals."
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"icon": "fas fa-list",
|
|
226
|
+
"link": "./page_my-shopping-list.html",
|
|
227
|
+
"title": "Project Lists",
|
|
228
|
+
"description": "Save products to your project lists."
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"icon": "fas fa-warehouse",
|
|
232
|
+
"link": "#",
|
|
233
|
+
"title": "Default Store",
|
|
234
|
+
"description": "Set your default store."
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"emptyOrdersImage": "<svg width=\"124\" height=\"124\" viewBox=\"0 0 124 124\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_5587_28854)\">\n<path d=\"M19.8433 27.4639C20.3276 26.479 21.3933 25.9139 22.475 26.0592L62 30.9999L101.525 26.0592C102.607 25.9301 103.672 26.4952 104.157 27.4639L110.89 40.9295C112.343 43.8197 110.793 47.3233 107.693 48.2113L81.3105 55.7514C79.0662 56.3973 76.6604 55.4446 75.4657 53.4426L62 30.9999L48.5344 53.4426C47.3396 55.4446 44.9339 56.3973 42.6896 55.7514L16.3235 48.2113C13.2073 47.3233 11.6735 43.8197 13.1266 40.9295L19.8433 27.4639ZM62.1776 41.3332L71.0417 56.0905C73.4474 60.0946 78.2427 61.9999 82.7474 60.7082L103.333 54.8311V81.7947C103.333 85.3467 100.911 88.4467 97.4563 89.3186L64.5026 97.553C62.8558 97.9728 61.1282 97.9728 59.4974 97.553L26.5438 89.3186C23.0886 88.4306 20.6667 85.3306 20.6667 81.7785V54.815L41.2688 60.7082C45.7573 61.9999 50.5688 60.0946 52.9745 56.0905L61.8224 41.3332H62.1776Z\" fill=\"#004587\"/>\n<g clip-path=\"url(#clip1_5587_28854)\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M38 66V87.7032L62.0274 92.616L86.0759 87.6476V66H38Z\" fill=\"white\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M39.6035 67.5703V86.4138L62.0269 90.9884L84.4816 86.4117V67.5703H39.6035Z\" fill=\"#004587\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M60.7164 79.7241C60.7009 79.1944 60.2261 78.8236 59.7006 78.8236C58.5314 78.8236 58.3481 79.7994 58.3481 80.6674C58.3481 81.4747 58.7029 82.3067 59.5859 82.3067C60.3102 82.3067 60.677 81.8979 60.7758 81.2336H62.8049C62.617 82.9119 61.2887 83.8744 59.6 83.8744C57.6836 83.8744 56.2598 82.5868 56.2598 80.6674C56.2598 78.6757 57.5494 77.252 59.6 77.252C61.1797 77.252 62.5934 78.0755 62.7377 79.7241H60.7164Z\" fill=\"white\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M63.1621 75.0835H65.2501V79.5208L67.1552 77.4363H69.5712L67.2404 79.7995L69.8655 83.6943H67.3482L65.7933 81.1739L65.2501 81.6912V83.6943H63.1621V75.0835Z\" fill=\"white\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M71.3051 81.0636C71.3413 81.9186 71.8439 82.4872 72.7304 82.4872C73.2311 82.4872 73.7213 82.2595 73.9208 81.801H75.871C75.4907 83.2502 74.1259 83.8743 72.7022 83.8743C70.6311 83.8743 69.2168 82.6469 69.2168 80.5492C69.2168 78.6286 70.7792 77.252 72.6532 77.252C74.9356 77.252 76.0783 78.9429 75.9805 81.0636H71.3051ZM73.8914 79.9201C73.8558 79.2189 73.3515 78.6403 72.6515 78.6403C71.9158 78.6403 71.4258 79.1592 71.3034 79.9201H73.8914Z\" fill=\"white\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M78.148 81.6275C78.148 81.9459 78.278 82.1747 78.4905 82.3291C78.6851 82.4743 78.9673 82.5483 79.2635 82.5483C79.6688 82.5483 80.2469 82.3813 80.2469 81.8827C80.2469 81.3999 79.5941 81.3068 79.2281 81.2214C77.9117 80.8949 76.268 80.8545 76.268 79.1725C76.268 77.6665 77.9252 77.252 79.178 77.252C80.5787 77.252 82.036 77.6524 82.1114 79.2823H80.1826C80.1826 79.0137 80.0874 78.8467 79.9135 78.7345C79.7391 78.6284 79.5105 78.5763 79.252 78.5763C78.9064 78.5763 78.3569 78.6153 78.3569 79.0506C78.3569 79.6408 79.7549 79.7493 80.7136 79.9521C81.9982 80.2071 82.3327 81.1228 82.3327 81.6436C82.3327 83.3226 80.7136 83.8743 79.2759 83.8743C77.7642 83.8743 76.218 83.3822 76.1562 81.6275H78.148Z\" fill=\"white\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M51.1111 83.6943H48.8234L47.6239 77.7625H47.5955L46.3959 83.6943H44.0785L41.709 75.0835H43.9885L45.2332 81.3756H45.2542L46.5412 75.0835H48.6881L49.9783 81.3756H50.0024L51.2423 75.0835H53.5241L51.1111 83.6943Z\" fill=\"white\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M53.6875 76.6518H55.7776V75.083H53.6875V76.6518ZM53.6875 83.694H55.7776V77.4358H53.6875V83.694Z\" fill=\"white\"/>\n</g>\n</g>\n<defs>\n<clipPath id=\"clip0_5587_28854\">\n<rect width=\"124\" height=\"124\" fill=\"white\"/>\n</clipPath>\n<clipPath id=\"clip1_5587_28854\">\n<rect width=\"48\" height=\"26.6139\" fill=\"white\" transform=\"translate(38 66)\"/>\n</clipPath>\n</defs>\n</svg>\n",
|
|
238
|
+
"emptyOrders": {
|
|
239
|
+
"title": "Place your first order",
|
|
240
|
+
"btnTitle": "Explore offers"
|
|
241
|
+
},
|
|
242
|
+
"emptyCategory": {
|
|
243
|
+
"title": "No orders available"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</option>
|
|
11
11
|
{{/each}}
|
|
12
12
|
{{else}}
|
|
13
|
-
<option value="" disabled selected hidden>{{placeholder}}</option>
|
|
13
|
+
<option value="item0" disabled selected hidden>{{placeholder}}</option>
|
|
14
14
|
<option value="item1">Item value</option>
|
|
15
15
|
<option value="item2">Item value 2</option>
|
|
16
16
|
<option value="item3">Item value 3</option>
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
var Wick = window.Wick || {};
|
|
2
|
+
|
|
3
|
+
Wick.Flatpickr = {
|
|
4
|
+
el: {
|
|
5
|
+
$crossIcon: $("#crossIcon"),
|
|
6
|
+
$calendarIcon: $("#calendarIcon"),
|
|
7
|
+
flatpickrDisabled: '.flatpickr-disabled',
|
|
8
|
+
datePickerField: '.flatpickr-datepicker__field',
|
|
9
|
+
},
|
|
10
|
+
generateInitialDisabledMonths(year, startMonth) {
|
|
11
|
+
const today = new Date();
|
|
12
|
+
const currentYear = today.getFullYear();
|
|
13
|
+
const currentMonth = today.getMonth();
|
|
14
|
+
|
|
15
|
+
if (year === currentYear) {
|
|
16
|
+
return Array.from({ length: 12 - currentMonth - 1 }, (_, i) =>
|
|
17
|
+
new Date(year, currentMonth + 1 + i, 1)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return [];
|
|
22
|
+
},
|
|
23
|
+
handleYearChange(instance, minYear, currentYear, currentMonth) {
|
|
24
|
+
const selectedYear = instance.currentYear;
|
|
25
|
+
|
|
26
|
+
if (selectedYear > currentYear) {
|
|
27
|
+
instance.changeYear(currentYear);
|
|
28
|
+
} else if (selectedYear < minYear) {
|
|
29
|
+
instance.changeYear(minYear);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
Wick.Flatpickr.updateDisabledMonths(instance, selectedYear, currentMonth, currentYear);
|
|
33
|
+
},
|
|
34
|
+
updateDisabledMonths(instance, year, month) {
|
|
35
|
+
const disabledMonths = Wick.Flatpickr.generateInitialDisabledMonths(year, month);
|
|
36
|
+
instance.set("disable", disabledMonths);
|
|
37
|
+
},
|
|
38
|
+
bindClearIcon(instance, $field) {
|
|
39
|
+
if ($field.val().trim() !== "") {
|
|
40
|
+
Wick.Flatpickr.el.$crossIcon.removeClass("d-none").addClass("d-flex");
|
|
41
|
+
} else {
|
|
42
|
+
Wick.Flatpickr.el.$crossIcon.removeClass("d-flex").addClass("d-none");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
Wick.Flatpickr.el.$crossIcon.on("click", function () {
|
|
46
|
+
instance.clear();
|
|
47
|
+
instance.setDate(null);
|
|
48
|
+
$field.val("");
|
|
49
|
+
Wick.Flatpickr.el.$crossIcon.hide();
|
|
50
|
+
instance.open();
|
|
51
|
+
instance.close();
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
$field.on("input", function () {
|
|
55
|
+
if ($field.val().trim() === "") {
|
|
56
|
+
Wick.Flatpickr.el.$crossIcon.removeClass("d-flex").addClass("d-none");
|
|
57
|
+
} else {
|
|
58
|
+
Wick.Flatpickr.el.$crossIcon.removeClass("d-none").addClass("d-flex");
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
bindCalendarIcon(instance) {
|
|
63
|
+
Wick.Flatpickr.el.$calendarIcon.on("click", function () {
|
|
64
|
+
instance.open();
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
formatDateToYYYYMM(date) {
|
|
68
|
+
const newDate = new Date(date);
|
|
69
|
+
const year = newDate.getFullYear();
|
|
70
|
+
const month = String(newDate.getMonth() + 1).padStart(2, "0");
|
|
71
|
+
return `${year}-${month}`;
|
|
72
|
+
},
|
|
73
|
+
getFlatpickrConfig(config) {
|
|
74
|
+
const today = new Date();
|
|
75
|
+
const chooseDate = config.chooseDate
|
|
76
|
+
? new Date(config.chooseDate)
|
|
77
|
+
: null;
|
|
78
|
+
const currentYear = config.currentYear || today.getFullYear();
|
|
79
|
+
const currentMonth = chooseDate ? chooseDate.getMonth() : today.getMonth();
|
|
80
|
+
const minYear = config.minYear || currentYear - 15;
|
|
81
|
+
|
|
82
|
+
const minDate = new Date(minYear, 0, 1);
|
|
83
|
+
const maxDate = new Date(`${currentYear}-12-31`);
|
|
84
|
+
|
|
85
|
+
const initialDisabledMonths = Wick.Flatpickr.generateInitialDisabledMonths(
|
|
86
|
+
today.getFullYear(),
|
|
87
|
+
currentMonth
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
dateFormat: config.dateFormat || "F Y",
|
|
92
|
+
enableTime: false,
|
|
93
|
+
static: config.static || true,
|
|
94
|
+
defaultDate: chooseDate || null,
|
|
95
|
+
placeholder: "Select year and month",
|
|
96
|
+
minDate,
|
|
97
|
+
maxDate,
|
|
98
|
+
disable: initialDisabledMonths,
|
|
99
|
+
plugins: [
|
|
100
|
+
new monthSelectPlugin({
|
|
101
|
+
shorthand: false,
|
|
102
|
+
dateFormat: config.dateFormat || "F Y",
|
|
103
|
+
theme: "light",
|
|
104
|
+
}),
|
|
105
|
+
],
|
|
106
|
+
onYearChange: (selectedDates, dateStr, instance) => {
|
|
107
|
+
Wick.Flatpickr.handleYearChange(
|
|
108
|
+
instance,
|
|
109
|
+
minYear,
|
|
110
|
+
currentYear,
|
|
111
|
+
currentMonth
|
|
112
|
+
);
|
|
113
|
+
},
|
|
114
|
+
onMonthChange: (selectedDates, dateStr, instance) => {
|
|
115
|
+
Wick.Flatpickr.updateDisabledMonths(
|
|
116
|
+
instance,
|
|
117
|
+
currentYear,
|
|
118
|
+
currentMonth
|
|
119
|
+
);
|
|
120
|
+
},
|
|
121
|
+
onReady: (selectedDates, dateStr, instance) => {
|
|
122
|
+
Wick.Flatpickr.updateDisabledMonths(
|
|
123
|
+
instance,
|
|
124
|
+
currentYear,
|
|
125
|
+
currentMonth
|
|
126
|
+
);
|
|
127
|
+
},
|
|
128
|
+
onOpen: (selectedDates, dateStr, instance) => {
|
|
129
|
+
$(Wick.Flatpickr.el.datePickerField).addClass('active');
|
|
130
|
+
},
|
|
131
|
+
onClose: (selectedDates, dateStr, instance) => {
|
|
132
|
+
$(Wick.Flatpickr.el.datePickerField).removeClass("active");
|
|
133
|
+
$(Wick.Flatpickr.el.flatpickrDisabled).removeClass("flatpickr-disabled");
|
|
134
|
+
|
|
135
|
+
if (selectedDates.length > 0) {
|
|
136
|
+
const selectedDate = selectedDates[0];
|
|
137
|
+
const selectedYear = selectedDate.getFullYear();
|
|
138
|
+
const selectedMonth = selectedDate.getMonth();
|
|
139
|
+
instance.currentYear = selectedYear;
|
|
140
|
+
instance.currentMonth = selectedMonth;
|
|
141
|
+
|
|
142
|
+
Wick.Flatpickr.updateDisabledMonths(instance, selectedYear, selectedMonth);
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
onChange: (selectedDates, dateStr) => {
|
|
146
|
+
const { onChangeCallback } = config;
|
|
147
|
+
if (typeof onChangeCallback === "function") {
|
|
148
|
+
const formattedDate = Wick.Flatpickr.formatDateToYYYYMM(selectedDates[0]);
|
|
149
|
+
onChangeCallback(formattedDate);
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
init(config) {
|
|
155
|
+
const $field = $(config.id);
|
|
156
|
+
|
|
157
|
+
if (!$field.length) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const flatpickrConfig = Wick.Flatpickr.getFlatpickrConfig(config);
|
|
162
|
+
const flatpickrInstance = flatpickr(config.id, flatpickrConfig);
|
|
163
|
+
|
|
164
|
+
Wick.Flatpickr.bindClearIcon(flatpickrInstance, $field);
|
|
165
|
+
Wick.Flatpickr.bindCalendarIcon(flatpickrInstance);
|
|
166
|
+
},
|
|
167
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var Wick = Wick || {};
|
|
2
|
+
|
|
3
|
+
Wick.HandleAccordions = {
|
|
4
|
+
el: {
|
|
5
|
+
$body: $('body'),
|
|
6
|
+
$accordions: $(".account-nav .accordion"),
|
|
7
|
+
accordionContent: '.accordion__content',
|
|
8
|
+
accordionHeader: '.accordion__header',
|
|
9
|
+
accordionCollapsed: 'accordion_collapsed',
|
|
10
|
+
},
|
|
11
|
+
handleOutsideClick() {
|
|
12
|
+
document.addEventListener("click", function (event) {
|
|
13
|
+
Wick.HandleAccordions.el.$accordions.each(function () {
|
|
14
|
+
const $accordion = $(this);
|
|
15
|
+
const $content = $accordion.find(Wick.HandleAccordions.el.accordionContent);
|
|
16
|
+
const $toggle = $accordion.find(Wick.HandleAccordions.el.accordionHeader);
|
|
17
|
+
|
|
18
|
+
const toggleButton = $toggle[0];
|
|
19
|
+
const content = $content[0];
|
|
20
|
+
|
|
21
|
+
if (!toggleButton || !content) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (!toggleButton.contains(event.target) && !content.contains(event.target)) {
|
|
26
|
+
if ($content.is(":visible")) {
|
|
27
|
+
$content.hide();
|
|
28
|
+
$accordion.addClass(Wick.HandleAccordions.el.accordionCollapsed);
|
|
29
|
+
$accordion.attr("aria-expanded", "false");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -21,4 +21,18 @@ $(document).ready(function () {
|
|
|
21
21
|
if (navigator.userAgent.match(/TradeProMobile_iOS|TradeProMobile_Android|DIYMobile_iOS|DIYMobile_Android/i)) {
|
|
22
22
|
$('body').addClass('tp-app');
|
|
23
23
|
}
|
|
24
|
-
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
$(function() {
|
|
27
|
+
if (Wick.isTradeProAndroid) {
|
|
28
|
+
$('body').addClass('tp-android');
|
|
29
|
+
}
|
|
30
|
+
if (Wick.isTradeProiOS) {
|
|
31
|
+
$('body').addClass('tp-ios');
|
|
32
|
+
if (
|
|
33
|
+
window.matchMedia('(min-width: 768px)').matches
|
|
34
|
+
) {
|
|
35
|
+
$('body').addClass('tp-ios-notch');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -43,7 +43,7 @@ Wick.BasketData = (function () {
|
|
|
43
43
|
"status": 400,
|
|
44
44
|
"responseJSON": {
|
|
45
45
|
"globalMessage": {
|
|
46
|
-
"message": "Delivery is already free
|
|
46
|
+
"message": "Delivery is already free.\nCoupon can’t be applied."
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
},
|
|
@@ -444,7 +444,7 @@ Wick.BasketData = (function () {
|
|
|
444
444
|
"appliedOrderPromotions": [],
|
|
445
445
|
"promotionsInfo": null,
|
|
446
446
|
"clickAndCollectOnly": true,
|
|
447
|
-
"deliveryItemsQuantity":
|
|
447
|
+
"deliveryItemsQuantity": 1,
|
|
448
448
|
"pickupItemsQuantity": 2,
|
|
449
449
|
"freeDelivery": false,
|
|
450
450
|
"subtotalWithoutCharity": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
|