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.
- package/build/css/category-main.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/my-account-main.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/js/basket.min.js +2 -2
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +2 -2
- package/build/js/emulation.min.js +440 -6
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +2 -2
- package/build/js/page/basket-v2.js +3 -3
- package/build/js/page/components/order-summary.js +0 -1
- package/build/js/page/components/sticky-order-observer.js +7 -7
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/package.json +10 -2
- package/src/js/components/general/main-nav.js +14 -23
- package/src/js/components/general/switchVat.js +4 -1
- package/src/js/emulation/basket-data.js +436 -0
- package/src/js/emulation/main-nav-local.js +4 -6
- package/src/js/page/basket-v2.js +3 -3
- package/src/js/page/components/order-summary.js +0 -1
- package/src/js/page/components/sticky-order-observer.js +7 -7
- package/src/partials/main-nav.hbs +2 -6
- package/src/scss/components/_back-to-top.scss +45 -0
- package/src/scss/components/_order-summary.scss +0 -31
- package/src/scss/components/_sticky-element-appearance.scss +2 -3
- package/src/scss/partials/_main-nav.scss +0 -9
- package/src/sitemap.html +0 -11
- package/src/components/navigation/menu-item-sub.hbs +0 -33
- package/src/components/navigation/menu-item-top.hbs +0 -32
- package/src/components/navigation/menu-item.hbs +0 -32
- package/src/components/navigation/nav-wrapper.hbs +0 -12
- package/src/data/navigation.json +0 -854
- package/src/page_old-navigation.html +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wickes-css2",
|
|
3
|
-
"version": "2.96.0-develop.
|
|
3
|
+
"version": "2.96.0-develop.4",
|
|
4
4
|
"description": "CSS and JS and page templates in use by Wickes",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -108,7 +108,15 @@
|
|
|
108
108
|
"branches": [
|
|
109
109
|
"alt-master",
|
|
110
110
|
{
|
|
111
|
-
"name": "
|
|
111
|
+
"name": "develop",
|
|
112
|
+
"prerelease": true
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "preprod",
|
|
116
|
+
"prerelease": true
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "custom-tag/*",
|
|
112
120
|
"prerelease": "${name.replace(/^custom-tag\\//g, '')}"
|
|
113
121
|
}
|
|
114
122
|
],
|
|
@@ -34,7 +34,7 @@ Wick.MainNav = (function () {
|
|
|
34
34
|
<ul class="main-nav__menu">
|
|
35
35
|
${menuSection.children.map(createMainNavItems).join('')}
|
|
36
36
|
</ul>
|
|
37
|
-
|
|
37
|
+
</div>
|
|
38
38
|
</li>
|
|
39
39
|
`
|
|
40
40
|
} else {
|
|
@@ -66,9 +66,6 @@ Wick.MainNav = (function () {
|
|
|
66
66
|
function createMainNavItems(menuSection) {
|
|
67
67
|
if (menuSection) {
|
|
68
68
|
if (menuSection.children && menuSection.children.length) {
|
|
69
|
-
if(menuSection.originalChildrenCount) {
|
|
70
|
-
console.log(menuSection)
|
|
71
|
-
}
|
|
72
69
|
return `
|
|
73
70
|
<li class="main-nav__menu__item nav-col">
|
|
74
71
|
<a href="${checkUrl(menuSection)}" class="main-nav__menu__label ${setClass(menuSection, 2)}" tabindex="0" ${setColor(menuSection)}>
|
|
@@ -262,31 +259,25 @@ Wick.MainNav = (function () {
|
|
|
262
259
|
});
|
|
263
260
|
}
|
|
264
261
|
|
|
265
|
-
|
|
266
|
-
return $mainNav.attr('data-ssr') === 'true'
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if (isSSR()) {
|
|
270
|
-
Wick.Nav();
|
|
271
|
-
Wick.Responsive.callBr();
|
|
272
|
-
} else {
|
|
273
|
-
checkIfRealEnvironment();
|
|
274
|
-
}
|
|
262
|
+
checkIfRealEnvironment();
|
|
275
263
|
}
|
|
276
264
|
}
|
|
277
265
|
})();
|
|
278
266
|
|
|
279
267
|
$(document).ready(function () {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
268
|
+
function init() {
|
|
269
|
+
const defaultOptions = {
|
|
270
|
+
type: 'GET',
|
|
271
|
+
cache: true,
|
|
272
|
+
link: window.location.origin,
|
|
273
|
+
local: false
|
|
274
|
+
};
|
|
286
275
|
|
|
287
|
-
|
|
288
|
-
|
|
276
|
+
if (!$('#main-nav').length) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
Wick.MainNav.createMainNav(defaultOptions);
|
|
289
280
|
}
|
|
290
281
|
|
|
291
|
-
|
|
282
|
+
init();
|
|
292
283
|
});
|
|
@@ -54,7 +54,10 @@ Wick.VatToggle = {
|
|
|
54
54
|
},
|
|
55
55
|
|
|
56
56
|
isToggleVatAvailable: function() {
|
|
57
|
-
|
|
57
|
+
//added so that it doesn't trigger in the local environment
|
|
58
|
+
if (!Wick.checkLocalEnv) {
|
|
59
|
+
return window.ACC.app.isVatToggleAvailable;
|
|
60
|
+
}
|
|
58
61
|
},
|
|
59
62
|
|
|
60
63
|
isOn: function () {
|
|
@@ -431,6 +431,442 @@ Wick.BasketData = (function () {
|
|
|
431
431
|
"entryGroupNumbers": null,
|
|
432
432
|
"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."
|
|
433
433
|
},
|
|
434
|
+
initialCartState: {
|
|
435
|
+
"code": "696252000",
|
|
436
|
+
"subTotal": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
|
|
437
|
+
"totalTax": {"value": 3.17, "formattedValue": "£3.17", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "3.17"},
|
|
438
|
+
"deliveryCost": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
|
|
439
|
+
"charityPrice": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
|
|
440
|
+
"totalDiscounts": {"value": 0.0, "formattedValue": "£0.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "0.00"},
|
|
441
|
+
"totalPrice": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
|
|
442
|
+
"potentialProductPromotions": [],
|
|
443
|
+
"appliedProductPromotions": [],
|
|
444
|
+
"appliedOrderPromotions": [],
|
|
445
|
+
"promotionsInfo": null,
|
|
446
|
+
"clickAndCollectOnly": true,
|
|
447
|
+
"deliveryItemsQuantity": 1,
|
|
448
|
+
"pickupItemsQuantity": 2,
|
|
449
|
+
"freeDelivery": false,
|
|
450
|
+
"subtotalWithoutCharity": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
|
|
451
|
+
"messageForFreeDelivery": null,
|
|
452
|
+
"pickupOrderGroups": [
|
|
453
|
+
{
|
|
454
|
+
"entries": [
|
|
455
|
+
{
|
|
456
|
+
"entryNumber": 0,
|
|
457
|
+
"quantity": 2,
|
|
458
|
+
"basePrice": {
|
|
459
|
+
"value": 100.0,
|
|
460
|
+
"formattedValue": "£100",
|
|
461
|
+
"currencyIso": "GBP",
|
|
462
|
+
"formattedPriceWithoutCurrencySymbol": "100"
|
|
463
|
+
},
|
|
464
|
+
"basePriceExcVat": {
|
|
465
|
+
"value": 99,
|
|
466
|
+
"formattedValue": "£99",
|
|
467
|
+
"currencyIso": "GBP",
|
|
468
|
+
"formattedPriceWithoutCurrencySymbol": "99"
|
|
469
|
+
},
|
|
470
|
+
"product": {
|
|
471
|
+
"code": "221100",
|
|
472
|
+
"name": "Blue Circle Ready To Use Postcrete - 20kg",
|
|
473
|
+
"url": "/Blue-Circle-Ready-To-Use-Postcrete---20kg/p/221100",
|
|
474
|
+
"minOrderQuantity": 0,
|
|
475
|
+
"maxOrderQuantity": null,
|
|
476
|
+
"fulfillmentAttributes": {
|
|
477
|
+
"type": "STANDARD_STORE_DELIVERED",
|
|
478
|
+
"leadTimeDays": 1,
|
|
479
|
+
"supplierDelivered": false
|
|
480
|
+
},
|
|
481
|
+
"price": {
|
|
482
|
+
"value": 100.0,
|
|
483
|
+
"formattedValue": "£100",
|
|
484
|
+
"currencyIso": "GBP",
|
|
485
|
+
"formattedPriceWithoutCurrencySymbol": "100"
|
|
486
|
+
},
|
|
487
|
+
"categoryPath": "Products/Building Materials/Cement & Aggregates/Cement",
|
|
488
|
+
"brandName": "Blue Circle",
|
|
489
|
+
"categories": [
|
|
490
|
+
{
|
|
491
|
+
"code": "1000208",
|
|
492
|
+
"name": "Cement"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"code": "1000211",
|
|
496
|
+
"name": "Concrete"
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"image": {
|
|
500
|
+
"url": "//media.dev.wickes.co.uk/is/image/wickes/B3182_221100_00?$normal$",
|
|
501
|
+
"altText": "Blue Circle Ready To Use Postcrete - 20kg"
|
|
502
|
+
},
|
|
503
|
+
"pricePerSqm": 0.0,
|
|
504
|
+
"installationProduct": false
|
|
505
|
+
},
|
|
506
|
+
"updateable": true,
|
|
507
|
+
"deliveryPointOfService": {
|
|
508
|
+
"name": "8901",
|
|
509
|
+
"description": "WX Test Store 12"
|
|
510
|
+
},
|
|
511
|
+
"charity": false,
|
|
512
|
+
"itemTotalWithoutDiscount": {
|
|
513
|
+
"value": 100.0,
|
|
514
|
+
"formattedValue": "£100",
|
|
515
|
+
"currencyIso": "GBP",
|
|
516
|
+
"formattedPriceWithoutCurrencySymbol": "100"
|
|
517
|
+
},
|
|
518
|
+
"itemTotalWithoutDiscountExcVat": {
|
|
519
|
+
"value": 99,
|
|
520
|
+
"formattedValue": "£99",
|
|
521
|
+
"currencyIso": "GBP",
|
|
522
|
+
"formattedPriceWithoutCurrencySymbol": "99"
|
|
523
|
+
},
|
|
524
|
+
"orderFulfilmentControls": {
|
|
525
|
+
"availableForDelivery": true,
|
|
526
|
+
"availableForCollection": true,
|
|
527
|
+
"availableForWickesFulfilment": false
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"quantity": 1,
|
|
532
|
+
"totalPrice": {
|
|
533
|
+
"value": 100.0,
|
|
534
|
+
"formattedValue": "£100.00",
|
|
535
|
+
"currencyIso": "GBP",
|
|
536
|
+
"formattedPriceWithoutCurrencySymbol": "100.00"
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"entries": [
|
|
541
|
+
{
|
|
542
|
+
"entryNumber": 1,
|
|
543
|
+
"quantity": 2,
|
|
544
|
+
"basePrice": {
|
|
545
|
+
"value": 24.0,
|
|
546
|
+
"formattedValue": "£24",
|
|
547
|
+
"currencyIso": "GBP",
|
|
548
|
+
"formattedPriceWithoutCurrencySymbol": "24"
|
|
549
|
+
},
|
|
550
|
+
"basePriceExcVat": {
|
|
551
|
+
"value": 23,
|
|
552
|
+
"formattedValue": "£23",
|
|
553
|
+
"currencyIso": "GBP",
|
|
554
|
+
"formattedPriceWithoutCurrencySymbol": "23"
|
|
555
|
+
},
|
|
556
|
+
"product": {
|
|
557
|
+
"code": "109450",
|
|
558
|
+
"name": "Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²",
|
|
559
|
+
"url": "/Knauf-Insulation-Space-Standard-Top-Up-170mm-Loft-Roll---6-47m%C2%B2/p/109450",
|
|
560
|
+
"minOrderQuantity": 0,
|
|
561
|
+
"maxOrderQuantity": null,
|
|
562
|
+
"fulfillmentAttributes": {
|
|
563
|
+
"type": "HOURLY_STANDARD",
|
|
564
|
+
"leadTimeDays": 1,
|
|
565
|
+
"supplierDelivered": false
|
|
566
|
+
},
|
|
567
|
+
"price": {
|
|
568
|
+
"value": 24.0,
|
|
569
|
+
"formattedValue": "£24",
|
|
570
|
+
"currencyIso": "GBP",
|
|
571
|
+
"formattedPriceWithoutCurrencySymbol": "24"
|
|
572
|
+
},
|
|
573
|
+
"categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
|
|
574
|
+
"brandName": "Knauf Insulation",
|
|
575
|
+
"categories": [
|
|
576
|
+
{
|
|
577
|
+
"code": "1000270",
|
|
578
|
+
"name": "Loft Insulation"
|
|
579
|
+
}
|
|
580
|
+
],
|
|
581
|
+
"image": {
|
|
582
|
+
"url": "//media.wickes.co.uk/is/image/wickes/O0032_109450_00?$normal$",
|
|
583
|
+
"altText": "Knauf Insulation Space Standard Top Up 170mm Loft Roll - 6.47m²"
|
|
584
|
+
},
|
|
585
|
+
"pricePerSqm": 0.0,
|
|
586
|
+
"installationProduct": false
|
|
587
|
+
},
|
|
588
|
+
"updateable": true,
|
|
589
|
+
"deliveryPointOfService": {
|
|
590
|
+
"name": "8397",
|
|
591
|
+
"description": "WATFORD"
|
|
592
|
+
},
|
|
593
|
+
"charity": false,
|
|
594
|
+
"itemTotalWithoutDiscount": {
|
|
595
|
+
"value": 24.0,
|
|
596
|
+
"formattedValue": "£24",
|
|
597
|
+
"currencyIso": "GBP",
|
|
598
|
+
"formattedPriceWithoutCurrencySymbol": "24"
|
|
599
|
+
},
|
|
600
|
+
"itemTotalWithoutDiscountExcVat": {
|
|
601
|
+
"value": 23,
|
|
602
|
+
"formattedValue": "£23",
|
|
603
|
+
"currencyIso": "GBP",
|
|
604
|
+
"formattedPriceWithoutCurrencySymbol": "23"
|
|
605
|
+
},
|
|
606
|
+
"orderFulfilmentControls": {
|
|
607
|
+
"availableForDelivery": true,
|
|
608
|
+
"availableForCollection": true,
|
|
609
|
+
"availableForWickesFulfilment": false
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"entryNumber": 2,
|
|
614
|
+
"quantity": 2,
|
|
615
|
+
"basePrice": {
|
|
616
|
+
"value": 0.0,
|
|
617
|
+
"formattedValue": "£0",
|
|
618
|
+
"currencyIso": "GBP",
|
|
619
|
+
"formattedPriceWithoutCurrencySymbol": "0"
|
|
620
|
+
},
|
|
621
|
+
"basePriceExcVat": {
|
|
622
|
+
"value": 0,
|
|
623
|
+
"formattedValue": "£0",
|
|
624
|
+
"currencyIso": "GBP",
|
|
625
|
+
"formattedPriceWithoutCurrencySymbol": "0"
|
|
626
|
+
},
|
|
627
|
+
"product": {
|
|
628
|
+
"code": "103123",
|
|
629
|
+
"name": "Wickes Passage Door Knob Set - Brass 1 Pair",
|
|
630
|
+
"url": "/Wickes-Passage-Door-Knob-Set---Brass-1-Pair/p/103123",
|
|
631
|
+
"minOrderQuantity": 0,
|
|
632
|
+
"maxOrderQuantity": null,
|
|
633
|
+
"fulfillmentAttributes": {
|
|
634
|
+
"type": "STANDARD",
|
|
635
|
+
"leadTimeDays": 1,
|
|
636
|
+
"supplierDelivered": false
|
|
637
|
+
},
|
|
638
|
+
"price": {
|
|
639
|
+
"value": 9.5,
|
|
640
|
+
"formattedValue": "£9.50",
|
|
641
|
+
"currencyIso": "GBP",
|
|
642
|
+
"formattedPriceWithoutCurrencySymbol": "9.50"
|
|
643
|
+
},
|
|
644
|
+
"categoryPath": "Products/Clearance",
|
|
645
|
+
"brandName": "Wickes",
|
|
646
|
+
"categories": [
|
|
647
|
+
{
|
|
648
|
+
"code": "1072000",
|
|
649
|
+
"name": "Clearance"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"code": "1065002",
|
|
653
|
+
"name": "Security & Hardware Clearance"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"code": "1022012",
|
|
657
|
+
"name": "Doors & Windows Clearance"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"code": "1008007",
|
|
661
|
+
"name": "Door Handles"
|
|
662
|
+
}
|
|
663
|
+
],
|
|
664
|
+
"image": {
|
|
665
|
+
"url": "//media.wickes.co.uk/is/image/wickes/T3274_103123_00?$normal$",
|
|
666
|
+
"altText": "Wickes Passage Door Knob Set - Brass 1 Pair"
|
|
667
|
+
},
|
|
668
|
+
"pricePerSqm": 0.0,
|
|
669
|
+
"installationProduct": false
|
|
670
|
+
},
|
|
671
|
+
"updateable": false,
|
|
672
|
+
"deliveryPointOfService": null,
|
|
673
|
+
"charity": false,
|
|
674
|
+
"itemTotalWithoutDiscount": {
|
|
675
|
+
"value": 0.0,
|
|
676
|
+
"formattedValue": "£0",
|
|
677
|
+
"currencyIso": "GBP",
|
|
678
|
+
"formattedPriceWithoutCurrencySymbol": "0"
|
|
679
|
+
},
|
|
680
|
+
"itemTotalWithoutDiscountExcVat": {
|
|
681
|
+
"value": 0,
|
|
682
|
+
"formattedValue": "£0",
|
|
683
|
+
"currencyIso": "GBP",
|
|
684
|
+
"formattedPriceWithoutCurrencySymbol": "0"
|
|
685
|
+
},
|
|
686
|
+
"orderFulfilmentControls": {
|
|
687
|
+
"availableForDelivery": true,
|
|
688
|
+
"availableForCollection": true,
|
|
689
|
+
"availableForWickesFulfilment": false
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
"quantity": 2,
|
|
694
|
+
"totalPrice": {
|
|
695
|
+
"value": 40.5,
|
|
696
|
+
"formattedValue": "£40.50",
|
|
697
|
+
"currencyIso": "GBP",
|
|
698
|
+
"formattedPriceWithoutCurrencySymbol": "40.50"
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
],
|
|
702
|
+
"deliveryOrderGroups": [
|
|
703
|
+
{
|
|
704
|
+
"entries": [
|
|
705
|
+
{
|
|
706
|
+
"entryNumber": 3,
|
|
707
|
+
"quantity": 3,
|
|
708
|
+
"basePrice": {
|
|
709
|
+
"value": 25.0,
|
|
710
|
+
"formattedValue": "£25",
|
|
711
|
+
"currencyIso": "GBP",
|
|
712
|
+
"formattedPriceWithoutCurrencySymbol": "25"
|
|
713
|
+
},
|
|
714
|
+
"basePriceExcVat": {
|
|
715
|
+
"value": 24,
|
|
716
|
+
"formattedValue": "£24",
|
|
717
|
+
"currencyIso": "GBP",
|
|
718
|
+
"formattedPriceWithoutCurrencySymbol": "24"
|
|
719
|
+
},
|
|
720
|
+
"product": {
|
|
721
|
+
"code": "109451",
|
|
722
|
+
"name": "Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²",
|
|
723
|
+
"url": "/Knauf-Insulation-Super-Top-Up-200mm-Loft-Roll---5-61m%C2%B2/p/109451",
|
|
724
|
+
"minOrderQuantity": 0,
|
|
725
|
+
"maxOrderQuantity": null,
|
|
726
|
+
"fulfillmentAttributes": {
|
|
727
|
+
"type": "STANDARD",
|
|
728
|
+
"leadTimeDays": 1,
|
|
729
|
+
"supplierDelivered": false
|
|
730
|
+
},
|
|
731
|
+
"price": {
|
|
732
|
+
"value": 25.0,
|
|
733
|
+
"formattedValue": "£25",
|
|
734
|
+
"currencyIso": "GBP",
|
|
735
|
+
"formattedPriceWithoutCurrencySymbol": "25"
|
|
736
|
+
},
|
|
737
|
+
"categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
|
|
738
|
+
"brandName": "Knauf Insulation",
|
|
739
|
+
"categories": [
|
|
740
|
+
{
|
|
741
|
+
"code": "1000270",
|
|
742
|
+
"name": "Loft Insulation"
|
|
743
|
+
}
|
|
744
|
+
],
|
|
745
|
+
"image": {
|
|
746
|
+
"url": "//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$normal$",
|
|
747
|
+
"altText": "Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²"
|
|
748
|
+
},
|
|
749
|
+
"pricePerSqm": {
|
|
750
|
+
"value": 17,
|
|
751
|
+
"formattedValue": "£17",
|
|
752
|
+
"currencyIso": "GBP",
|
|
753
|
+
"formattedPriceWithoutCurrencySymbol": "17"
|
|
754
|
+
},
|
|
755
|
+
"pricePerSqmExcVat": {
|
|
756
|
+
"value": 16,
|
|
757
|
+
"formattedValue": "£16",
|
|
758
|
+
"currencyIso": "GBP",
|
|
759
|
+
"formattedPriceWithoutCurrencySymbol": "16"
|
|
760
|
+
},
|
|
761
|
+
"installationProduct": true
|
|
762
|
+
},
|
|
763
|
+
"updateable": true,
|
|
764
|
+
"deliveryPointOfService": null,
|
|
765
|
+
"charity": false,
|
|
766
|
+
"itemTotalWithoutDiscount": {
|
|
767
|
+
"value": 25.0,
|
|
768
|
+
"formattedValue": "£25",
|
|
769
|
+
"currencyIso": "GBP",
|
|
770
|
+
"formattedPriceWithoutCurrencySymbol": "25"
|
|
771
|
+
},
|
|
772
|
+
"itemTotalWithoutDiscountExcVat": {
|
|
773
|
+
"value": 24,
|
|
774
|
+
"formattedValue": "£24",
|
|
775
|
+
"currencyIso": "GBP",
|
|
776
|
+
"formattedPriceWithoutCurrencySymbol": "24"
|
|
777
|
+
},
|
|
778
|
+
"orderFulfilmentControls": {
|
|
779
|
+
"availableForDelivery": true,
|
|
780
|
+
"availableForCollection": true,
|
|
781
|
+
"availableForWickesFulfilment": false
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"entryNumber": 4,
|
|
786
|
+
"quantity": 1,
|
|
787
|
+
"basePrice": {
|
|
788
|
+
"value": 25.0,
|
|
789
|
+
"formattedValue": "£25",
|
|
790
|
+
"currencyIso": "GBP",
|
|
791
|
+
"formattedPriceWithoutCurrencySymbol": "25"
|
|
792
|
+
},
|
|
793
|
+
"basePriceExcVat": {
|
|
794
|
+
"value": 24,
|
|
795
|
+
"formattedValue": "£24",
|
|
796
|
+
"currencyIso": "GBP",
|
|
797
|
+
"formattedPriceWithoutCurrencySymbol": "24"
|
|
798
|
+
},
|
|
799
|
+
"product": {
|
|
800
|
+
"code": "123143",
|
|
801
|
+
"name": "6 Wickes General Purpose Claw test",
|
|
802
|
+
"url": "/Knauf-Insulation-Super-Top-Up-200mm-Loft-Roll---5-61m%C2%B2/p/109451",
|
|
803
|
+
"minOrderQuantity": 0,
|
|
804
|
+
"maxOrderQuantity": null,
|
|
805
|
+
"fulfillmentAttributes": {
|
|
806
|
+
"type": "STANDARD",
|
|
807
|
+
"leadTimeDays": 1,
|
|
808
|
+
"supplierDelivered": false
|
|
809
|
+
},
|
|
810
|
+
"price": {
|
|
811
|
+
"value": 25.0,
|
|
812
|
+
"formattedValue": "£25",
|
|
813
|
+
"currencyIso": "GBP",
|
|
814
|
+
"formattedPriceWithoutCurrencySymbol": "25"
|
|
815
|
+
},
|
|
816
|
+
"categoryPath": "Products/Building Materials/Insulation/Loft Insulation",
|
|
817
|
+
"brandName": "Knauf Insulation",
|
|
818
|
+
"categories": [
|
|
819
|
+
{
|
|
820
|
+
"code": "1000270",
|
|
821
|
+
"name": "Loft Insulation"
|
|
822
|
+
}
|
|
823
|
+
],
|
|
824
|
+
"image": {
|
|
825
|
+
"url": "//media.wickes.co.uk/is/image/wickes/O0032_109451_00?$normal$",
|
|
826
|
+
"altText": "Knauf Insulation Super Top Up 200mm Loft Roll - 5.61m²"
|
|
827
|
+
},
|
|
828
|
+
"pricePerSqm": 0.0,
|
|
829
|
+
"installationProduct": false
|
|
830
|
+
},
|
|
831
|
+
"updateable": true,
|
|
832
|
+
"deliveryPointOfService": null,
|
|
833
|
+
"charity": false,
|
|
834
|
+
"itemTotalWithoutDiscount": {
|
|
835
|
+
"value": 25.0,
|
|
836
|
+
"formattedValue": "£25",
|
|
837
|
+
"currencyIso": "GBP",
|
|
838
|
+
"formattedPriceWithoutCurrencySymbol": "25"
|
|
839
|
+
},
|
|
840
|
+
"itemTotalWithoutDiscountExcVat": {
|
|
841
|
+
"value": 24,
|
|
842
|
+
"formattedValue": "£24",
|
|
843
|
+
"currencyIso": "GBP",
|
|
844
|
+
"formattedPriceWithoutCurrencySymbol": "24"
|
|
845
|
+
},
|
|
846
|
+
"orderFulfilmentControls": {
|
|
847
|
+
"availableForDelivery": true,
|
|
848
|
+
"availableForCollection": true,
|
|
849
|
+
"availableForWickesFulfilment": false
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"quantity": null,
|
|
854
|
+
"totalPrice": {
|
|
855
|
+
"value": 25.0,
|
|
856
|
+
"formattedValue": "£25.00",
|
|
857
|
+
"currencyIso": "GBP",
|
|
858
|
+
"formattedPriceWithoutCurrencySymbol": "25.00"
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
],
|
|
862
|
+
"paymentInfos": {"payPalEnabled": true, "payPalPaymentInfo": {"id": 123, "payer": "John.doe123@gmail.com"}},
|
|
863
|
+
"payPalEnabled": true,
|
|
864
|
+
"deliveryAddress": null,
|
|
865
|
+
"pickupUniqueItemsNumber": 3,
|
|
866
|
+
"deliveryUniqueItemsNumber": 1,
|
|
867
|
+
"totalUnitCount": 2,
|
|
868
|
+
"orderType": "CC"
|
|
869
|
+
},
|
|
434
870
|
updateCart: {
|
|
435
871
|
"code": "696252000",
|
|
436
872
|
"subTotal": {"value": 19.0, "formattedValue": "£19.00", "currencyIso": "GBP", "formattedPriceWithoutCurrencySymbol": "19.00"},
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
var Wick = Wick || {};
|
|
2
|
-
|
|
3
|
-
Wick.MainNavLocal = function(){
|
|
2
|
+
Wick.MainNavLocal = (function(){
|
|
4
3
|
function init() {
|
|
5
4
|
var localOptions = {
|
|
6
5
|
local: true,
|
|
7
6
|
mockData: Wick.MainNavData.returnData()
|
|
8
7
|
};
|
|
9
8
|
|
|
10
|
-
if (!$('#main-nav').length
|
|
9
|
+
if (!$('#main-nav').length) {
|
|
11
10
|
return;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
|
|
15
13
|
setTimeout(()=> {
|
|
16
14
|
Wick.MainNav.createMainNav(localOptions);
|
|
17
15
|
}, 2000)
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
init()
|
|
21
|
-
}();
|
|
18
|
+
init();
|
|
19
|
+
})();
|
package/src/js/page/basket-v2.js
CHANGED
|
@@ -385,9 +385,9 @@ Wick.BasketPage = {
|
|
|
385
385
|
callAction(payload, actionCallback, info)
|
|
386
386
|
} else {
|
|
387
387
|
if (initial) {
|
|
388
|
-
Wick.BasketPage.getCartEntries(Wick.BasketData.
|
|
389
|
-
addClassToSummaryAside(Wick.BasketData.
|
|
390
|
-
const initialTotalPrice = Wick.BasketData.
|
|
388
|
+
Wick.BasketPage.getCartEntries(Wick.BasketData.initialCartState);
|
|
389
|
+
addClassToSummaryAside(Wick.BasketData.initialCartState);
|
|
390
|
+
const initialTotalPrice = Wick.BasketData.initialCartState.totalPrice.value;
|
|
391
391
|
updateClearpayVisibility(initialTotalPrice);
|
|
392
392
|
} else {
|
|
393
393
|
updateBasketDataQuantity();
|
|
@@ -22,8 +22,8 @@ export function initStickyObserver(observedElements, stickyElements, collapseSel
|
|
|
22
22
|
if ('IntersectionObserver' in window) {
|
|
23
23
|
io = new IntersectionObserver(
|
|
24
24
|
entries => {
|
|
25
|
-
const
|
|
26
|
-
toggle(
|
|
25
|
+
const shouldBeHidden = entries.some(e => e.isIntersecting || e.boundingClientRect.y < 0);
|
|
26
|
+
toggle(shouldBeHidden);
|
|
27
27
|
},
|
|
28
28
|
{ rootMargin: '0px 0px -20% 0px', threshold: 0 }
|
|
29
29
|
);
|
|
@@ -31,15 +31,15 @@ export function initStickyObserver(observedElements, stickyElements, collapseSel
|
|
|
31
31
|
} else {
|
|
32
32
|
// Fallback for older browsers
|
|
33
33
|
function check() {
|
|
34
|
-
let
|
|
34
|
+
let anyInViewOrAbove = false;
|
|
35
35
|
$observed.each(function () {
|
|
36
36
|
const r = this.getBoundingClientRect();
|
|
37
|
-
if (r.top < window.innerHeight * 0.8 && r.bottom > 0) {
|
|
38
|
-
|
|
39
|
-
return false;
|
|
37
|
+
if ((r.top < window.innerHeight * 0.8 && r.bottom > 0) || r.bottom < 0) {
|
|
38
|
+
anyInViewOrAbove = true;
|
|
39
|
+
return false;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
toggle(
|
|
42
|
+
toggle(anyInViewOrAbove);
|
|
43
43
|
}
|
|
44
44
|
$(window)
|
|
45
45
|
.off('scroll.sticky resize.sticky')
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
<a id="skip-to-navigation"></a>
|
|
2
|
-
<nav class="main-nav" id="main-nav"
|
|
3
|
-
{{
|
|
4
|
-
{{> skeleton-nav}}
|
|
5
|
-
{{else}}
|
|
6
|
-
{{> navigation/nav-wrapper }}
|
|
7
|
-
{{/if }}
|
|
2
|
+
<nav class="main-nav" id="main-nav">
|
|
3
|
+
{{>skeleton-nav}}
|
|
8
4
|
{{#unless tradepro-nav}}
|
|
9
5
|
<div class="main-nav__button" data-logged-in="false">
|
|
10
6
|
<a href="/login.html" class="nav-button">
|