wickes-css2 2.103.0-develop.3 → 2.103.0-develop.5

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 (58) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/homepage-main.css +1 -1
  3. package/build/css/kitchen-plp-main.css +1 -1
  4. package/build/css/main.css +1 -1
  5. package/build/css/my-account-main-v2.css +1 -1
  6. package/build/css/my-account-main.css +1 -1
  7. package/build/css/pdp-main-before-combine.css +1 -1
  8. package/build/css/pdp-main-non-critical.css +1 -1
  9. package/build/css/pdp-main.css +1 -1
  10. package/build/css/plp-main.css +1 -1
  11. package/build/css/store-locator-main.css +1 -1
  12. package/build/js/basket.min.js +2 -2
  13. package/build/js/bundle.min.js +1 -1
  14. package/build/js/checkout.min.js +2 -2
  15. package/build/js/emulation.min.js +10 -954
  16. package/build/js/general.bundle.min.js +1 -1
  17. package/build/js/merged-checkout.min.js +2 -2
  18. package/build/js/page/basket-v2.js +244 -138
  19. package/build/js/page/components/discounts.js +6 -6
  20. package/build/js/pdp.bundle.min.js +1 -1
  21. package/build/js/plp.bundle.min.js +1 -1
  22. package/build/js/project-list.min.js +1 -1
  23. package/package.json +2 -2
  24. package/src/components/mini-basket/mini-basket-empty.hbs +13 -3
  25. package/src/components/mini-basket/mini-basket.hbs +13 -32
  26. package/src/components/mini-basket/product-item.hbs +16 -37
  27. package/src/data/data_confirmation-summary.json +2 -4
  28. package/src/data/data_mini-basket.json +80 -4
  29. package/src/js/components/banner-placement-manager.js +10 -1
  30. package/src/js/components/general/cart-slider.js +0 -3
  31. package/src/js/components/general/create-popup-slider.js +2 -5
  32. package/src/js/components/general/mini-basket-slider.js +8 -0
  33. package/src/js/emulation/custom-slider-emulation.js +10 -4
  34. package/src/js/page/basket-v2.js +244 -138
  35. package/src/js/page/components/discounts.js +6 -6
  36. package/src/layouts/base.hbs +6 -0
  37. package/src/partials/scripts.hbs +0 -1
  38. package/src/scss/components/_custom-slider.scss +3 -125
  39. package/src/scss/components/_popover-mini-basket.scss +4 -0
  40. package/build/js/mini-basket-slider.min.js +0 -1
  41. package/build/js/page/basket/basket-update-cart-action.js +0 -60
  42. package/build/js/page/basket/basket-update-cart.js +0 -29
  43. package/build/js/page/basket/basket-utils.js +0 -50
  44. package/build/js/page/basket/mini-basket-total.js +0 -97
  45. package/build/js/page/basket/quantity-change-handler.js +0 -56
  46. package/build/js/page/basket/update-quantity-operation.js +0 -37
  47. package/build/js/page/basket/update-quantity.js +0 -65
  48. package/build/js/page/components/mini-basket-slider.js +0 -562
  49. package/src/components/mini-basket/mini-basket-order-item.hbs +0 -73
  50. package/src/js/emulation/mini-basket-data.js +0 -949
  51. package/src/js/page/basket/basket-update-cart-action.js +0 -60
  52. package/src/js/page/basket/basket-update-cart.js +0 -29
  53. package/src/js/page/basket/basket-utils.js +0 -50
  54. package/src/js/page/basket/mini-basket-total.js +0 -97
  55. package/src/js/page/basket/quantity-change-handler.js +0 -56
  56. package/src/js/page/basket/update-quantity-operation.js +0 -37
  57. package/src/js/page/basket/update-quantity.js +0 -65
  58. package/src/js/page/components/mini-basket-slider.js +0 -562
@@ -3750,18 +3750,24 @@ function simulateHybrisSendingHtml() {
3750
3750
  document.dispatchEvent(event);
3751
3751
  }
3752
3752
 
3753
- function bindResolveEvent(events) {
3754
- $(window).on(events.join(' '), function ({ detail: { resolve } }) {
3753
+ function initCloseJustAddedDiff() {
3754
+ $(window).on('CLOSE_JUST_ADDED CLOSE_MINI_BASKET', function ({ detail: { resolve }}) {
3755
3755
  setTimeout(() => {
3756
- resolve();
3756
+ return resolve();
3757
3757
  }, 200);
3758
3758
  });
3759
+ };
3760
+
3761
+ function simulateShowMiniBasket() {
3762
+ const event = new CustomEvent('showMiniBasket', {});
3763
+ document.dispatchEvent(event);
3759
3764
  }
3760
3765
 
3761
3766
  $(document).ready(function () {
3762
3767
  $('.btn-add-to-basket').on('click', simulateHybrisSendingHtml);
3768
+ $('.header-minicart__btn').on('click', simulateShowMiniBasket);
3763
3769
 
3764
- bindResolveEvent(['CLOSE_JUST_ADDED', 'CLOSE_MINI_BASKET', 'MINI_BASKET_CHECKOUT', 'MINI_BASKET_VIEW_BASKET']);
3770
+ initCloseJustAddedDiff();
3765
3771
  });
3766
3772
 
3767
3773
  var Wick = Wick || {};
@@ -9798,956 +9804,6 @@ Wick.MainNavData = (function () {
9798
9804
  }
9799
9805
  })();
9800
9806
 
9801
- var Wick = Wick || {};
9802
- Wick.MiniBasketData = (function () {
9803
- return {
9804
- updateQuantity: {
9805
- "statusCode": "lowStock",
9806
- "quantityAdded": 71,
9807
- "quantity": 0,
9808
- "entry": {
9809
- "entryNumber": 2,
9810
- "quantity": 74,
9811
- "basePrice": {
9812
- "currencyIso": "GBP",
9813
- "value": 5.0,
9814
- "priceType": "BUY",
9815
- "formattedValue": "£5.00",
9816
- "minQuantity": null,
9817
- "maxQuantity": null,
9818
- "currencySymbol": "£",
9819
- "wasPrice": null,
9820
- "infoUom": null,
9821
- "infoUomPrice": null,
9822
- "singleVolumePrice": null,
9823
- "vatRatePercentage": null,
9824
- "sellingUomDescription": null,
9825
- "formattedPriceWithoutCurrencySymbol": "5.00",
9826
- "pricing": null
9827
- },
9828
- "basePriceExcVat": {
9829
- "value": 4,
9830
- "formattedValue": "£4",
9831
- "currencyIso": "GBP",
9832
- "formattedPriceWithoutCurrencySymbol": "4"
9833
- },
9834
- "totalPrice": {
9835
- "currencyIso": "GBP",
9836
- "value": 20.0,
9837
- "priceType": "BUY",
9838
- "formattedValue": "£20.00",
9839
- "minQuantity": null,
9840
- "maxQuantity": null,
9841
- "currencySymbol": "£",
9842
- "wasPrice": null,
9843
- "infoUom": null,
9844
- "infoUomPrice": null,
9845
- "singleVolumePrice": null,
9846
- "vatRatePercentage": null,
9847
- "sellingUomDescription": null,
9848
- "formattedPriceWithoutCurrencySymbol": "20.00",
9849
- "pricing": null
9850
- },
9851
- "product": {
9852
- "code": "221100",
9853
- "name": "Blue Circle Ready To Use Postcrete - 20kg",
9854
- "url": "/Blue-Circle-Ready-To-Use-Postcrete---20kg/p/221100",
9855
- "purchasable": true,
9856
- "stock": {
9857
- "stockLevelStatus": {
9858
- "code": "outOfStock",
9859
- "type": "StockLevelStatus"
9860
- },
9861
- "stockLevel": 0,
9862
- "stockThreshold": null,
9863
- "makeUnavailable": false,
9864
- "originalStockLevelStatus": {
9865
- "code": "outOfStock",
9866
- "type": "StockLevelStatus"
9867
- },
9868
- "exists": false,
9869
- "stockMessage": null
9870
- },
9871
- "availableForPickup": true,
9872
- "price": {
9873
- "currencyIso": "GBP",
9874
- "value": 5.0,
9875
- "priceType": "BUY",
9876
- "formattedValue": "£5.00",
9877
- "minQuantity": null,
9878
- "maxQuantity": null,
9879
- "currencySymbol": "£",
9880
- "wasPrice": null,
9881
- "infoUom": "KG",
9882
- "infoUomPrice": 0.25,
9883
- "singleVolumePrice": null,
9884
- "vatRatePercentage": 20.0,
9885
- "sellingUomDescription": null,
9886
- "formattedPriceWithoutCurrencySymbol": "5.00",
9887
- "pricing": null
9888
- },
9889
- "images": [
9890
- {
9891
- "imageType": "PRIMARY",
9892
- "format": "zoom",
9893
- "url": "//media.wickes.co.uk/is/image/wickes/largeNormal/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_00",
9894
- "altText": "Blue Circle Ready To Use Postcrete - 20kg",
9895
- "galleryIndex": null,
9896
- "width": null
9897
- },
9898
- {
9899
- "imageType": "PRIMARY",
9900
- "format": "product",
9901
- "url": "//media.wickes.co.uk/is/image/wickes/normal/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_00",
9902
- "altText": "Blue Circle Ready To Use Postcrete - 20kg",
9903
- "galleryIndex": null,
9904
- "width": null
9905
- },
9906
- {
9907
- "imageType": "PRIMARY",
9908
- "format": "thumbnail",
9909
- "url": "//media.wickes.co.uk/is/image/wickes/thumbnail/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_00",
9910
- "altText": "Blue Circle Ready To Use Postcrete - 20kg",
9911
- "galleryIndex": null,
9912
- "width": null
9913
- },
9914
- {
9915
- "imageType": "PRIMARY",
9916
- "format": "cartIcon",
9917
- "url": "//media.wickes.co.uk/is/image/wickes/smallThumbnail/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_00",
9918
- "altText": "Blue Circle Ready To Use Postcrete - 20kg",
9919
- "galleryIndex": null,
9920
- "width": null
9921
- }
9922
- ],
9923
- "categories": [
9924
- {
9925
- "code": "1000208",
9926
- "name": "Cement",
9927
- "url": "/Products/Building-Materials/Cement+Aggregates/Cement/c/1000208",
9928
- "description": null,
9929
- "image": null,
9930
- "parentCategoryName": null,
9931
- "sequence": 0
9932
- },
9933
- {
9934
- "code": "1000211",
9935
- "name": "Concrete",
9936
- "url": "/Products/Building-Materials/Cement+Aggregates/Concrete/c/1000211",
9937
- "description": null,
9938
- "image": null,
9939
- "parentCategoryName": null,
9940
- "sequence": 0
9941
- }
9942
- ],
9943
- "baseOptions": [],
9944
- "volumePrices": [],
9945
- "configurable": false,
9946
- "imageSetId": "B3182_221100_IS",
9947
- "fulfilmentType": "STANDARD",
9948
- "noScriptProductImageUrl": "//media.wickes.co.uk/is/image/wickes/largeNormal/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_00?defaultImage=wickes/2018-Wickes-Missing-Product-650x650",
9949
- "sellOnly": false,
9950
- "externalAverageRating": 4.9,
9951
- "externalReviewCount": 4680,
9952
- "coshhSheetUrl": "//media.wickes.co.uk/documents/wickes/B3182_221100_COSHH_0",
9953
- "techSheetUrl": "//media.wickes.co.uk/documents/wickes/B3182_221100_TECH_0",
9954
- "priceInclusiveVat": {
9955
- "currencyIso": "GBP",
9956
- "value": 5.0,
9957
- "priceType": "BUY",
9958
- "formattedValue": "£5.00",
9959
- "minQuantity": null,
9960
- "maxQuantity": null,
9961
- "currencySymbol": "£",
9962
- "wasPrice": null,
9963
- "infoUom": "KG",
9964
- "infoUomPrice": 0.25,
9965
- "singleVolumePrice": null,
9966
- "vatRatePercentage": 20.0,
9967
- "sellingUomDescription": null,
9968
- "formattedPriceWithoutCurrencySymbol": "5.00",
9969
- "pricing": null
9970
- },
9971
- "priceExclusiveVat": {
9972
- "currencyIso": "GBP",
9973
- "value": 4.17,
9974
- "priceType": "BUY",
9975
- "formattedValue": "£4.17",
9976
- "minQuantity": null,
9977
- "maxQuantity": null,
9978
- "currencySymbol": "£",
9979
- "wasPrice": null,
9980
- "infoUom": null,
9981
- "infoUomPrice": null,
9982
- "singleVolumePrice": null,
9983
- "vatRatePercentage": null,
9984
- "sellingUomDescription": null,
9985
- "formattedPriceWithoutCurrencySymbol": "4.17",
9986
- "pricing": null
9987
- },
9988
- "downStreamData": {
9989
- "description": "Blue Circle Ready To Use Postcrete - 20kg",
9990
- "fulfillmentType": "STANDARD",
9991
- "swapCode": "",
9992
- "productRanking": null,
9993
- "order": null
9994
- },
9995
- "categoryPath": "Products/Building Materials/Cement & Aggregates/Cement",
9996
- "hasDataSheets": true,
9997
- "coshhSheetList": [
9998
- {
9999
- "code": "B3182_221100_COSHH_0",
10000
- "description": null,
10001
- "altText": null,
10002
- "url": "//media.wickes.co.uk/documents/wickes/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_COSHH_0",
10003
- "downloadUrl": "//media.wickes.co.uk/documents/wickes/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_COSHH_0",
10004
- "size": null
10005
- }
10006
- ],
10007
- "dopSheetList": [],
10008
- "epdSheetList": [],
10009
- "gilSheetList": [
10010
- {
10011
- "code": "B3182_221100_GIL_0",
10012
- "description": null,
10013
- "altText": null,
10014
- "url": "//media.wickes.co.uk/documents/wickes/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_GIL_0",
10015
- "downloadUrl": "//media.wickes.co.uk/documents/wickes/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_GIL_0",
10016
- "size": null
10017
- }
10018
- ],
10019
- "techSheetList": [
10020
- {
10021
- "code": "B3182_221100_TECH_0",
10022
- "description": null,
10023
- "altText": null,
10024
- "url": "//media.wickes.co.uk/documents/wickes/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_TECH_0",
10025
- "downloadUrl": "//media.wickes.co.uk/documents/wickes/Cement-Blue-Circle-Ready-To-Use-Postcrete-20kg~B3182_221100_TECH_0",
10026
- "size": null
10027
- }
10028
- ],
10029
- "fulfillmentAttributes": {
10030
- "type": "STANDARD",
10031
- "leadTimeDays": 1,
10032
- "bigAndBulky": false,
10033
- "supplierDelivered": false,
10034
- "vision": false,
10035
- "assumedAlwaysInStock": false,
10036
- "webOnly": false,
10037
- "treatAsFulfillmentTypeOnCheckout": null
10038
- },
10039
- "minOrderQuantity": 1,
10040
- "gpid": "1000492390",
10041
- "ean": "5018719100152",
10042
- "isBaseProduct": false,
10043
- "brandName": "Blue Circle",
10044
- "scene7FlyoutViewerISCommand": "",
10045
- "availableForShoppingList": false,
10046
- "installationDetails": {
10047
- "packCoverage": 0.0,
10048
- "pricePerPack": 5.0,
10049
- "pricePerPackInPence": 500,
10050
- "pricePerSQM": 0.0,
10051
- "width": 0.0,
10052
- "length": 0.0,
10053
- "material": "",
10054
- "packQuantity": 0,
10055
- "doesNotContainRequiredAttributes": null
10056
- },
10057
- "tileInstallationAvailable": false,
10058
- "tileCalculationAvailable": false,
10059
- "flooringInstallationAvailable": false,
10060
- "flooringCalculationAvailable": false,
10061
- "installationProduct": false,
10062
- "availabilityRestriction": "NO_RESTRICTIONS",
10063
- "availableForBigWinsCncOnly": false,
10064
- "availableForBigWinsStockOnly": false
10065
- },
10066
- "updateable": true,
10067
- "deliveryMode": null,
10068
- "deliveryPointOfService": {
10069
- "name": "8973",
10070
- "displayName": null,
10071
- "url": null,
10072
- "description": "NDS Wickes Chadwell Heath",
10073
- "openingHours": null,
10074
- "storeContent": null,
10075
- "features": {},
10076
- "geoPoint": {
10077
- "latitude": 51.566937,
10078
- "longitude": 0.117506
10079
- },
10080
- "formattedDistance": null,
10081
- "distanceKm": null,
10082
- "mapIcon": null,
10083
- "address": {
10084
- "id": "10089029042199",
10085
- "title": null,
10086
- "titleCode": null,
10087
- "firstName": null,
10088
- "lastName": null,
10089
- "companyName": "Wickes",
10090
- "line1": "WICKES, 850 HIGH ROAD",
10091
- "line2": "CHADWELL HEATH",
10092
- "town": "ROMFORD",
10093
- "region": null,
10094
- "postalCode": "RM6 4HX",
10095
- "phone": "020 8590 1116",
10096
- "email": "",
10097
- "country": {
10098
- "isocode": "GB",
10099
- "name": "United Kingdom"
10100
- },
10101
- "shippingAddress": false,
10102
- "billingAddress": false,
10103
- "defaultAddress": false,
10104
- "visibleInAddressBook": true,
10105
- "formattedAddress": "WICKES, 850 HIGH ROAD, CHADWELL HEATH, ROMFORD, RM6 4HX, United Kingdom",
10106
- "contactAddress": false,
10107
- "mobile": null,
10108
- "fax": "123456",
10109
- "regionString": null,
10110
- "cardHolderName": null,
10111
- "businessAddress": false,
10112
- "createdTimestamp": null
10113
- },
10114
- "storeImages": [],
10115
- "brand": "Wickes",
10116
- "buyAndCollect": null,
10117
- "loadingRestriction": null,
10118
- "specificInfo": "",
10119
- "satNavPostcode": null,
10120
- "seoText": null,
10121
- "productRanges": [],
10122
- "metaTitle": null,
10123
- "metaDescription": null,
10124
- "h1": null
10125
- },
10126
- "entries": null,
10127
- "configurationInfos": [],
10128
- "statusSummaryMap": {},
10129
- "entryGroupNumbers": [],
10130
- "comments": [],
10131
- "supportedActions": [
10132
- "REMOVE"
10133
- ],
10134
- "taxValues": [
10135
- {
10136
- "code": "uk-vat-full",
10137
- "value": 20.0,
10138
- "appliedValue": 61.67,
10139
- "absolute": false,
10140
- "currencyIsoCode": "GBP"
10141
- }
10142
- ],
10143
- "deliveryModeType": "PICKUP",
10144
- "fulfilmentRouting": null,
10145
- "collection": true,
10146
- "charity": false,
10147
- "leadTime": null,
10148
- "leadTimeExtended": null,
10149
- "itemTotalWithoutDiscount": {
10150
- "currencyIso": "GBP",
10151
- "value": 3700.0,
10152
- "priceType": "BUY",
10153
- "formattedValue": "£20.00",
10154
- "minQuantity": null,
10155
- "maxQuantity": null,
10156
- "currencySymbol": "£",
10157
- "wasPrice": null,
10158
- "infoUom": null,
10159
- "infoUomPrice": null,
10160
- "singleVolumePrice": null,
10161
- "vatRatePercentage": null,
10162
- "sellingUomDescription": null,
10163
- "formattedPriceWithoutCurrencySymbol": "20.00",
10164
- "pricing": null
10165
- },
10166
- "itemTotalWithoutDiscountExcVat": {
10167
- "value": 19,
10168
- "formattedValue": "£19",
10169
- "currencyIso": "GBP",
10170
- "formattedPriceWithoutCurrencySymbol": "19"
10171
- },
10172
- "appliedPromotions": null,
10173
- "tilingInstallationData": null,
10174
- "flooringInstallationData": null,
10175
- "alerts": null,
10176
- "orderFulfilmentControls": {
10177
- "availableForCollection": true,
10178
- "availableForDelivery": true,
10179
- "availableForWickesFulfilment": false
10180
- },
10181
- },
10182
- "deliveryModeChanged": null,
10183
- "cartCode": "663467017",
10184
- "statusMessage": "accConfirmedMsgs",
10185
- "entryGroupNumbers": null,
10186
- "message": "The Basket quantity of <a href=\"/Blue-Circle-Ready-To-Use-Postcrete---20kg/p/221100\" style=\"text-decoration: underline\">Blue Circle Ready To Use Postcrete - 20kg</a> has been reduced to 74 from 100 due to insufficient stock."
10187
- },
10188
- initialCartState: {
10189
- "code": "696252001",
10190
- "subTotal": {"value": 10.0, "formattedValue": "£10.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "10.00"},
10191
- "totalTax": {"value": 3.17, "formattedValue": "£3.17", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "3.17"},
10192
- "deliveryCost": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
10193
- "charityPrice": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
10194
- "totalDiscounts": {"value": 5.0, "formattedValue": "£5.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "5.00"},
10195
- "totalPrice": {"value": 10.0, "formattedValue": "£10.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "10.00"},
10196
- "potentialProductPromotions": [],
10197
- "appliedProductPromotions": [],
10198
- "appliedOrderPromotions": [],
10199
- "promotionsInfo": null,
10200
- "clickAndCollectOnly": true,
10201
- "deliveryItemsQuantity": 1,
10202
- "pickupItemsQuantity": 2,
10203
- "freeDelivery": false,
10204
- "subtotalWithoutCharity": {"value": 10.0, "formattedValue": "£10.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "10.00"},
10205
- "messageForFreeDelivery": null,
10206
- "pickupOrderGroups": [
10207
- {
10208
- "entries": [
10209
- {
10210
- "entryNumber": 0,
10211
- "quantity": 2,
10212
- "basePrice": {
10213
- "value": 100.0,
10214
- "formattedValue": "£100",
10215
- "currencyIso": "GBP",
10216
- "formattedPriceWithoutCurrencySymbol": "100"
10217
- },
10218
- "basePriceExcVat": {
10219
- "value": 10,
10220
- "formattedValue": "10",
10221
- "currencyIso": "GBP",
10222
- "formattedPriceWithoutCurrencySymbol": "10"
10223
- },
10224
- "product": {
10225
- "code": "221100",
10226
- "name": "Blue Circle Ready To Use Postcrete - 20kg",
10227
- "url": "/Blue-Circle-Ready-To-Use-Postcrete---20kg/p/221100",
10228
- "minOrderQuantity": 0,
10229
- "maxOrderQuantity": null,
10230
- "fulfillmentAttributes": {
10231
- "type": "STANDARD_STORE_DELIVERED",
10232
- "leadTimeDays": 1,
10233
- "supplierDelivered": false
10234
- },
10235
- "price": {
10236
- "value": 100.0,
10237
- "formattedValue": "£100",
10238
- "currencyIso": "GBP",
10239
- "formattedPriceWithoutCurrencySymbol": "100"
10240
- },
10241
- "categoryPath": "Products/Building Materials/Cement & Aggregates/Cement",
10242
- "brandName": "Blue Circle",
10243
- "categories": [
10244
- {
10245
- "code": "1000208",
10246
- "name": "Cement"
10247
- },
10248
- {
10249
- "code": "1000211",
10250
- "name": "Concrete"
10251
- }
10252
- ],
10253
- "image": {
10254
- "url": "//media.wickes.co.uk/is/image/wickes/O0032_109450_00?$normal$",
10255
- "altText": "Blue Circle Ready To Use Postcrete - 20kg"
10256
- },
10257
- "pricePerSqm": 0.0,
10258
- "installationProduct": false
10259
- },
10260
- "updateable": true,
10261
- "deliveryPointOfService": {
10262
- "name": "8901",
10263
- "description": "WX Test Store 12"
10264
- },
10265
- "charity": false,
10266
- "itemTotalWithoutDiscount": {
10267
- "value": 100.0,
10268
- "formattedValue": "£100",
10269
- "currencyIso": "GBP",
10270
- "formattedPriceWithoutCurrencySymbol": "100"
10271
- },
10272
- "itemTotalWithoutDiscountExcVat": {
10273
- "value": 99,
10274
- "formattedValue": "£99",
10275
- "currencyIso": "GBP",
10276
- "formattedPriceWithoutCurrencySymbol": "99"
10277
- },
10278
- "orderFulfilmentControls": {
10279
- "availableForDelivery": true,
10280
- "availableForCollection": true,
10281
- "availableForWickesFulfilment": false
10282
- }
10283
- }
10284
- ],
10285
- "quantity": 1,
10286
- "totalPrice": {
10287
- "value": 100.0,
10288
- "formattedValue": "£100.00",
10289
- "currencyIso": "GBP",
10290
- "formattedPriceWithoutCurrencySymbol": "100.00"
10291
- }
10292
- },
10293
- {
10294
- "entries": [
10295
- {
10296
- "entryNumber": 1,
10297
- "quantity": 2,
10298
- "basePrice": {
10299
- "value": 9.0,
10300
- "formattedValue": "£9",
10301
- "currencyIso": "GBP",
10302
- "formattedPriceWithoutCurrencySymbol": "9"
10303
- },
10304
- "basePriceExcVat": {
10305
- "value": 9,
10306
- "formattedValue": "£9",
10307
- "currencyIso": "GBP",
10308
- "formattedPriceWithoutCurrencySymbol": "9"
10309
- },
10310
- "product": {
10311
- "code": "109450",
10312
- "name": "Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²",
10313
- "url": "/Knauf-Insulation-Space-Standard-Top-Up-170mm-Loft-Roll---6-47m%C2%B2/p/109450",
10314
- "minOrderQuantity": 0,
10315
- "maxOrderQuantity": null,
10316
- "fulfillmentAttributes": {
10317
- "type": "HOURLY_STANDARD",
10318
- "leadTimeDays": 1,
10319
- "supplierDelivered": false
10320
- },
10321
- "price": {
10322
- "value": 8.0,
10323
- "formattedValue": "£8",
10324
- "currencyIso": "GBP",
10325
- "formattedPriceWithoutCurrencySymbol": "8"
10326
- },
10327
- "categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
10328
- "brandName": "Knauf Insulation",
10329
- "categories": [
10330
- {
10331
- "code": "1000270",
10332
- "name": "Loft Insulation"
10333
- }
10334
- ],
10335
- "image": {
10336
- "url": "//media.wickes.co.uk/is/image/wickes/O0032_109450_00?$normal$",
10337
- "altText": "Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²"
10338
- },
10339
- "pricePerSqm": 0.0,
10340
- "installationProduct": false
10341
- },
10342
- "updateable": true,
10343
- "deliveryPointOfService": {
10344
- "name": "8397",
10345
- "description": "WATFORD"
10346
- },
10347
- "charity": false,
10348
- "itemTotalWithoutDiscount": {
10349
- "value": 8.0,
10350
- "formattedValue": "£8",
10351
- "currencyIso": "GBP",
10352
- "formattedPriceWithoutCurrencySymbol": "8"
10353
- },
10354
- "itemTotalWithoutDiscountExcVat": {
10355
- "value": 23,
10356
- "formattedValue": "£23",
10357
- "currencyIso": "GBP",
10358
- "formattedPriceWithoutCurrencySymbol": "23"
10359
- },
10360
- "orderFulfilmentControls": {
10361
- "availableForDelivery": true,
10362
- "availableForCollection": true,
10363
- "availableForWickesFulfilment": false
10364
- }
10365
- },
10366
- ],
10367
- "quantity": 2,
10368
- "totalPrice": {
10369
- "value": 40.5,
10370
- "formattedValue": "£40.50",
10371
- "currencyIso": "GBP",
10372
- "formattedPriceWithoutCurrencySymbol": "40.50"
10373
- }
10374
- },
10375
- ],
10376
- "deliveryOrderGroups": [
10377
- {
10378
- "entries": [
10379
- {
10380
- "entryNumber": 4,
10381
- "quantity": 1,
10382
- "basePrice": {
10383
- "value": 25.0,
10384
- "formattedValue": "£25",
10385
- "currencyIso": "GBP",
10386
- "formattedPriceWithoutCurrencySymbol": "25"
10387
- },
10388
- "basePriceExcVat": {
10389
- "value": 8,
10390
- "formattedValue": "£8",
10391
- "currencyIso": "GBP",
10392
- "formattedPriceWithoutCurrencySymbol": "8"
10393
- },
10394
- "product": {
10395
- "code": "123143",
10396
- "name": "6 Wickes General Purpose Claw test",
10397
- "url": "/Knauf-Insulation-Super-Top-Up-200mm-Loft-Roll---5-61m%C2%B2/p/109451",
10398
- "minOrderQuantity": 0,
10399
- "maxOrderQuantity": null,
10400
- "fulfillmentAttributes": {
10401
- "type": "STANDARD",
10402
- "leadTimeDays": 1,
10403
- "supplierDelivered": false
10404
- },
10405
- "price": {
10406
- "value": 25.0,
10407
- "formattedValue": "£25",
10408
- "currencyIso": "GBP",
10409
- "formattedPriceWithoutCurrencySymbol": "25"
10410
- },
10411
- "categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
10412
- "brandName": "Knauf Insulation",
10413
- "categories": [
10414
- {
10415
- "code": "1000270",
10416
- "name": "Loft Insulation"
10417
- }
10418
- ],
10419
- "image": {
10420
- "url": "//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$normal$",
10421
- "altText": "Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²"
10422
- },
10423
- "pricePerSqm": 0.0,
10424
- "installationProduct": false
10425
- },
10426
- "updateable": true,
10427
- "deliveryPointOfService": null,
10428
- "charity": false,
10429
- "itemTotalWithoutDiscount": {
10430
- "value": 25.0,
10431
- "formattedValue": "£25",
10432
- "currencyIso": "GBP",
10433
- "formattedPriceWithoutCurrencySymbol": "25"
10434
- },
10435
- "itemTotalWithoutDiscountExcVat": {
10436
- "value": 24,
10437
- "formattedValue": "£24",
10438
- "currencyIso": "GBP",
10439
- "formattedPriceWithoutCurrencySymbol": "24"
10440
- },
10441
- "orderFulfilmentControls": {
10442
- "availableForDelivery": true,
10443
- "availableForCollection": true,
10444
- "availableForWickesFulfilment": false
10445
- }
10446
- }
10447
- ],
10448
- "quantity": null,
10449
- "totalPrice": {
10450
- "value": 25.0,
10451
- "formattedValue": "£25.00",
10452
- "currencyIso": "GBP",
10453
- "formattedPriceWithoutCurrencySymbol": "25.00"
10454
- }
10455
- }
10456
- ],
10457
- "paymentInfos": {"payPalEnabled": true, "payPalPaymentInfo": {"id": 123, "payer": "John.doe123@gmail.com"}},
10458
- "payPalEnabled": true,
10459
- "deliveryAddress": null,
10460
- "pickupUniqueItemsNumber": 3,
10461
- "deliveryUniqueItemsNumber": 1,
10462
- "totalUnitCount": 3,
10463
- "orderType": "CC"
10464
- },
10465
- initialCartEmptyState: {
10466
- "code": "696252001",
10467
- "subTotal": {"value": 10.0, "formattedValue": "£10.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "10.00"},
10468
- "totalTax": {"value": 3.17, "formattedValue": "£3.17", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "3.17"},
10469
- "deliveryCost": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
10470
- "charityPrice": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
10471
- "totalDiscounts": {"value": 5.0, "formattedValue": "£5.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "5.00"},
10472
- "totalPrice": {"value": 10.0, "formattedValue": "£10.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "10.00"},
10473
- "potentialProductPromotions": [],
10474
- "appliedProductPromotions": [],
10475
- "appliedOrderPromotions": [],
10476
- "promotionsInfo": null,
10477
- "clickAndCollectOnly": true,
10478
- "deliveryItemsQuantity": 1,
10479
- "pickupItemsQuantity": 2,
10480
- "freeDelivery": false,
10481
- "subtotalWithoutCharity": {"value": 10.0, "formattedValue": "£10.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "10.00"},
10482
- "messageForFreeDelivery": null,
10483
- "pickupOrderGroups": [],
10484
- "deliveryOrderGroups": [],
10485
- "paymentInfos": {"payPalEnabled": true, "payPalPaymentInfo": {"id": 123, "payer": "John.doe123@gmail.com"}},
10486
- "payPalEnabled": true,
10487
- "deliveryAddress": null,
10488
- "pickupUniqueItemsNumber": 3,
10489
- "deliveryUniqueItemsNumber": 1,
10490
- "totalUnitCount": 4,
10491
- "orderType": "CC"
10492
- },
10493
- updateCart: {
10494
- "code": "696252002",
10495
- "subTotal": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
10496
- "totalTax": {"value": 3.17, "formattedValue": "£3.17", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "3.17"},
10497
- "deliveryCost": {"value": 1.1, "formattedValue": "£1.10", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "1.10"},
10498
- "charityPrice": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
10499
- "totalDiscounts": {"value": 5.0, "formattedValue": "£5.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "5.00"},
10500
- "totalPrice": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
10501
- "potentialProductPromotions": [
10502
- {
10503
- "description": "Buy more to qualify for our buy 3 get 1 free offer",
10504
- "promotionData": {
10505
- "code": "TD_ProductBOGOFPromotionPotential",
10506
- "title": null,
10507
- "startDate": null,
10508
- "endDate": null,
10509
- "description": "Buy 3 get 1 free"
10510
- },
10511
- "consumedEntries": [
10512
- {
10513
- "orderEntryNumber": 1,
10514
- "quantity": 4
10515
- },
10516
- {
10517
- "orderEntryNumber": 2,
10518
- "quantity": 1
10519
- }
10520
- ],
10521
- "usedCouponCode": null
10522
- }
10523
- ],
10524
- "appliedProductPromotions": [
10525
- {
10526
- "description": "These item qualify for our buy 3 get 1 free offer - You have saved £36.00",
10527
- "promotionData": {
10528
- "code": "TD_ProductBOGOFPromotion",
10529
- "title": null,
10530
- "startDate": null,
10531
- "endDate": null,
10532
- "description": "Buy 3 get 1 free"
10533
- },
10534
- "consumedEntries": [
10535
- {
10536
- "orderEntryNumber": 1,
10537
- "quantity": 2
10538
- },
10539
- {
10540
- "orderEntryNumber": 2,
10541
- "quantity": 1
10542
- },
10543
- {
10544
- "orderEntryNumber": 1,
10545
- "quantity": 5
10546
- }
10547
- ],
10548
- "usedCouponCode": null
10549
- }
10550
- ],
10551
- "appliedOrderPromotions": [],
10552
- "promotionsInfo": [
10553
- {
10554
- "description": "Buy 3 get 1 free",
10555
- "usedCouponCode": ""
10556
- }
10557
- ],
10558
- "clickAndCollectOnly": false,
10559
- "deliveryItemsQuantity": 1,
10560
- "pickupItemsQuantity": 2,
10561
- "freeDelivery": true,
10562
- "subtotalWithoutCharity": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
10563
- "messageForFreeDelivery": "Free delivery<i class=\"icon fas fa-check\"></i>",
10564
- "pickupOrderGroups": [
10565
- {
10566
- "entries": [
10567
- {
10568
- "entryNumber": 1,
10569
- "quantity": 2,
10570
- "basePrice": {
10571
- "value": 16.0,
10572
- "formattedValue": "£16",
10573
- "currencyIso": "GBP",
10574
- "formattedPriceWithoutCurrencySymbol": "16"
10575
- },
10576
- "basePriceExcVat": {
10577
- "value": 18,
10578
- "formattedValue": "£18",
10579
- "currencyIso": "GBP",
10580
- "formattedPriceWithoutCurrencySymbol": "18"
10581
- },
10582
- "product": {
10583
- "code": "109450",
10584
- "name": "Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²",
10585
- "url": "/Knauf-Insulation-Space-Standard-Top-Up-170mm-Loft-Roll---6-47m%C2%B2/p/109450",
10586
- "minOrderQuantity": 0,
10587
- "maxOrderQuantity": null,
10588
- "fulfillmentAttributes": {
10589
- "type": "HOURLY_STANDARD",
10590
- "leadTimeDays": 1,
10591
- "supplierDelivered": false
10592
- },
10593
- "price": {
10594
- "value": 24.0,
10595
- "formattedValue": "£24",
10596
- "currencyIso": "GBP",
10597
- "formattedPriceWithoutCurrencySymbol": "24"
10598
- },
10599
- "categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
10600
- "brandName": "Knauf Insulation",
10601
- "categories": [
10602
- {
10603
- "code": "1000270",
10604
- "name": "Loft Insulation"
10605
- }
10606
- ],
10607
- "image": {
10608
- "url": "//media.wickes.co.uk/is/image/wickes/O0032_109450_00?$normal$",
10609
- "altText": "Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²"
10610
- },
10611
- "pricePerSqm": 0.0,
10612
- "installationProduct": false
10613
- },
10614
- "updateable": true,
10615
- "deliveryPointOfService": {
10616
- "name": "8397",
10617
- "description": "WATFORD"
10618
- },
10619
- "charity": false,
10620
- "itemTotalWithoutDiscount": {
10621
- "value": 24.0,
10622
- "formattedValue": "£24",
10623
- "currencyIso": "GBP",
10624
- "formattedPriceWithoutCurrencySymbol": "24"
10625
- },
10626
- "itemTotalWithoutDiscountExcVat": {
10627
- "value": 23,
10628
- "formattedValue": "£23",
10629
- "currencyIso": "GBP",
10630
- "formattedPriceWithoutCurrencySymbol": "23"
10631
- },
10632
- "orderFulfilmentControls": {
10633
- "availableForDelivery": true,
10634
- "availableForCollection": true,
10635
- "availableForWickesFulfilment": false
10636
- }
10637
- }
10638
- ],
10639
- "quantity": 1,
10640
- "totalPrice": {
10641
- "value": 40.5,
10642
- "formattedValue": "£40.50",
10643
- "currencyIso": "GBP",
10644
- "formattedPriceWithoutCurrencySymbol": "40.50"
10645
- }
10646
- }
10647
- ],
10648
- "deliveryOrderGroups": [
10649
- {
10650
- "entries": [
10651
- {
10652
- "entryNumber": 3,
10653
- "quantity": 3,
10654
- "basePrice": {
10655
- "value": 25.0,
10656
- "formattedValue": "£25",
10657
- "currencyIso": "GBP",
10658
- "formattedPriceWithoutCurrencySymbol": "25"
10659
- },
10660
- "basePriceExcVat": {
10661
- "value": 24,
10662
- "formattedValue": "£24",
10663
- "currencyIso": "GBP",
10664
- "formattedPriceWithoutCurrencySymbol": "24"
10665
- },
10666
- "product": {
10667
- "code": "109451",
10668
- "name": "Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²",
10669
- "url": "/Knauf-Insulation-Super-Top-Up-200mm-Loft-Roll---5-61m%C2%B2/p/109451",
10670
- "minOrderQuantity": 0,
10671
- "maxOrderQuantity": null,
10672
- "fulfillmentAttributes": {
10673
- "type": "STANDARD",
10674
- "leadTimeDays": 1,
10675
- "supplierDelivered": false
10676
- },
10677
- "price": {
10678
- "value": 25.0,
10679
- "formattedValue": "£25",
10680
- "currencyIso": "GBP",
10681
- "formattedPriceWithoutCurrencySymbol": "25"
10682
- },
10683
- "categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
10684
- "brandName": "Knauf Insulation",
10685
- "categories": [
10686
- {
10687
- "code": "1000270",
10688
- "name": "Loft Insulation"
10689
- }
10690
- ],
10691
- "image": {
10692
- "url": "//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$normal$",
10693
- "altText": "Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²"
10694
- },
10695
- "pricePerSqm": {
10696
- "value": 17,
10697
- "formattedValue": "£17",
10698
- "currencyIso": "GBP",
10699
- "formattedPriceWithoutCurrencySymbol": "17"
10700
- },
10701
- "pricePerSqmExcVat": {
10702
- "value": 16,
10703
- "formattedValue": "£16",
10704
- "currencyIso": "GBP",
10705
- "formattedPriceWithoutCurrencySymbol": "16"
10706
- },
10707
- "installationProduct": true
10708
- },
10709
- "updateable": true,
10710
- "deliveryPointOfService": null,
10711
- "charity": false,
10712
- "itemTotalWithoutDiscount": {
10713
- "value": 25.0,
10714
- "formattedValue": "£25",
10715
- "currencyIso": "GBP",
10716
- "formattedPriceWithoutCurrencySymbol": "25"
10717
- },
10718
- "itemTotalWithoutDiscountExcVat": {
10719
- "value": 24,
10720
- "formattedValue": "£24",
10721
- "currencyIso": "GBP",
10722
- "formattedPriceWithoutCurrencySymbol": "24"
10723
- },
10724
- "orderFulfilmentControls": {
10725
- "availableForDelivery": true,
10726
- "availableForCollection": true,
10727
- "availableForWickesFulfilment": false
10728
- }
10729
- },
10730
- ],
10731
- "quantity": null,
10732
- "totalPrice": {
10733
- "value": 25.0,
10734
- "formattedValue": "£25.00",
10735
- "currencyIso": "GBP",
10736
- "formattedPriceWithoutCurrencySymbol": "25.00"
10737
- }
10738
- }
10739
- ],
10740
- "paymentInfos": {"payPalEnabled": true, "payPalPaymentInfo": {"id": 123, "payer": "John.doe123@gmail.com"}},
10741
- "payPalEnabled": true,
10742
- "deliveryAddress": null,
10743
- "pickupUniqueItemsNumber": 3,
10744
- "deliveryUniqueItemsNumber": 1,
10745
- "totalUnitCount": 2,
10746
- "orderType": "CC"
10747
- },
10748
- }
10749
- })();
10750
-
10751
9807
  var Wick = Wick || {};
10752
9808
  Wick.ShoppingCart = (function(){
10753
9809
  var $btn = $('.header-minicart__switcher');