wickes-css2 2.96.0-develop.3 → 2.96.0-develop.4

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 (42) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/homepage-main.css +1 -1
  3. package/build/css/main.css +1 -1
  4. package/build/css/my-account-main-v2.css +1 -1
  5. package/build/css/my-account-main.css +1 -1
  6. package/build/css/pdp-main-before-combine.css +1 -1
  7. package/build/css/pdp-main-non-critical.css +1 -1
  8. package/build/css/pdp-main.css +1 -1
  9. package/build/css/plp-main.css +1 -1
  10. package/build/css/store-locator-main.css +1 -1
  11. package/build/js/basket.min.js +2 -2
  12. package/build/js/bundle.min.js +1 -1
  13. package/build/js/checkout.min.js +2 -2
  14. package/build/js/emulation.min.js +440 -6
  15. package/build/js/general.bundle.min.js +1 -1
  16. package/build/js/merged-checkout.min.js +2 -2
  17. package/build/js/page/basket-v2.js +3 -3
  18. package/build/js/page/components/order-summary.js +0 -1
  19. package/build/js/page/components/sticky-order-observer.js +7 -7
  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 +10 -2
  24. package/src/js/components/general/main-nav.js +14 -23
  25. package/src/js/components/general/switchVat.js +4 -1
  26. package/src/js/emulation/basket-data.js +436 -0
  27. package/src/js/emulation/main-nav-local.js +4 -6
  28. package/src/js/page/basket-v2.js +3 -3
  29. package/src/js/page/components/order-summary.js +0 -1
  30. package/src/js/page/components/sticky-order-observer.js +7 -7
  31. package/src/partials/main-nav.hbs +2 -6
  32. package/src/scss/components/_back-to-top.scss +45 -0
  33. package/src/scss/components/_order-summary.scss +0 -31
  34. package/src/scss/components/_sticky-element-appearance.scss +2 -3
  35. package/src/scss/partials/_main-nav.scss +0 -9
  36. package/src/sitemap.html +0 -11
  37. package/src/components/navigation/menu-item-sub.hbs +0 -33
  38. package/src/components/navigation/menu-item-top.hbs +0 -32
  39. package/src/components/navigation/menu-item.hbs +0 -32
  40. package/src/components/navigation/nav-wrapper.hbs +0 -12
  41. package/src/data/navigation.json +0 -854
  42. package/src/page_old-navigation.html +0 -10
@@ -736,6 +736,442 @@ Wick.BasketData = (function () {
736
736
  "entryGroupNumbers": null,
737
737
  "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."
738
738
  },
739
+ initialCartState: {
740
+ "code": "696252000",
741
+ "subTotal": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
742
+ "totalTax": {"value": 3.17, "formattedValue": "£3.17", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "3.17"},
743
+ "deliveryCost": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
744
+ "charityPrice": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
745
+ "totalDiscounts": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
746
+ "totalPrice": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
747
+ "potentialProductPromotions": [],
748
+ "appliedProductPromotions": [],
749
+ "appliedOrderPromotions": [],
750
+ "promotionsInfo": null,
751
+ "clickAndCollectOnly": true,
752
+ "deliveryItemsQuantity": 1,
753
+ "pickupItemsQuantity": 2,
754
+ "freeDelivery": false,
755
+ "subtotalWithoutCharity": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
756
+ "messageForFreeDelivery": null,
757
+ "pickupOrderGroups": [
758
+ {
759
+ "entries": [
760
+ {
761
+ "entryNumber": 0,
762
+ "quantity": 2,
763
+ "basePrice": {
764
+ "value": 100.0,
765
+ "formattedValue": "£100",
766
+ "currencyIso": "GBP",
767
+ "formattedPriceWithoutCurrencySymbol": "100"
768
+ },
769
+ "basePriceExcVat": {
770
+ "value": 99,
771
+ "formattedValue": "£99",
772
+ "currencyIso": "GBP",
773
+ "formattedPriceWithoutCurrencySymbol": "99"
774
+ },
775
+ "product": {
776
+ "code": "221100",
777
+ "name": "Blue Circle Ready To Use Postcrete - 20kg",
778
+ "url": "/Blue-Circle-Ready-To-Use-Postcrete---20kg/p/221100",
779
+ "minOrderQuantity": 0,
780
+ "maxOrderQuantity": null,
781
+ "fulfillmentAttributes": {
782
+ "type": "STANDARD_STORE_DELIVERED",
783
+ "leadTimeDays": 1,
784
+ "supplierDelivered": false
785
+ },
786
+ "price": {
787
+ "value": 100.0,
788
+ "formattedValue": "£100",
789
+ "currencyIso": "GBP",
790
+ "formattedPriceWithoutCurrencySymbol": "100"
791
+ },
792
+ "categoryPath": "Products/Building Materials/Cement & Aggregates/Cement",
793
+ "brandName": "Blue Circle",
794
+ "categories": [
795
+ {
796
+ "code": "1000208",
797
+ "name": "Cement"
798
+ },
799
+ {
800
+ "code": "1000211",
801
+ "name": "Concrete"
802
+ }
803
+ ],
804
+ "image": {
805
+ "url": "//media.dev.wickes.co.uk/is/image/wickes/B3182_221100_00?$normal$",
806
+ "altText": "Blue Circle Ready To Use Postcrete - 20kg"
807
+ },
808
+ "pricePerSqm": 0.0,
809
+ "installationProduct": false
810
+ },
811
+ "updateable": true,
812
+ "deliveryPointOfService": {
813
+ "name": "8901",
814
+ "description": "WX Test Store 12"
815
+ },
816
+ "charity": false,
817
+ "itemTotalWithoutDiscount": {
818
+ "value": 100.0,
819
+ "formattedValue": "£100",
820
+ "currencyIso": "GBP",
821
+ "formattedPriceWithoutCurrencySymbol": "100"
822
+ },
823
+ "itemTotalWithoutDiscountExcVat": {
824
+ "value": 99,
825
+ "formattedValue": "£99",
826
+ "currencyIso": "GBP",
827
+ "formattedPriceWithoutCurrencySymbol": "99"
828
+ },
829
+ "orderFulfilmentControls": {
830
+ "availableForDelivery": true,
831
+ "availableForCollection": true,
832
+ "availableForWickesFulfilment": false
833
+ }
834
+ }
835
+ ],
836
+ "quantity": 1,
837
+ "totalPrice": {
838
+ "value": 100.0,
839
+ "formattedValue": "£100.00",
840
+ "currencyIso": "GBP",
841
+ "formattedPriceWithoutCurrencySymbol": "100.00"
842
+ }
843
+ },
844
+ {
845
+ "entries": [
846
+ {
847
+ "entryNumber": 1,
848
+ "quantity": 2,
849
+ "basePrice": {
850
+ "value": 24.0,
851
+ "formattedValue": "£24",
852
+ "currencyIso": "GBP",
853
+ "formattedPriceWithoutCurrencySymbol": "24"
854
+ },
855
+ "basePriceExcVat": {
856
+ "value": 23,
857
+ "formattedValue": "£23",
858
+ "currencyIso": "GBP",
859
+ "formattedPriceWithoutCurrencySymbol": "23"
860
+ },
861
+ "product": {
862
+ "code": "109450",
863
+ "name": "Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²",
864
+ "url": "/Knauf-Insulation-Space-Standard-Top-Up-170mm-Loft-Roll---6-47m%C2%B2/p/109450",
865
+ "minOrderQuantity": 0,
866
+ "maxOrderQuantity": null,
867
+ "fulfillmentAttributes": {
868
+ "type": "HOURLY_STANDARD",
869
+ "leadTimeDays": 1,
870
+ "supplierDelivered": false
871
+ },
872
+ "price": {
873
+ "value": 24.0,
874
+ "formattedValue": "£24",
875
+ "currencyIso": "GBP",
876
+ "formattedPriceWithoutCurrencySymbol": "24"
877
+ },
878
+ "categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
879
+ "brandName": "Knauf Insulation",
880
+ "categories": [
881
+ {
882
+ "code": "1000270",
883
+ "name": "Loft Insulation"
884
+ }
885
+ ],
886
+ "image": {
887
+ "url": "//media.wickes.co.uk/is/image/wickes/O0032_109450_00?$normal$",
888
+ "altText": "Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²"
889
+ },
890
+ "pricePerSqm": 0.0,
891
+ "installationProduct": false
892
+ },
893
+ "updateable": true,
894
+ "deliveryPointOfService": {
895
+ "name": "8397",
896
+ "description": "WATFORD"
897
+ },
898
+ "charity": false,
899
+ "itemTotalWithoutDiscount": {
900
+ "value": 24.0,
901
+ "formattedValue": "£24",
902
+ "currencyIso": "GBP",
903
+ "formattedPriceWithoutCurrencySymbol": "24"
904
+ },
905
+ "itemTotalWithoutDiscountExcVat": {
906
+ "value": 23,
907
+ "formattedValue": "£23",
908
+ "currencyIso": "GBP",
909
+ "formattedPriceWithoutCurrencySymbol": "23"
910
+ },
911
+ "orderFulfilmentControls": {
912
+ "availableForDelivery": true,
913
+ "availableForCollection": true,
914
+ "availableForWickesFulfilment": false
915
+ }
916
+ },
917
+ {
918
+ "entryNumber": 2,
919
+ "quantity": 2,
920
+ "basePrice": {
921
+ "value": 0.0,
922
+ "formattedValue": "£0",
923
+ "currencyIso": "GBP",
924
+ "formattedPriceWithoutCurrencySymbol": "0"
925
+ },
926
+ "basePriceExcVat": {
927
+ "value": 0,
928
+ "formattedValue": "£0",
929
+ "currencyIso": "GBP",
930
+ "formattedPriceWithoutCurrencySymbol": "0"
931
+ },
932
+ "product": {
933
+ "code": "103123",
934
+ "name": "Wickes Passage Door Knob Set - Brass 1 Pair",
935
+ "url": "/Wickes-Passage-Door-Knob-Set---Brass-1-Pair/p/103123",
936
+ "minOrderQuantity": 0,
937
+ "maxOrderQuantity": null,
938
+ "fulfillmentAttributes": {
939
+ "type": "STANDARD",
940
+ "leadTimeDays": 1,
941
+ "supplierDelivered": false
942
+ },
943
+ "price": {
944
+ "value": 9.5,
945
+ "formattedValue": "£9.50",
946
+ "currencyIso": "GBP",
947
+ "formattedPriceWithoutCurrencySymbol": "9.50"
948
+ },
949
+ "categoryPath": "Products/Clearance",
950
+ "brandName": "Wickes",
951
+ "categories": [
952
+ {
953
+ "code": "1072000",
954
+ "name": "Clearance"
955
+ },
956
+ {
957
+ "code": "1065002",
958
+ "name": "Security & Hardware Clearance"
959
+ },
960
+ {
961
+ "code": "1022012",
962
+ "name": "Doors & Windows Clearance"
963
+ },
964
+ {
965
+ "code": "1008007",
966
+ "name": "Door Handles"
967
+ }
968
+ ],
969
+ "image": {
970
+ "url": "//media.wickes.co.uk/is/image/wickes/T3274_103123_00?$normal$",
971
+ "altText": "Wickes Passage Door Knob Set - Brass 1 Pair"
972
+ },
973
+ "pricePerSqm": 0.0,
974
+ "installationProduct": false
975
+ },
976
+ "updateable": false,
977
+ "deliveryPointOfService": null,
978
+ "charity": false,
979
+ "itemTotalWithoutDiscount": {
980
+ "value": 0.0,
981
+ "formattedValue": "£0",
982
+ "currencyIso": "GBP",
983
+ "formattedPriceWithoutCurrencySymbol": "0"
984
+ },
985
+ "itemTotalWithoutDiscountExcVat": {
986
+ "value": 0,
987
+ "formattedValue": "£0",
988
+ "currencyIso": "GBP",
989
+ "formattedPriceWithoutCurrencySymbol": "0"
990
+ },
991
+ "orderFulfilmentControls": {
992
+ "availableForDelivery": true,
993
+ "availableForCollection": true,
994
+ "availableForWickesFulfilment": false
995
+ }
996
+ }
997
+ ],
998
+ "quantity": 2,
999
+ "totalPrice": {
1000
+ "value": 40.5,
1001
+ "formattedValue": "£40.50",
1002
+ "currencyIso": "GBP",
1003
+ "formattedPriceWithoutCurrencySymbol": "40.50"
1004
+ }
1005
+ }
1006
+ ],
1007
+ "deliveryOrderGroups": [
1008
+ {
1009
+ "entries": [
1010
+ {
1011
+ "entryNumber": 3,
1012
+ "quantity": 3,
1013
+ "basePrice": {
1014
+ "value": 25.0,
1015
+ "formattedValue": "£25",
1016
+ "currencyIso": "GBP",
1017
+ "formattedPriceWithoutCurrencySymbol": "25"
1018
+ },
1019
+ "basePriceExcVat": {
1020
+ "value": 24,
1021
+ "formattedValue": "£24",
1022
+ "currencyIso": "GBP",
1023
+ "formattedPriceWithoutCurrencySymbol": "24"
1024
+ },
1025
+ "product": {
1026
+ "code": "109451",
1027
+ "name": "Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²",
1028
+ "url": "/Knauf-Insulation-Super-Top-Up-200mm-Loft-Roll---5-61m%C2%B2/p/109451",
1029
+ "minOrderQuantity": 0,
1030
+ "maxOrderQuantity": null,
1031
+ "fulfillmentAttributes": {
1032
+ "type": "STANDARD",
1033
+ "leadTimeDays": 1,
1034
+ "supplierDelivered": false
1035
+ },
1036
+ "price": {
1037
+ "value": 25.0,
1038
+ "formattedValue": "£25",
1039
+ "currencyIso": "GBP",
1040
+ "formattedPriceWithoutCurrencySymbol": "25"
1041
+ },
1042
+ "categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
1043
+ "brandName": "Knauf Insulation",
1044
+ "categories": [
1045
+ {
1046
+ "code": "1000270",
1047
+ "name": "Loft Insulation"
1048
+ }
1049
+ ],
1050
+ "image": {
1051
+ "url": "//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$normal$",
1052
+ "altText": "Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²"
1053
+ },
1054
+ "pricePerSqm": {
1055
+ "value": 17,
1056
+ "formattedValue": "£17",
1057
+ "currencyIso": "GBP",
1058
+ "formattedPriceWithoutCurrencySymbol": "17"
1059
+ },
1060
+ "pricePerSqmExcVat": {
1061
+ "value": 16,
1062
+ "formattedValue": "£16",
1063
+ "currencyIso": "GBP",
1064
+ "formattedPriceWithoutCurrencySymbol": "16"
1065
+ },
1066
+ "installationProduct": true
1067
+ },
1068
+ "updateable": true,
1069
+ "deliveryPointOfService": null,
1070
+ "charity": false,
1071
+ "itemTotalWithoutDiscount": {
1072
+ "value": 25.0,
1073
+ "formattedValue": "£25",
1074
+ "currencyIso": "GBP",
1075
+ "formattedPriceWithoutCurrencySymbol": "25"
1076
+ },
1077
+ "itemTotalWithoutDiscountExcVat": {
1078
+ "value": 24,
1079
+ "formattedValue": "£24",
1080
+ "currencyIso": "GBP",
1081
+ "formattedPriceWithoutCurrencySymbol": "24"
1082
+ },
1083
+ "orderFulfilmentControls": {
1084
+ "availableForDelivery": true,
1085
+ "availableForCollection": true,
1086
+ "availableForWickesFulfilment": false
1087
+ }
1088
+ },
1089
+ {
1090
+ "entryNumber": 4,
1091
+ "quantity": 1,
1092
+ "basePrice": {
1093
+ "value": 25.0,
1094
+ "formattedValue": "£25",
1095
+ "currencyIso": "GBP",
1096
+ "formattedPriceWithoutCurrencySymbol": "25"
1097
+ },
1098
+ "basePriceExcVat": {
1099
+ "value": 24,
1100
+ "formattedValue": "£24",
1101
+ "currencyIso": "GBP",
1102
+ "formattedPriceWithoutCurrencySymbol": "24"
1103
+ },
1104
+ "product": {
1105
+ "code": "123143",
1106
+ "name": "6 Wickes General Purpose Claw test",
1107
+ "url": "/Knauf-Insulation-Super-Top-Up-200mm-Loft-Roll---5-61m%C2%B2/p/109451",
1108
+ "minOrderQuantity": 0,
1109
+ "maxOrderQuantity": null,
1110
+ "fulfillmentAttributes": {
1111
+ "type": "STANDARD",
1112
+ "leadTimeDays": 1,
1113
+ "supplierDelivered": false
1114
+ },
1115
+ "price": {
1116
+ "value": 25.0,
1117
+ "formattedValue": "£25",
1118
+ "currencyIso": "GBP",
1119
+ "formattedPriceWithoutCurrencySymbol": "25"
1120
+ },
1121
+ "categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
1122
+ "brandName": "Knauf Insulation",
1123
+ "categories": [
1124
+ {
1125
+ "code": "1000270",
1126
+ "name": "Loft Insulation"
1127
+ }
1128
+ ],
1129
+ "image": {
1130
+ "url": "//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$normal$",
1131
+ "altText": "Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²"
1132
+ },
1133
+ "pricePerSqm": 0.0,
1134
+ "installationProduct": false
1135
+ },
1136
+ "updateable": true,
1137
+ "deliveryPointOfService": null,
1138
+ "charity": false,
1139
+ "itemTotalWithoutDiscount": {
1140
+ "value": 25.0,
1141
+ "formattedValue": "£25",
1142
+ "currencyIso": "GBP",
1143
+ "formattedPriceWithoutCurrencySymbol": "25"
1144
+ },
1145
+ "itemTotalWithoutDiscountExcVat": {
1146
+ "value": 24,
1147
+ "formattedValue": "£24",
1148
+ "currencyIso": "GBP",
1149
+ "formattedPriceWithoutCurrencySymbol": "24"
1150
+ },
1151
+ "orderFulfilmentControls": {
1152
+ "availableForDelivery": true,
1153
+ "availableForCollection": true,
1154
+ "availableForWickesFulfilment": false
1155
+ }
1156
+ }
1157
+ ],
1158
+ "quantity": null,
1159
+ "totalPrice": {
1160
+ "value": 25.0,
1161
+ "formattedValue": "£25.00",
1162
+ "currencyIso": "GBP",
1163
+ "formattedPriceWithoutCurrencySymbol": "25.00"
1164
+ }
1165
+ }
1166
+ ],
1167
+ "paymentInfos": {"payPalEnabled": true, "payPalPaymentInfo": {"id": 123, "payer": "John.doe123@gmail.com"}},
1168
+ "payPalEnabled": true,
1169
+ "deliveryAddress": null,
1170
+ "pickupUniqueItemsNumber": 3,
1171
+ "deliveryUniqueItemsNumber": 1,
1172
+ "totalUnitCount": 2,
1173
+ "orderType": "CC"
1174
+ },
739
1175
  updateCart: {
740
1176
  "code": "696252000",
741
1177
  "subTotal": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
@@ -5614,26 +6050,24 @@ Wick.MainNavData = (function () {
5614
6050
  })();
5615
6051
 
5616
6052
  var Wick = Wick || {};
5617
-
5618
- Wick.MainNavLocal = function(){
6053
+ Wick.MainNavLocal = (function(){
5619
6054
  function init() {
5620
6055
  var localOptions = {
5621
6056
  local: true,
5622
6057
  mockData: Wick.MainNavData.returnData()
5623
6058
  };
5624
6059
 
5625
- if (!$('#main-nav').length || !$('.ssc-nav').length) {
6060
+ if (!$('#main-nav').length) {
5626
6061
  return;
5627
6062
  }
5628
6063
 
5629
-
5630
6064
  setTimeout(()=> {
5631
6065
  Wick.MainNav.createMainNav(localOptions);
5632
6066
  }, 2000)
5633
6067
  }
5634
6068
 
5635
- init()
5636
- }();
6069
+ init();
6070
+ })();
5637
6071
 
5638
6072
  var Wick = Wick || {};
5639
6073
  Wick.ShoppingCart = (function(){