wickes-css2 2.102.0-lg-788-improve-mini-basket.5 → 2.102.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.
Files changed (83) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/components/card-product-banner.css +1 -1
  3. package/build/css/homepage-main.css +1 -1
  4. package/build/css/kitchen-plp-main.css +1 -1
  5. package/build/css/main.css +1 -1
  6. package/build/css/my-account-main-v2.css +1 -1
  7. package/build/css/my-account-main.css +1 -1
  8. package/build/css/pages/my-account-v2.css +1 -1
  9. package/build/css/pages/page_products-list-combined.css +1 -1
  10. package/build/css/pages/page_products-list.css +1 -1
  11. package/build/css/pdp-main-before-combine.css +1 -1
  12. package/build/css/pdp-main-non-critical.css +1 -1
  13. package/build/css/pdp-main.css +1 -1
  14. package/build/css/plp-main.css +1 -1
  15. package/build/css/store-locator-main.css +1 -1
  16. package/build/js/basket.min.js +2 -2
  17. package/build/js/bundle.min.js +1 -1
  18. package/build/js/checkout.min.js +2 -2
  19. package/build/js/emulation.min.js +10 -1008
  20. package/build/js/general.bundle.min.js +1 -1
  21. package/build/js/merged-checkout.min.js +2 -2
  22. package/build/js/page/basket-v2.js +244 -138
  23. package/build/js/page/components/discounts.js +6 -6
  24. package/build/js/page/plp-cards-v2.js +6 -15
  25. package/build/js/page/plp-load-more.js +1 -1
  26. package/build/js/pdp.bundle.min.js +1 -1
  27. package/build/js/plp.bundle.min.js +1 -1
  28. package/build/js/project-list.min.js +1 -1
  29. package/package.json +2 -2
  30. package/src/components/card_product_v2.hbs +5 -10
  31. package/src/components/injected-content.hbs +1 -1
  32. package/src/components/mini-basket/mini-basket-empty.hbs +13 -3
  33. package/src/components/mini-basket/mini-basket.hbs +13 -32
  34. package/src/components/mini-basket/product-item.hbs +16 -37
  35. package/src/data/data_confirmation-summary.json +2 -4
  36. package/src/data/data_mini-basket.json +80 -4
  37. package/src/data/data_search-results_v2.json +141 -56
  38. package/src/data/my-account/data_my-account.json +6 -0
  39. package/src/js/components/general/cart-slider.js +0 -3
  40. package/src/js/components/general/create-popup-slider.js +1 -4
  41. package/src/js/components/general/mini-basket-slider.js +8 -0
  42. package/src/js/components/product-banner.js +148 -0
  43. package/src/js/emulation/custom-slider-emulation.js +10 -4
  44. package/src/js/page/basket-v2.js +244 -138
  45. package/src/js/page/components/discounts.js +6 -6
  46. package/src/js/page/plp-cards-v2.js +6 -15
  47. package/src/js/page/plp-load-more.js +1 -1
  48. package/src/layouts/base.hbs +6 -0
  49. package/src/page_plp_v2.html +6 -16
  50. package/src/page_search-results.html +2 -12
  51. package/src/page_tradePro_rewards_home_installer_message.html +56 -0
  52. package/src/page_tradePro_rewards_instore_installer_message.html +77 -0
  53. package/src/partials/scripts.hbs +0 -1
  54. package/src/scss/components/_custom-slider.scss +3 -125
  55. package/src/scss/components/_popover-mini-basket.scss +4 -0
  56. package/src/scss/components/card-product-banner.scss +3 -91
  57. package/src/scss/pages/my-account-v2.scss +29 -0
  58. package/src/scss/pages/page_products-list-combined.scss +0 -11
  59. package/src/scss/pages/page_products-list.scss +0 -8
  60. package/src/sitemap.html +8 -0
  61. package/build/js/mini-basket-slider.min.js +0 -1
  62. package/build/js/page/basket/basket-update-cart-action.js +0 -60
  63. package/build/js/page/basket/basket-update-cart.js +0 -29
  64. package/build/js/page/basket/basket-utils.js +0 -50
  65. package/build/js/page/basket/mini-basket-total.js +0 -97
  66. package/build/js/page/basket/quantity-change-handler.js +0 -56
  67. package/build/js/page/basket/update-quantity-operation.js +0 -37
  68. package/build/js/page/basket/update-quantity.js +0 -65
  69. package/build/js/page/components/mini-basket-slider.js +0 -524
  70. package/src/components/card_sponsor_banner.hbs +0 -8
  71. package/src/components/card_sponsor_product.hbs +0 -6
  72. package/src/components/mini-basket/mini-basket-order-item.hbs +0 -73
  73. package/src/js/components/banner-placement-manager.js +0 -258
  74. package/src/js/emulation/banner-placement-manager.js +0 -53
  75. package/src/js/emulation/mini-basket-data.js +0 -949
  76. package/src/js/page/basket/basket-update-cart-action.js +0 -60
  77. package/src/js/page/basket/basket-update-cart.js +0 -29
  78. package/src/js/page/basket/basket-utils.js +0 -50
  79. package/src/js/page/basket/mini-basket-total.js +0 -97
  80. package/src/js/page/basket/quantity-change-handler.js +0 -56
  81. package/src/js/page/basket/update-quantity-operation.js +0 -37
  82. package/src/js/page/basket/update-quantity.js +0 -65
  83. package/src/js/page/components/mini-basket-slider.js +0 -524
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.102.0-lg-788-improve-mini-basket.5",
3
+ "version": "2.102.0",
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/lg-788-improve-mini-basket",
111
+ "name": "alt-master",
112
112
  "prerelease": "${name.replace(/^custom-tag\\//g, '')}"
113
113
  }
114
114
  ],
@@ -19,11 +19,11 @@
19
19
  <div class="product-card__reviews product-card__reviews-v2">
20
20
  <div class="product-rating product-rating-v2">
21
21
  <div class="rating-bg">
22
- <i class="fa fa-star star-in" aria-hidden="true"></i>
23
- <i class="fa fa-star star-in" aria-hidden="true"></i>
24
- <i class="fa fa-star star-in" aria-hidden="true"></i>
25
- <i class="fa fa-star star-in" aria-hidden="true"></i>
26
- <i class="fa fa-star star-in" aria-hidden="true"></i>
22
+ <i class="fa fa-star star-in" aria-hidden="true"></i>
23
+ <i class="fa fa-star star-in" aria-hidden="true"></i>
24
+ <i class="fa fa-star star-in" aria-hidden="true"></i>
25
+ <i class="fa fa-star star-in" aria-hidden="true"></i>
26
+ <i class="fa fa-star star-in" aria-hidden="true"></i>
27
27
 
28
28
  <div class="rating-overlay" data-rating="{{#if review-rating}}{{review-rating}}{{else}}0{{/if}}">
29
29
  <span class="star-overlay">
@@ -48,11 +48,6 @@
48
48
  </div>
49
49
  {{/if}}
50
50
  </div>
51
- {{#if isSponsor}}
52
- <div class="product-card__sponsored">Sponsored</div>
53
- {{else}}
54
- <div class="product-card__sponsored product-card__sponsored--empty">&nbsp;</div>
55
- {{/if}}
56
51
  {{#if switch-vat}}
57
52
  <div class="including-vat product-card__price {{#if sale}} product-card__price_sale {{/if}} {{#if
58
53
  recommended}}product-card__min-height{{/if}}">
@@ -10,4 +10,4 @@
10
10
  </div>
11
11
  {{/if}}
12
12
  {{/each}}
13
- </div>
13
+ </div>
@@ -1,7 +1,17 @@
1
- <div class="custom-slider__empty">
1
+ <div class="custom-slider mini-basket d-none">
2
+ <div class="custom-slider__wrap">
3
+ <div class="custom-slider__header">
4
+ <span class="custom-slider__count">Your basket (0)</span>
5
+ <a href="#" type="button" class="icon-wrap close-popup">
6
+ <i class="far fa-times icon"></i>
7
+ </a>
8
+ </div>
9
+ <div class="custom-slider__empty">
2
10
  <span class="icon-wrap icon-wrap--xl">
3
11
  <i class="fas fa-shopping-basket"></i>
4
12
  </span>
5
- <p class="text">Your basket is currently empty.</p>
6
- <button class="btn btn-primary close-popup">Continue Shopping</button>
13
+ <p class="text">Your basket is currently empty.</p>
14
+ <button class="btn btn-primary close-popup">Continue Shopping</button>
15
+ </div>
16
+ </div>
7
17
  </div>
@@ -1,58 +1,39 @@
1
- <div class="custom-slider mini-basket popover-mini-basket d-none">
1
+ <div class="custom-slider mini-basket d-none">
2
2
  <div class="custom-slider__wrap">
3
3
  <div class="custom-slider__header">
4
- <span class="custom-slider__count">Your basket</span>
4
+ <span class="custom-slider__count">Your basket (1)</span>
5
5
  <button type="button" class="icon-wrap close-popup">
6
6
  <i class="far fa-times icon"></i>
7
7
  </button>
8
8
  </div>
9
- <div class="custom-slider__notifications"></div>
10
- <div class="products popover-mini-basket__cards-holder"></div>
9
+ <div class="products popover-mini-basket__cards-holder">
10
+ {{#each mini-basket.products}}
11
+ {{> mini-basket/product-item this switch-vat=true}}
12
+ {{/each}}
13
+ </div>
11
14
  </div>
12
15
  <div class="custom-slider__footer footer-fixed">
13
16
  <div class="mini-basket__total">
14
- <button class="btn mini-basket__total-toggle collapsed" type="button" data-toggle="collapse" data-target="#checkout-details-accordion-3" aria-expanded="false" aria-controls="checkout-details-accordion-3">
17
+ <button class="btn mini-basket__total-toggle" type="button" data-toggle="collapse" data-target="#checkout-details-accordion-3" aria-expanded="false" aria-controls="checkout-details-accordion-3">
15
18
  <span class="mini-basket__wrap-total">
16
19
  <span class="icon-wrap">
17
20
  <i class="fas fa-chevron-down arrow-icon"></i>
18
21
  </span>
19
22
  <span class="text">Total:</span>
20
23
  </span>
21
- <span class="mini-basket__total-toggle-value"></span>
24
+ <span class="value">{{mini-basket.total.totalPrice.formattedValue}}</span>
22
25
  </button>
23
26
 
24
- <div class="checkout-widget checkout-widget_order-summary">
25
- <ul class="checkout-widget__details checkout-info-wrap collapse" id="checkout-details-accordion-3">
26
- <li class="checkout-widget__accordion-wrap checkout-widget__details-discount" style="display: none">
27
- <span class="checkout-widget__detail-name checkout-widget__detail-name_accordion collapsed" data-toggle="collapse" data-target="#acheckout-widget-accordion-3">
28
- Discount(s):
29
- <span class="icon accordion__header-icon-small">
30
- <i class="fas fa-angle-up"></i>
31
- </span>
32
- </span>
33
- <ul class="checkout-widget__details-hidden collapse" id="acheckout-widget-accordion-3"></ul>
34
- <span class="checkout-widget__detail-value checkout-widget__item-value">£0.00</span>
35
- </li>
36
- </ul>
37
- </div>
27
+ {{> checkout_order-summary-new confirmationSummary=true head=true mod=true id=3 mobile=true hideApplyVoucher=true}}
38
28
  </div>
39
29
  <div class="custom-slider__ctas">
40
- <a href="/cart" class="btn btn_full btn-secondary btn-view-basket-cta">View Basket</a>
41
- <a id="addToCartPopupCheckoutButton" href="/cart/checkout" class="btn btn-action btn_full btn-checkout">
30
+ <a href="page_shopping-cart.html" class="btn btn_full btn-secondary">View Basket</a>
31
+ <button class="btn btn-action btn_full btn-checkout">
42
32
  Checkout
43
33
  <span class="icon-wrap ml-2">
44
34
  <i class="fas fa-arrow-right"></i>
45
35
  </span>
46
- </a>
47
- </div>
48
- </div>
49
-
50
- <div class="loader-wrapper basket-loader d-none">
51
- <div class="loader-spinner">
52
- <svg class="circular-loader" viewBox="25 25 50 50">
53
- <circle class="loader-path" cx="50" cy="50" r="20" fill="none"></circle>
54
- </svg>
36
+ </button>
55
37
  </div>
56
- <h2>Updating basket…</h2>
57
38
  </div>
58
39
  </div>
@@ -1,45 +1,24 @@
1
- <div class="card product-card-preview" data-id="{{id}}">
1
+ <div class="card product-card-preview">
2
2
  <div class="products__item card__inner">
3
3
  <a class="card__img-wrap card__img-wrap_link products__image" href="page_product-details-with-global-search-v2.html">
4
4
  <img class="product-img" src="{{src}}" alt="">
5
5
  </a>
6
6
  <div class="products__details product-card__content">
7
- <div class="products__details-header">
8
- <a href="#" class="title product-card__title product-card__title_link">{{title}}</a>
9
- <button class="btn btn--remove" data-action="remove">
10
- <i class="fas fa-trash remove-icon"></i>
11
- </button>
12
- </div>
13
- <div class="products__details-body">
14
- {{#if CC}}
15
- <p class="item">Click &amp; Collect: <span class="value">{{CC}}</span></p>
16
- {{/if}}
17
- </div>
18
- <div class="products__details-footer">
19
- <div class="products__quantity-control">
20
- <button class="btn btn--quantity" data-action="minus" {{#ifCond quantity.value '<=' 1}}disabled{{/ifCond}}>
21
- <i class="fal fa-minus quantity-cta-icon"></i>
22
- </button>
23
- <label class="quantity product-card__quantity-label">
24
- <span class="product-card__quantity-value">{{quantity.value}}</span>
25
- </label>
26
- <button class="btn btn--quantity" data-action="plus">
27
- <i class="fal fa-plus quantity-cta-icon"></i>
28
- </button>
29
- </div>
30
- {{#if switch-vat}}
31
- <p class="price including-vat-inherit">
32
- <span class="value">{{incVatPrice}}</span>
33
- <span class="inc">Inc.VAT</span>
34
- </p>
35
- <p class="price excluding-vat-inherit">
36
- <span class="value">{{excVatPrice}}</span>
37
- <span class="inc">Exc.VAT</span>
38
- </p>
39
- {{else}}
40
- <p class="price">{{price}}</p>
41
- {{/if}}
42
- </div>
7
+ <a href="#" class="title product-card__title product-card__title_link">{{title}}</a>
8
+ <p class="item">Click &amp; Collect: <span class="value">{{CC}}</span></p>
9
+ <p class="item">Qty: <span class="value">{{quantity.value}}</span></p>
10
+ {{#if switch-vat}}
11
+ <p class="price including-vat-inherit">
12
+ {{incVatPrice}}
13
+ <span class="inc">Inc.VAT</span>
14
+ </p>
15
+ <p class="price excluding-vat-inherit">
16
+ {{excVatPrice}}
17
+ <span class="inc">Exc.VAT</span>
18
+ </p>
19
+ {{else}}
20
+ <p class="price">{{price}}</p>
21
+ {{/if}}
43
22
  </div>
44
23
  </div>
45
24
  </div>
@@ -13,8 +13,7 @@
13
13
  },
14
14
  {
15
15
  "title": "Click & Collect:",
16
- "value": "Free",
17
- "mod": "cc"
16
+ "value": "Free"
18
17
  },
19
18
  {
20
19
  "title": "Delivery:",
@@ -23,8 +22,7 @@
23
22
  },
24
23
  {
25
24
  "title": "Charity donation:",
26
- "value": "£1.00",
27
- "mod": "charity"
25
+ "value": "£1.00"
28
26
  }
29
27
  ],
30
28
  "total": {
@@ -3,7 +3,6 @@
3
3
  "number": 0,
4
4
  "products": [
5
5
  {
6
- "id": 1,
7
6
  "quantity": {
8
7
  "value": "1"
9
8
  },
@@ -16,9 +15,87 @@
16
15
  "CC": "East Grinstead"
17
16
  },
18
17
  {
19
- "id": 2,
20
18
  "quantity": {
21
- "value": "5"
19
+ "value": "1"
20
+ },
21
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
22
+ "src": "img/placeholders/[e-img-4to3].jpg",
23
+ "price": "£2,009.00",
24
+ "incVatPrice": "£309.00",
25
+ "excVatPrice": "£109.00",
26
+ "bad-amount": true
27
+ },
28
+ {
29
+ "quantity": {
30
+ "value": "1"
31
+ },
32
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
33
+ "src": "img/placeholders/[e-img-4to3].jpg",
34
+ "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"
22
99
  },
23
100
  "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim",
24
101
  "src": "img/placeholders/[e-img-4to3].jpg",
@@ -48,4 +125,3 @@
48
125
  }
49
126
  }
50
127
  }
51
-
@@ -4,70 +4,25 @@
4
4
  {
5
5
  "src": "https://eu-images.contentstack.com/v3/assets/blt066259863543a0d2/bltf2fa907eeef56dc5/62161f9af3bcce42fe002786/PLP-DecoratingTools-230222.jpg",
6
6
  "href": "/sitemap.html",
7
- "desktop-position": 8,
8
- "mobile-position": 7,
7
+ "desktop-position": 3,
8
+ "mobile-position": 2,
9
9
  "show": false
10
- }
11
- ],
12
- "sponsor-product": [
13
- {
14
- "isSponsor": true,
15
- "desktop-position": 4,
16
- "mobile-position": 3,
17
- "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
18
- "code": "492747",
19
- "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Oak-Boot-7~GPID_1100568107_00",
20
- "descr": "Offer is valid for the same product and size in a single purchase",
21
- "reviews": "0",
22
- "review-rating": "4.3",
23
- "price": "<span class='product-card__price-value-text'>From</span> £99,009.00",
24
- "perSQM": "£1,444.00",
25
- "recommended": false,
26
- "badge-text": "new",
27
- "badge-color": "green",
28
- "badge-text-color": "gray"
29
10
  },
30
11
  {
31
- "isSponsor": true,
32
- "desktop-position": 5,
33
- "mobile-position": 4,
34
- "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
35
- "code": "492747",
36
- "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Oak-Boot-7~GPID_1100568107_00",
37
- "descr": "Offer is valid for the same product and size in a single purchase",
38
- "reviews": "0",
39
- "review-rating": "4.3",
40
- "price": "<span class='product-card__price-value-text'>From</span> £99,009.00",
41
- "perSQM": "£1,444.00",
42
- "recommended": false,
43
- "badge-text": "new",
44
- "badge-color": "green",
45
- "badge-text-color": "gray"
46
- },
47
- {
48
- "isSponsor": true,
12
+ "src": "https://eu-images.contentstack.com/v3/assets/blt066259863543a0d2/bltf2fa907eeef56dc5/62161f9af3bcce42fe002786/PLP-DecoratingTools-230222.jpg",
13
+ "href": "/sitemap.html",
49
14
  "desktop-position": 7,
50
15
  "mobile-position": 5,
51
- "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
52
- "code": "721657",
53
- "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Oak-Boot-7~GPID_1100568107_00",
54
- "descr": "Offer is valid for the same product and size in a single purchase",
55
- "reviews": "21",
56
- "review-rating": "4.4",
57
- "price": "£2,009.00",
58
- "SQM": "£1,555.00",
59
- "click-collect-only": true,
60
- "badge-text": "Clearance",
61
- "badge-color": "yellow",
62
- "badge-text-color": "white"
63
- }
64
- ],
65
- "sponsor-banner": [
16
+ "required-amount-desktop": 6,
17
+ "required-amount-mobile": 4,
18
+ "show": false
19
+ },
66
20
  {
67
21
  "src": "https://eu-images.contentstack.com/v3/assets/blt066259863543a0d2/bltf2fa907eeef56dc5/62161f9af3bcce42fe002786/PLP-DecoratingTools-230222.jpg",
68
22
  "href": "/sitemap.html",
69
- "desktop-position": 6,
70
- "mobile-position": 8
23
+ "required-amount-desktop": 11,
24
+ "required-amount-mobile": 9,
25
+ "show": false
71
26
  }
72
27
  ],
73
28
  "products": [
@@ -241,6 +196,136 @@
241
196
  "recommended": false,
242
197
  "new": true,
243
198
  "new-range": true
199
+ },
200
+ {
201
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
202
+ "code": "737934",
203
+ "src": "./img/placeholders/map-2.png",
204
+ "descr": "Offer is valid for the same product and size in a single purchase",
205
+ "reviews": "0",
206
+ "price": "£2,009.00",
207
+ "recommended": false
208
+ },
209
+ {
210
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim ",
211
+ "code": "247767",
212
+ "src": "./img/placeholders/map-2.png",
213
+ "descr": "Offer is valid for the same product and size in a single purchase",
214
+ "reviews": "0",
215
+ "price": "£2,009.00",
216
+ "recommended": false
217
+ },
218
+ {
219
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
220
+ "code": "978004",
221
+ "src": "./img/placeholders/map-2.png",
222
+ "descr": "Offer is valid for the same product and size in a single purchase",
223
+ "reviews": "0",
224
+ "price": "£2,009.00",
225
+ "recommended": false
226
+ },
227
+ {
228
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
229
+ "code": "523586",
230
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Alder-Trainer-7~GPID_1100568095_00",
231
+ "descr": "Offer is valid for the same product and size in a single purchase",
232
+ "reviews": "0",
233
+ "perSQM": "£1,444.00",
234
+ "recommended": false
235
+ },
236
+ {
237
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
238
+ "code": "729112",
239
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Alder-Trainer-7~GPID_1100568095_00",
240
+ "descr": "Offer is valid for the same product and size in a single purchase",
241
+ "reviews": "0",
242
+ "price": "£2,315.00",
243
+ "recommended": false
244
+ },
245
+ {
246
+ "sale": {
247
+ "discount": "15% off",
248
+ "price": "£2,315.00"
249
+ },
250
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
251
+ "code": "279966",
252
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Alder-Trainer-7~GPID_1100568095_00",
253
+ "descr": "Offer is valid for the same product and size in a single purchase",
254
+ "reviews": "0",
255
+
256
+ "recommended": false
257
+ },
258
+ {
259
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
260
+ "code": "813053",
261
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Oak-Boot-7~GPID_1100568107_00",
262
+ "descr": "Offer is valid for the same product and size in a single purchase",
263
+ "reviews": "0",
264
+ "SQM": "£1,555.00",
265
+ "recommended": false
266
+ },
267
+ {
268
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
269
+ "code": "655972",
270
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Oak-Boot-7~GPID_1100568107_00",
271
+ "descr": "Offer is valid for the same product and size in a single purchase",
272
+ "reviews": "0",
273
+
274
+ "recommended": false
275
+ },
276
+ {
277
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
278
+ "code": "757775",
279
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Oak-Boot-7~GPID_1100568107_00",
280
+ "descr": "Offer is valid for the same product and size in a single purchase",
281
+ "reviews": "0",
282
+
283
+ "recommended": false
284
+ },
285
+ {
286
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
287
+ "code": "276523",
288
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Alder-Trainer-7~GPID_1100568095_00",
289
+ "descr": "Offer is valid for the same product and size in a single purchase",
290
+ "reviews": "0",
291
+
292
+ "recommended": false
293
+ },
294
+ {
295
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
296
+ "code": "334333",
297
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Alder-Trainer-7~GPID_1100568095_00",
298
+ "descr": "Offer is valid for the same product and size in a single purchase",
299
+ "reviews": "0",
300
+
301
+ "recommended": false
302
+ },
303
+ {
304
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
305
+ "code": "597258",
306
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Alder-Trainer-7~GPID_1100568095_00",
307
+ "descr": "Offer is valid for the same product and size in a single purchase",
308
+ "reviews": "0",
309
+
310
+ "recommended": false
311
+ },
312
+ {
313
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
314
+ "code": "806538",
315
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Oak-Boot-7~GPID_1100568107_00",
316
+ "descr": "Offer is valid for the same product and size in a single purchase",
317
+ "reviews": "0",
318
+ "perSQM": "£1,444.00",
319
+ "recommended": false
320
+ },
321
+ {
322
+ "title": "Rangemaster Classic Deluxe 90 Ceramic Range Cooker",
323
+ "code": "276521",
324
+ "src": "https://media.wickes.co.uk/is/image/wickes/normal/Footwear-Tough-Grit-Oak-Boot-7~GPID_1100568107_00",
325
+ "descr": "Offer is valid for the same product and size in a single purchase",
326
+ "reviews": "0",
327
+
328
+ "recommended": false
244
329
  }
245
330
  ]
246
331
  }
@@ -243,6 +243,12 @@
243
243
  "tradeproID": "fas fa-user-hard-hat"
244
244
  },
245
245
  "bannerText": "TradePro discount is automatically applied to all prices",
246
+ "banner": {
247
+ "classModifier": "notification_reminder",
248
+ "text": "You could be eligible for <b>10% off</b> TradePro discount.<a href='#' class='notification_link'><b>Learn More ></b></a>",
249
+ "reminder": true,
250
+ "mod": "_white"
251
+ },
246
252
  "activeOrders": {
247
253
  "sectionTitle": "My Active Orders",
248
254
  "orderList": [
@@ -13,7 +13,4 @@ createPopupSlider({
13
13
  showSlider();
14
14
  $(el.sliderWrap).on('scroll', _.debounce(() => handleScroll(el.sliderWrap), 100));
15
15
  },
16
- onClose: function () {
17
- Wick.MiniBasketSliderFE.cartEntries = [];
18
- }
19
16
  });
@@ -8,7 +8,7 @@ function createEvent(eventName, payload, eventDetail) {
8
8
  });
9
9
  }
10
10
 
11
- function createPopupSlider({ type, sliderSelector, onAppendEvent, onAppend, onClose }) {
11
+ function createPopupSlider({ type, sliderSelector, onAppendEvent, onAppend }) {
12
12
  const events = {
13
13
  CLOSE_JUST_ADDED: 'CLOSE_JUST_ADDED',
14
14
  CLOSE_MINI_BASKET: 'CLOSE_MINI_BASKET'
@@ -119,9 +119,6 @@ function createPopupSlider({ type, sliderSelector, onAppendEvent, onAppend, onCl
119
119
  .finally(() => {
120
120
  hideSlider();
121
121
  Wick.Backdrop.hide();
122
- if (typeof onClose === 'function') {
123
- onClose();
124
- }
125
122
  })
126
123
  }
127
124
 
@@ -0,0 +1,8 @@
1
+ createPopupSlider({
2
+ type: 'miniBasket',
3
+ sliderSelector: '.custom-slider.mini-basket',
4
+ onAppendEvent: 'showMiniBasket',
5
+ onAppend: function (event, { showSlider }) {
6
+ showSlider();
7
+ },
8
+ });