wickes-css2 2.98.0-develop.6 → 2.98.0-develop.8

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.
Files changed (73) hide show
  1. package/Readme.md +0 -1
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/components/energy-efficiency.css +1 -1
  4. package/build/css/components/legal-info.css +1 -1
  5. package/build/css/homepage-main.css +1 -1
  6. package/build/css/main.css +1 -1
  7. package/build/css/my-account-main-v2.css +1 -1
  8. package/build/css/my-account-main.css +1 -1
  9. package/build/css/pages/my-account-v2.css +1 -1
  10. package/build/css/pages/page_quiz.css +1 -1
  11. package/build/css/pages/page_track-my-order.css +1 -1
  12. package/build/css/pdp-main-before-combine.css +1 -1
  13. package/build/css/pdp-main-critical.css +1 -1
  14. package/build/css/pdp-main-non-critical.css +1 -1
  15. package/build/css/pdp-main.css +1 -1
  16. package/build/css/plp-main.css +1 -1
  17. package/build/css/store-locator-main.css +1 -1
  18. package/build/js/basket.min.js +1 -1
  19. package/build/js/bundle.min.js +1 -1
  20. package/build/js/checkout.min.js +1 -1
  21. package/build/js/emulation.min.js +32 -106
  22. package/build/js/general.bundle.min.js +1 -1
  23. package/build/js/merged-checkout.min.js +1 -1
  24. package/build/js/page/pdp.js +1 -4
  25. package/build/js/pdp.bundle.min.js +1 -1
  26. package/build/js/plp.bundle.min.js +1 -1
  27. package/build/js/project-list.min.js +1 -1
  28. package/package.json +2 -2
  29. package/src/components/checkout_order-summary-new.hbs +13 -18
  30. package/src/components/header-minicart.hbs +3 -3
  31. package/src/components/legal-info.hbs +25 -22
  32. package/src/components/my-account/saving-totaliser.hbs +52 -0
  33. package/src/components/pdp-price-actions.hbs +1 -1
  34. package/src/components/price-block-v2.hbs +1 -0
  35. package/src/components/track-my-order-info.hbs +3 -1
  36. package/src/data/data_confirmation-summary.json +3 -3
  37. package/src/data/data_latest-offers.json +1 -1
  38. package/src/data/data_mini-basket.json +6 -80
  39. package/src/data/data_page-category.json +1 -2
  40. package/src/data/data_page-merge-basket.json +1 -1
  41. package/src/data/data_store-locator-v2.json +1 -1
  42. package/src/js/emulation/big-wins.js +29 -29
  43. package/src/js/emulation/mock.js +1 -46
  44. package/src/js/emulation/popover-mini-basket.js +2 -2
  45. package/src/js/page/pdp.js +1 -4
  46. package/src/layouts/base.hbs +0 -6
  47. package/src/layouts/my-account-v2.hbs +0 -7
  48. package/src/page_my-account-trade-pro-components.html +27 -0
  49. package/src/page_my-account-trade-pro.html +7 -0
  50. package/src/page_product-details-saved-pl.html +13 -16
  51. package/src/page_product-details-with-global-search-v2.html +0 -1
  52. package/src/scss/common/_scroll-disable.scss +2 -4
  53. package/src/scss/components/legal-info.scss +0 -61
  54. package/src/scss/components/my-account/_saving-totaliser.scss +175 -0
  55. package/src/scss/globals/_global-components.scss +0 -1
  56. package/src/scss/helpers/_mixins.scss +0 -8
  57. package/src/scss/helpers/_variables.scss +0 -1
  58. package/src/scss/homepage-main.scss +0 -1
  59. package/src/scss/main.scss +0 -1
  60. package/src/scss/pages/my-account-v2.scss +1 -0
  61. package/src/scss/pages/page_track-my-order.scss +0 -21
  62. package/src/scss/partials/_header-critical.scss +0 -14
  63. package/src/scss/partials/_header.scss +0 -14
  64. package/src/sitemap.html +1 -0
  65. package/src/components/mini-basket/mini-basket-empty.hbs +0 -17
  66. package/src/components/mini-basket/mini-basket.hbs +0 -39
  67. package/src/components/mini-basket/product-item.hbs +0 -22
  68. package/src/js/components/general/backdrop.js +0 -23
  69. package/src/js/components/general/cart-slider.js +0 -16
  70. package/src/js/components/general/create-popup-slider.js +0 -196
  71. package/src/js/components/general/mini-basket-slider.js +0 -8
  72. package/src/js/emulation/custom-slider-emulation.js +0 -28
  73. package/src/scss/components/_custom-slider.scss +0 -512
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.98.0-develop.6",
3
+ "version": "2.98.0-develop.8",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -108,7 +108,7 @@
108
108
  "branches": [
109
109
  "alt-master",
110
110
  {
111
- "name": "custom-tag/0.3.0-legends",
111
+ "name": "develop",
112
112
  "prerelease": "${name.replace(/^custom-tag\\//g, '')}"
113
113
  }
114
114
  ],
@@ -18,26 +18,21 @@
18
18
  </li>
19
19
  {{/each}}
20
20
  {{/if}}
21
- {{#unless hideApplyVoucher}}
22
- {{> checkout-voucher-accordion id=id}}
23
- {{/unless}}
21
+ {{> checkout-voucher-accordion id=id}}
24
22
  {{#if discounts}}
25
23
  <li class="checkout-widget__accordion-wrap checkout-widget__details-discount">
26
- <span
27
- class="checkout-widget__detail-name checkout-widget__detail-name_accordion collapsed"
28
- data-toggle="collapse"
29
- data-target="#acheckout-widget-accordion-{{id}}">
30
- Discount(s):
31
- <span class="icon accordion__header-icon-small">
32
- <i class="fas fa-angle-up"></i>
33
- </span>
34
- </span>
35
- <ul class="checkout-widget__details-hidden collapse" id="acheckout-widget-accordion-{{id}}">
36
- {{#each discounts}}
37
- {{> cart-voucher}}
38
- {{/each}}
39
- </ul>
40
- <span class="checkout-widget__detail-value">£0.00</span>
24
+ <span class="checkout-widget__detail-name checkout-widget__detail-name_accordion collapsed" data-toggle="collapse"
25
+ data-target="#acheckout-widget-accordion-{{id}}">Discount(s):
26
+ <span class="icon accordion__header-icon-small">
27
+ <i class="fas fa-angle-up"></i>
28
+ </span>
29
+ </span>
30
+ <ul class="checkout-widget__details-hidden collapse" id="acheckout-widget-accordion-{{id}}">
31
+ {{#each discounts}}
32
+ {{> cart-voucher}}
33
+ {{/each}}
34
+ </ul>
35
+ <span class="checkout-widget__detail-value">£0.00</span>
41
36
  </li>
42
37
  {{/if}}
43
38
  </ul>
@@ -6,12 +6,12 @@
6
6
  </span>
7
7
  <span class="header-right__link-title">Basket</span>
8
8
  </span>
9
- <button type="button" class="header-right__link header-minicart__btn header-minicart__btn_link" style="display: none;">
9
+ <a href="page_shopping-cart.html" class="header-right__link header-minicart__btn header-minicart__btn_link" style="display: none;">
10
10
  <span class="btn__text">
11
11
  <i class="fas fa-shopping-basket fa-2x"></i>
12
12
  </span>
13
13
  <span class="header-right__link-title">Basket</span>
14
- </button>
14
+ </a>
15
15
  </div>
16
16
  <span class="header-minicart__counter">0</span>
17
- </div>
17
+ </div>
@@ -1,24 +1,27 @@
1
- <div class="container">
2
- <div class="row">
3
- <div class="col-12">
4
- <div class="legal-info">
5
- <h3 class="legal-info__toggle" data-toggle="collapse" data-target="#collapseInfo" aria-expanded="false" aria-controls="collapseInfo">
6
- {{#if customTitle}}
7
- {{customTitle}}
8
- {{else}}
9
- Frequently Asked Questions
10
- {{/if}}
11
- <span class="icon-wrap"></span>
12
- </h3>
13
-
14
- <div class="collapse" id="collapseInfo">
15
- <div class="collapse-wrap">
16
- <div class="container">
17
- {{{page_category-landing.legal-info}}}
18
- </div>
19
- </div>
1
+ <div class="legal-info container">
2
+ <div class="row">
3
+ <div class="col-lg-3"></div>
4
+ <div class="col-lg-9">
5
+ <p>
6
+ Terms and conditions Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
7
+ incididunt ut labore et dolore
8
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
9
+ commodo
10
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
11
+ pariatur.
12
+ Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
13
+ laborum.
14
+ </p>
15
+ <p>
16
+ Terms and conditions Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
17
+ incididunt ut labore et dolore
18
+ magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
19
+ commodo
20
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
21
+ pariatur.
22
+ Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
23
+ laborum.
24
+ </p>
20
25
  </div>
21
- </div>
22
26
  </div>
23
- </div>
24
- </div>
27
+ </div>
@@ -0,0 +1,52 @@
1
+ <div class="saving-totaliser {{#if this-last-year}}saving-totaliser--this-last-year{{/if}} {{#if this-year-only}}saving-totaliser--this-year-only{{/if}} {{#if no-savings}}saving-totaliser--no-savings{{/if}}">
2
+ <div class="saving-totaliser__title heading-3">Your TradePro savings</div >
3
+ <div class="saving-totaliser__wrapper">
4
+ <div class="saving-totaliser__cell">
5
+ <div class="saving-totaliser__saved">
6
+ <div class="saving-totaliser__cell-title saving-totaliser__saving-title">Since joining TradePro you've saved</div>
7
+ <div class="heading-1">{{#if no-savings}}£0.00{{else}}£3,920.37{{/if}}</div>
8
+ </div>
9
+ <div class="saving-totaliser__encourage">
10
+ {{#unless no-savings}}
11
+ <div>
12
+ <div class="saving-totaliser__attencion heading-2">Impressive!</div>
13
+ <div>Continue shopping with us to save even more.</div>
14
+ </div>
15
+ {{else}}
16
+ <div>
17
+ <div class="saving-totaliser__attencion heading-2">Looks like you've not used your discount yet. </div>
18
+ <div>Start shopping with us to start your building your TradePro savings.</div>
19
+ <a href="#" class="btn btn-primary">
20
+ <span class="btn__text">Explore offers</span>
21
+ </a>
22
+ </div>
23
+ {{/unless}}
24
+ </div>
25
+ <div class="saving-totaliser__saving-icon icon">
26
+ <i class="fas fa-piggy-bank"></i>
27
+ </div>
28
+ </div>
29
+ {{#unless no-savings}}
30
+ <div class="saving-totaliser__wrapper2">
31
+ <div class="saving-totaliser__cell">
32
+ <div class="saving-totaliser__cell-title heading-5">This month</div>
33
+ <div class="mb-0 heading-3">£18.43</div>
34
+ </div>
35
+ <div class="saving-totaliser__cell saving-totaliser__split-cell">
36
+ <div class="saving-totaliser__semi-cell">
37
+ <div class="saving-totaliser__cell-title heading-5">This year</div>
38
+ <div class="mb-0 heading-3">£471.34</div>
39
+ </div>
40
+ {{#unless this-year-only}}
41
+ <div class="saving-totaliser__divider"></div>
42
+ <div class="saving-totaliser__semi-cell">
43
+ <div class="saving-totaliser__cell-title heading-5">Last year</div>
44
+ <div class="mb-0 heading-3">£2,381.10</div>
45
+ </div>
46
+ {{/unless}}
47
+ </div>
48
+ </div>
49
+ {{/unless}}
50
+ </div>
51
+ <div class="saving-totaliser__note">Savings are calculated from the verification date of your TradePro account and are based on your TradePro Discount for online orders only.</div>
52
+ </div>
@@ -83,4 +83,4 @@
83
83
  <span class="btn__text">Order Paint Mix</span>
84
84
  </button>
85
85
  </div>
86
- {{/if}}
86
+ {{/if}}
@@ -194,6 +194,7 @@
194
194
  big-wins=big-wins
195
195
  wisdom=wisdom
196
196
  mcfc=mcfc
197
+ paint-mix=true
197
198
  available=available
198
199
  stock-accordion="stock-accordion"
199
200
  isUserNonRegistered=isUserNonRegistered
@@ -1,7 +1,9 @@
1
1
  <div class="order-info">
2
2
  <h3 class="order-info__toggle" data-toggle="collapse" data-target="#collapseInfo" aria-expanded="false" aria-controls="collapseInfo">
3
3
  {{title}}
4
- <span class="icon-wrap"></span>
4
+ <span class="icon-wrap">
5
+ <i class="fas fa-plus icon"></i>
6
+ </span>
5
7
  </h3>
6
8
 
7
9
  <div class="collapse" id="collapseInfo">
@@ -2,12 +2,12 @@
2
2
  "confirmation-summary": {
3
3
  "info": [
4
4
  {
5
- "title": "Items subtotal:",
5
+ "title": "Items Subtotal:",
6
6
  "value": "£44.44",
7
7
  "mod": "bold"
8
8
  },
9
9
  {
10
- "title": "VAT:",
10
+ "title": "Includes VAT:",
11
11
  "value": "£71.66",
12
12
  "mod": "vat"
13
13
  },
@@ -21,7 +21,7 @@
21
21
  "mod": "delivery"
22
22
  },
23
23
  {
24
- "title": "Charity donation:",
24
+ "title": "Young Minds donation:",
25
25
  "value": "£1.00"
26
26
  }
27
27
  ],
@@ -2409,4 +2409,4 @@
2409
2409
  ]
2410
2410
  }
2411
2411
  }
2412
- }
2412
+ }
@@ -11,8 +11,7 @@
11
11
  "price": "£2,009.00",
12
12
  "incVatPrice": "£30.00",
13
13
  "excVatPrice": "£10.00",
14
- "lower-quantity": true,
15
- "CC": "East Grinstead"
14
+ "lower-quantity": true
16
15
  },
17
16
  {
18
17
  "quantity": {
@@ -32,77 +31,9 @@
32
31
  "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
33
32
  "src": "img/placeholders/[e-img-4to3].jpg",
34
33
  "price": "£2,009.00",
35
- "incVatPrice": "£309.00",
36
- "excVatPrice": "£109.00",
37
- "bad-amount": true
38
- },
39
- {
40
- "quantity": {
41
- "value": "1"
42
- },
43
- "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
44
- "src": "img/placeholders/tap.jpg",
45
- "price": "£2,009.00",
46
- "incVatPrice": "£30.00",
47
- "excVatPrice": "£10.00",
48
- "lower-quantity": true,
49
- "CC": "East Grinstead"
50
- },
51
- {
52
- "quantity": {
53
- "value": "1"
54
- },
55
- "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
56
- "src": "img/placeholders/[e-img-4to3].jpg",
57
- "price": "£2,009.00",
58
- "incVatPrice": "£309.00",
59
- "excVatPrice": "£109.00",
60
- "bad-amount": true
61
- },
62
- {
63
- "quantity": {
64
- "value": "1"
65
- },
66
- "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
67
- "src": "img/placeholders/[e-img-4to3].jpg",
68
- "price": "£2,009.00",
69
- "incVatPrice": "£309.00",
70
- "excVatPrice": "£109.00",
71
- "bad-amount": true
72
- },
73
- {
74
- "quantity": {
75
- "value": "1"
76
- },
77
- "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
78
- "src": "img/placeholders/tap.jpg",
79
- "price": "£2,009.00",
80
- "incVatPrice": "£30.00",
81
- "excVatPrice": "£10.00",
82
- "lower-quantity": true,
83
- "CC": "East Grinstead"
84
- },
85
- {
86
- "quantity": {
87
- "value": "1"
88
- },
89
- "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
90
- "src": "img/placeholders/[e-img-4to3].jpg",
91
- "price": "£2,009.00",
92
- "incVatPrice": "£309.00",
93
- "excVatPrice": "£109.00",
94
- "bad-amount": true
95
- },
96
- {
97
- "quantity": {
98
- "value": "1"
99
- },
100
- "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
101
- "src": "img/placeholders/[e-img-4to3].jpg",
102
- "price": "£2,009.00",
103
- "incVatPrice": "£309.00",
104
- "excVatPrice": "£109.00",
105
- "bad-amount": true
34
+ "incVatPrice": "£3,009.00",
35
+ "excVatPrice": "£1,009.00",
36
+ "basket-product": true
106
37
  }
107
38
  ],
108
39
  "just-added": [
@@ -117,11 +48,6 @@
117
48
  "excVatPrice": "£1,009.00",
118
49
  "basket-product": true
119
50
  }
120
- ],
121
- "total": {
122
- "totalPrice": {
123
- "formattedValue": "£17.50"
124
- }
125
- }
51
+ ]
126
52
  }
127
- }
53
+ }
@@ -217,7 +217,6 @@
217
217
  }
218
218
  ]
219
219
  }
220
- ],
221
- "legal-info": "<p>Our selection of toilets is crafted to suit a wide range of <a href=\"https://www.wickes.co.uk/bathroom/suites\">bathroom suites</a>, from compact cloakrooms to spacious bathrooms. With our large selection, you’ll easily find a solution for both modern and traditional spaces. Each toilet is built for efficiency and easy maintenance, helping you achieve a stylish, functional bathroom with a range of finishes and shapes.</p>\n<h3>FAQs</h3>\n<h4>What are the different types of toilets?</h4>\n<p>Different toilet types include close-coupled, back-to-wall, rimless, wall-hung, and <a href=\"https://www.wickes.co.uk/Products/Bathrooms/Toilets+Accessories/Low+High-Level-Toilets/c/1000359\">high and low-level toilets</a>. Each has unique installation and style benefits, suitable for various bathroom sizes and styles.</p>\n<h4>What toilets suit a modern bathroom?</h4>\n<p>Rimless, wall-hung and <a href=\"https://www.wickes.co.uk/Products/Bathrooms/Toilets+Accessories/Back-to-Wall-Toilets/c/1000282\">back-to-wall toilets</a> fit well in modern bathrooms. Their sleek designs and efficient features offer a clean, contemporary look.</p>\n<h4>What toilets look best in a traditional bathroom?</h4>\n<p>High-level and low-level toilets are popular in traditional designs, adding elegance and classic style with vintage-inspired cisterns and details.</p>"
220
+ ]
222
221
  }
223
222
  }
@@ -110,7 +110,7 @@
110
110
  "energyEfficiency": {
111
111
  "type": "Old",
112
112
  "rating": "C",
113
- "linkProduct": "https://media.wickes.co.uk/image/upload/v1676542815/documents/wickes/Product-Info-Example_qj5mln.pdf"
113
+ "linkProduct": "https://media.wickes.co.uk/image/upload/v1676542815/documents/wickes/Product-Info-Example_qj5mln.pdf",
114
114
  }
115
115
  },
116
116
  {
@@ -8,7 +8,7 @@
8
8
  "telephone": "01872 6511 101",
9
9
  "fax": "01872 6511 101",
10
10
  "sat-nav": "X11 1TT",
11
- "store-info": "Maecenas nisl leo, consectetur a lacus eu, lacinia tincidunt elit. Suspendisse bibendum molestie lectus sit amet vehicula. Vestibulum in nisi at felis finibus maximus. Fusce placerat viverra semper. Sed in nulla quis neque commodo faucibus a ut eros."
11
+ "store-info": "Maecenas nisl leo, consectetur a lacus eu, lacinia tincidunt elit. Suspendisse bibendum molestie lectus sit amet vehicula. Vestibulum in nisi at felis finibus maximus. Fusce placerat viverra semper. Sed in nulla quis neque commodo faucibus a ut eros.",
12
12
  },
13
13
  "accordion-data": [
14
14
  {
@@ -612,35 +612,35 @@ Wick.BigWinsProto = function () {
612
612
  $temp.remove();
613
613
  });
614
614
 
615
- // bwVar.$addForDelivery.on('click', function () {
616
- // Wick.SnackBar.show(
617
- // {
618
- // text: 'Notification success message for Delivery with Close Btn',
619
- // type: Wick.SnackBar.types.SUCCESS
620
- // }
621
- // );
622
- // Wick.SnackBar.show(
623
- // {
624
- // text: 'Notification warning message for Delivery with Close Btn',
625
- // type: Wick.SnackBar.types.WARNING
626
- // }
627
- // );
628
- // Wick.SnackBar.show(
629
- // {
630
- // text: 'Notification error message for Delivery with Close Btn',
631
- // type: Wick.SnackBar.types.ERROR
632
- // }
633
- // );
634
- // Wick.SnackBar.show(
635
- // {
636
- // text: 'Notification success message for Delivery with Autoclose',
637
- // type: Wick.SnackBar.types.SUCCESS,
638
- // withCloseButton: false,
639
- // autoClose: true,
640
- // delayBeforeClose: 3000
641
- // }
642
- // );
643
- // });
615
+ bwVar.$addForDelivery.on('click', function () {
616
+ Wick.SnackBar.show(
617
+ {
618
+ text: 'Notification success message for Delivery with Close Btn',
619
+ type: Wick.SnackBar.types.SUCCESS
620
+ }
621
+ );
622
+ Wick.SnackBar.show(
623
+ {
624
+ text: 'Notification warning message for Delivery with Close Btn',
625
+ type: Wick.SnackBar.types.WARNING
626
+ }
627
+ );
628
+ Wick.SnackBar.show(
629
+ {
630
+ text: 'Notification error message for Delivery with Close Btn',
631
+ type: Wick.SnackBar.types.ERROR
632
+ }
633
+ );
634
+ Wick.SnackBar.show(
635
+ {
636
+ text: 'Notification success message for Delivery with Autoclose',
637
+ type: Wick.SnackBar.types.SUCCESS,
638
+ withCloseButton: false,
639
+ autoClose: true,
640
+ delayBeforeClose: 3000
641
+ }
642
+ );
643
+ });
644
644
 
645
645
  bwVar.$addClickAndCollect.on('click', function (e) {
646
646
  e.stopPropagation();
@@ -20,50 +20,5 @@ Wick.FEMock = {
20
20
  "page": 2,
21
21
  "html": '<article class="active-orders__item"><header class="order-header"><h3 class="order-header__title">Order 940564001</h3><div class="order-status completed"><svg class="svg-inline--fa fa-check-circle fa-w-16 icon" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check-circle" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path></svg><span>Complete</span></div></header><section class="order-details"><div class="order-details__summary"><span class="order-details__price">£92.75</span> <span class="order-details__count">7 item(s)</span></div><time class="order-details__date" datetime="21st November 2024 4:32 PM">21st November 2024 4:32 PM</time></section><div class="view-more"><a class="link" href="/"><span>View More</span> <svg class="svg-inline--fa fa-arrow-right fa-w-14 icon" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" data-fa-i2svg=""><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg></a></div></article><article class="active-orders__item"><header class="order-header"><h3 class="order-header__title">Order 940520002</h3><div class="order-status cancelled"><svg class="svg-inline--fa fa-times fa-w-10 icon" aria-hidden="true" focusable="false" data-prefix="far" data-icon="times" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" data-fa-i2svg=""><path fill="currentColor" d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"></path></svg><span>Cancelled</span></div></header><section class="order-details"><div class="order-details__summary"><span class="order-details__price">£32.00</span> <span class="order-details__count">1 item(s)</span></div><time class="order-details__date" datetime="28th October 2024 7:29 AM">28th October 2024 7:29 AM</time></section><div class="view-more"><a class="link" href="/"><span>View More</span> <svg class="svg-inline--fa fa-arrow-right fa-w-14 icon" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" data-fa-i2svg=""><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg></a></div></article>'
22
22
  }
23
- ],
24
- cartPDP: `
25
- <div class="custom-slider__wrap custom-slider__wrap--scroll">
26
- <div class="custom-slider__header">
27
- <a href="#" type="button" class="link close-popup">
28
- <span class="icon-wrap">
29
- <svg class="svg-inline--fa fa-angle-left fa-w-6" aria-hidden="true" focusable="false" data-prefix="far" data-icon="angle-left" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512" data-fa-i2svg=""><path fill="currentColor" d="M4.2 247.5L151 99.5c4.7-4.7 12.3-4.7 17 0l19.8 19.8c4.7 4.7 4.7 12.3 0 17L69.3 256l118.5 119.7c4.7 4.7 4.7 12.3 0 17L168 412.5c-4.7 4.7-12.3 4.7-17 0L4.2 264.5c-4.7-4.7-4.7-12.3 0-17z"></path></svg>
30
- </span>
31
- Continue shopping
32
- </a>
33
- <a href="#" type="button" class="icon-wrap close-popup">
34
- <svg class="svg-inline--fa fa-times fa-w-10 icon" aria-hidden="true" focusable="false" data-prefix="far" data-icon="times" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" data-fa-i2svg=""><path fill="currentColor" d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"></path></svg>
35
- </a>
36
- </div>
37
- <div class="custom-slider__message">
38
- <span class="icon-wrap success">
39
- <svg class="svg-inline--fa fa-check-circle fa-w-16" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check-circle" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path></svg>
40
- </span>
41
- <div class="messages">
42
- <p class="messages__text">You’ve just added</p>
43
- <span class="messages__notice">Excluding items already in the basket</span>
44
- </div>
45
- </div>
46
- <ul class="products">
47
- <li class="products__item">
48
- <a class="products__image" href="page_product-details-with-global-search-v2.html">
49
- <img class="product-img" src="img/placeholders/tap.jpg" alt="">
50
- </a>
51
- <div class="products__details">
52
- <a href="#" class="title">Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim</a>
53
- <p class="item">Click &amp; Collect: <span class="value">East Grinstead</span></p>
54
- <p class="item">Qty: <span class="value">1</span></p>
55
- <p class="price including-vat-inherit">£30.00 <span class="inc">Inc.VAT</span></p>
56
- <p class="price excluding-vat-inherit">£10.00 <span class="inc">Exc.VAT</span></p>
57
- </div>
58
- </li>
59
- </ul>
60
- <div class="custom-slider__content">
61
- <p>Product description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam fermentum, nulla luctus pharetra vulputate, felis tellus mollis orci, sed rhoncus pronin sapien nunc accuan eget. Product description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam fermentum, nulla luctus pharetra vulputate, felis tellus mollis orci, sed rhoncus pronin sapien nunc accuan eget.</p>
62
- </div>
63
- </div>
64
- <div class="custom-slider__footer footer-fixed">
65
- <button class="btn btn_full btn-secondary close-popup">Continue Shopping</button>
66
- <button class="btn btn-action btn_full">View Basket</button>
67
- </div>
68
- `
23
+ ]
69
24
  }
@@ -129,8 +129,8 @@ Wick.MiniBasket = (function() {
129
129
  });
130
130
  },
131
131
  bindEvents: function(){
132
- // this._bindEvents();
133
- // this._bindTouchEvents();
132
+ this._bindEvents();
133
+ this._bindTouchEvents();
134
134
  },
135
135
  enable: function(){
136
136
  rollover.isDisabled = false;
@@ -24,10 +24,7 @@ Wick.PDP = (function () {
24
24
  $page
25
25
  .find('.btn-add-to-basket, .card-store-collect__btn')
26
26
  .on('click', function(){
27
- // TODO: This code is currently not in use because the backend (BE) has its own build for PDP.
28
- // Consider removing this fragment if it's confirmed to be obsolete, or document why it might still be needed.
29
-
30
- // Wick.MiniBasket && Wick.MiniBasket.showJustAdded();
27
+ Wick.MiniBasket && Wick.MiniBasket.showJustAdded();
31
28
  });
32
29
  }
33
30
 
@@ -42,12 +42,6 @@
42
42
  {{> footer }}
43
43
  {{/block}}
44
44
 
45
- {{#if miniBasketEmpty}}
46
- {{> mini-basket/mini-basket-empty }}
47
- {{else}}
48
- {{> mini-basket/mini-basket }}
49
- {{/if}}
50
-
51
45
  {{#block "foot"}}
52
46
  {{> scripts }}
53
47
  {{/block}}
@@ -21,13 +21,6 @@
21
21
  {{#block "footer"}}
22
22
  {{> footer }}
23
23
  {{/block}}
24
-
25
- {{#if miniBasketEmpty}}
26
- {{> mini-basket/mini-basket-empty }}
27
- {{else}}
28
- {{> mini-basket/mini-basket }}
29
- {{/if}}
30
-
31
24
  {{#block "foot"}}
32
25
  {{> scripts}}
33
26
  {{/block}}
@@ -0,0 +1,27 @@
1
+ {{#extend
2
+ "my-account-v2"
3
+ iconUserClass=my_account.tradepro.icons.tradeproID
4
+ dataBreadcrumbs=my_account.tradepro.breadcrumbs
5
+ pageClass="page_my-account_new"
6
+ title=my_account.tradepro.title
7
+ pageMyAcc=true
8
+ myAccV2=true
9
+ isLoggedIn=true
10
+ mainClass="my-account"
11
+ switch-vat=true
12
+ }}
13
+ {{#content "main"}}
14
+ <div class="container">
15
+ <div class="row">
16
+ <div class="col-12">
17
+ {{> my-account/saving-totaliser this-last-year=true}}
18
+ {{> my-account/saving-totaliser this-year-only=true}}
19
+ {{> my-account/saving-totaliser no-savings=true}}
20
+ </div>
21
+ </div>
22
+ </div>
23
+ {{/content}}
24
+ {{#content "foot" mode="append"}}
25
+ <script defer src="./js/my-account.min.js"></script>
26
+ {{/content}}
27
+ {{/extend}}
@@ -69,6 +69,13 @@
69
69
  </div>
70
70
  </div>
71
71
  </div>
72
+ <div class="container">
73
+ <div class="row">
74
+ <div class="col-12">
75
+ {{> my-account/saving-totaliser this-last-year=true}}
76
+ </div>
77
+ </div>
78
+ </div>
72
79
  <div class="account-actions">
73
80
  <div class="container">
74
81
  <div class="row">
@@ -1,19 +1,16 @@
1
- {{#extend "base"
2
- pageClass="page-product-details"
3
- title="Product details page new"
4
- isDiscount=true
5
- isSQM=true
6
- isDescription=true
7
- isCashback=false
8
- isSize=true
9
- isGuide=true
10
- hourly-delivery=true
11
- badge-text='15% off'
12
- badge-color='yellow'
13
- badge-text-color='gray'
14
- currentlyInStock=true
15
- pagePdp=true
16
- miniBasketEmpty=true
1
+ {{#extend "base" pageClass="page-product-details" title="Product details page new"
2
+ isDiscount=true
3
+ isSQM=true
4
+ isDescription=true
5
+ isCashback=false
6
+ isSize=true
7
+ isGuide=true
8
+ hourly-delivery=true
9
+ badge-text='15% off'
10
+ badge-color='yellow'
11
+ badge-text-color='gray'
12
+ currentlyInStock=true
13
+ pagePdp=true
17
14
  }}
18
15
  {{#content "head" mode="append" pagePdp=true}}{{/content}}
19
16
  {{#content "body"}}