wickes-css2 2.112.0-develop.1 → 2.112.0-dont-forget-widget.1
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/Readme.md +1 -1
- package/build/css/account-families-main.css +1 -1
- package/build/css/category-main.css +1 -1
- package/build/css/components/card-product-banner.css +1 -1
- package/build/css/components/card-store-locator-v2.css +1 -1
- package/build/css/components/special-opening-schedule-v2.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/kitchen-plp-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/pages/checkout-new.css +1 -1
- package/build/css/pages/checkout.css +1 -1
- package/build/css/pages/home-movers.css +1 -1
- package/build/css/pages/my-account-v2.css +1 -1
- package/build/css/pages/my-account.css +1 -1
- package/build/css/pages/oldweb_header.css +1 -1
- package/build/css/pages/page_act-trade-pro.css +1 -1
- package/build/css/pages/page_book-consultant-thank-you-new.css +1 -1
- package/build/css/pages/page_checkout-payment-details.css +1 -1
- package/build/css/pages/page_checkout_delivery-new.css +1 -1
- package/build/css/pages/page_content.css +1 -1
- package/build/css/pages/page_default-store.css +1 -1
- package/build/css/pages/page_fdl-management.css +1 -1
- package/build/css/pages/page_fi.css +1 -1
- package/build/css/pages/page_forgotten-password.css +1 -1
- package/build/css/pages/page_home.css +1 -1
- package/build/css/pages/page_in-store-checkout.css +1 -1
- package/build/css/pages/page_installer_form.css +1 -1
- package/build/css/pages/page_kitchen-claims.css +1 -1
- package/build/css/pages/page_merged-basket.css +1 -1
- package/build/css/pages/page_my-order.css +1 -1
- package/build/css/pages/page_my-orders.css +1 -1
- package/build/css/pages/page_new-checkout-forgot.css +1 -1
- package/build/css/pages/page_online-exclusive.css +1 -1
- package/build/css/pages/page_pre_home.css +1 -1
- package/build/css/pages/page_pre_home_thank-you.css +1 -1
- package/build/css/pages/page_product-details-v2.css +1 -1
- package/build/css/pages/page_product_search.css +1 -1
- package/build/css/pages/page_products-list-combined.css +1 -1
- package/build/css/pages/page_products-list.css +1 -1
- package/build/css/pages/page_registration.css +1 -1
- package/build/css/pages/page_shopping-cart-v2.css +1 -1
- package/build/css/pages/page_shopping-cart.css +1 -1
- package/build/css/pages/page_store-locator-details.css +1 -1
- package/build/css/pages/page_thankyou.css +1 -1
- package/build/css/pages/page_ti.css +1 -1
- package/build/css/pages/page_top-rated.css +1 -1
- package/build/css/pages/page_upd-pass.css +1 -1
- package/build/css/pages/page_wismo-details.css +1 -1
- package/build/css/pages/page_wismo-orders.css +1 -1
- package/build/css/pages/sticky_header.css +1 -1
- package/build/css/pages/tradePro-signup.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-critical.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/shopping-list-pdf.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/img/premium-delivery.png +0 -0
- package/build/img/premium-delivery.svg +1 -0
- package/build/js/bloomreach-widget.min.js +1 -1
- package/build/js/emulation.min.js +389 -11
- package/build/js/page/bloomreach-widget/bloomreach-widget.js +241 -0
- package/build/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +205 -359
- package/build/js/page/bloomreach-widget/why-not-add-widget.js +196 -0
- package/package.json +3 -5
- package/src/components/banner-news.hbs +5 -1
- package/src/components/bloomreach/complete-card.hbs +4 -32
- package/src/components/bloomreach/why-not-add-card-skeleton.hbs +14 -0
- package/src/components/bloomreach/why-not-add-card.hbs +73 -0
- package/src/components/bloomreach/why-not-add-content.hbs +41 -0
- package/src/components/bloomreach/why-not-add-skeleton.hbs +9 -0
- package/src/components/bloomreach/why-not-add.hbs +6 -0
- package/src/components/date-selection.hbs +33 -10
- package/src/components/delivery-types.hbs +5 -0
- package/src/components/pdp-price-actions.hbs +2 -2
- package/src/components/price-block-v2.hbs +2 -0
- package/src/components/reviews-rating.hbs +22 -0
- package/src/data/my-account/data_my-account.json +6 -26
- package/src/data/my-account/data_my-order.json +43 -0
- package/src/data/my-account/data_my-orders.json +15 -1
- package/src/img/premium-delivery.png +0 -0
- package/src/img/premium-delivery.svg +1 -0
- package/src/js/emulation/bloomreach-widget-loading.js +2 -2
- package/src/js/emulation/date-selection.js +59 -2
- package/src/js/emulation/mock.js +309 -0
- package/src/js/emulation/why-not-add-loading.js +11 -0
- package/src/js/emulation/why-not-add.js +28 -0
- package/src/js/page/bloomreach-widget/bloomreach-widget.js +241 -0
- package/src/js/page/{bloomreach-widget.js → bloomreach-widget/complete-your-project-widget.js} +205 -359
- package/src/js/page/bloomreach-widget/why-not-add-widget.js +196 -0
- package/src/page_checkout_premium-delivery-details.html +161 -0
- package/src/page_product-details-bloomreach.html +1 -1
- package/src/page_product-details-with-global-search-v2.html +2 -1
- package/src/page_product-details-with-why-not-add-single.html +131 -0
- package/src/scss/category-main.scss +5 -7
- package/src/scss/common/_app.scss +1 -1
- package/src/scss/common/_rewards-counter.scss +1 -2
- package/src/scss/common/_typography.scss +1 -1
- package/src/scss/common/_vat-toggle.scss +1 -1
- package/src/scss/components/_add-list-id.scss +0 -1
- package/src/scss/components/_advice-inspiration-critical.scss +2 -2
- package/src/scss/components/_advice-inspiration.scss +2 -3
- package/src/scss/components/_anchor-nav.scss +1 -1
- package/src/scss/components/_aside-accordion.scss +0 -5
- package/src/scss/components/_aside-nav.scss +1 -1
- package/src/scss/components/_aside-nav2.scss +0 -2
- package/src/scss/components/_autocomplete.scss +0 -1
- package/src/scss/components/_banner-2.scss +1 -1
- package/src/scss/components/_banner-info.scss +1 -1
- package/src/scss/components/_banner.scss +0 -2
- package/src/scss/components/_barcode.scss +0 -1
- package/src/scss/components/_big-wins-critical.scss +8 -9
- package/src/scss/components/_big-wins.scss +25 -32
- package/src/scss/components/_billie-modal.scss +5 -6
- package/src/scss/components/_billie-online-messaging.scss +2 -2
- package/src/scss/components/_card.scss +1 -5
- package/src/scss/components/_cards-slider.scss +1 -1
- package/src/scss/components/_category-tree.scss +2 -2
- package/src/scss/components/_charity-donations.scss +7 -7
- package/src/scss/components/_checkout-action.scss +0 -2
- package/src/scss/components/_checkout_order.scss +1 -1
- package/src/scss/components/_colour-block.scss +0 -2
- package/src/scss/components/_cookies-policy.scss +1 -1
- package/src/scss/components/_copy-project-id.scss +0 -1
- package/src/scss/components/_date-selection-add-new-styles.scss +30 -7
- package/src/scss/components/_date-selection.scss +32 -12
- package/src/scss/components/_donation-cart-new.scss +6 -6
- package/src/scss/components/_donation-cart.scss +3 -4
- package/src/scss/components/_favourite-product.scss +1 -1
- package/src/scss/components/_gallery-critical.scss +3 -3
- package/src/scss/components/_gallery-pdp-critical.scss +4 -4
- package/src/scss/components/_gallery-pdp.scss +2 -2
- package/src/scss/components/_gallery.scss +2 -2
- package/src/scss/components/_hero.scss +0 -1
- package/src/scss/components/_home-banner.scss +1 -1
- package/src/scss/components/_kitchen-card.scss +4 -4
- package/src/scss/components/_lines-group.scss +0 -1
- package/src/scss/components/_marketing-preferences.scss +1 -1
- package/src/scss/components/_merge-basket-options.scss +0 -1
- package/src/scss/components/_modal-box.scss +5 -5
- package/src/scss/components/_new-checkout-form.scss +1 -1
- package/src/scss/components/_notifications-critical.scss +1 -3
- package/src/scss/components/_order-item-cc.scss +6 -7
- package/src/scss/components/_order-item.scss +11 -12
- package/src/scss/components/_order-line-shop-list.scss +2 -2
- package/src/scss/components/_order-line.scss +3 -3
- package/src/scss/components/_page-overlay.scss +3 -9
- package/src/scss/components/_payment-transactions.scss +5 -5
- package/src/scss/components/_payments.scss +0 -1
- package/src/scss/components/_pdp-cta.scss +0 -4
- package/src/scss/components/_pdp-info-v2.scss +2 -5
- package/src/scss/components/_popular-categories.scss +0 -2
- package/src/scss/components/_potential-promotion.scss +1 -1
- package/src/scss/components/_price-badges-critical.scss +0 -1
- package/src/scss/components/_price-badges.scss +0 -2
- package/src/scss/components/_price-tooltip.scss +3 -2
- package/src/scss/components/_price.scss +2 -2
- package/src/scss/components/_product-card-critical.scss +1 -2
- package/src/scss/components/_product-card.scss +3 -5
- package/src/scss/components/_product-main-info.scss +4 -5
- package/src/scss/components/_project-list-multiple.scss +4 -4
- package/src/scss/components/_project-list-total.scss +1 -1
- package/src/scss/components/_proposition.scss +2 -2
- package/src/scss/components/_range-card.scss +1 -3
- package/src/scss/components/_range-types.scss +2 -2
- package/src/scss/components/_recommended.scss +1 -5
- package/src/scss/components/_rewards.scss +1 -1
- package/src/scss/components/_saving-shopping-list-modal.scss +1 -2
- package/src/scss/components/_seo-widgets.scss +1 -2
- package/src/scss/components/_share-list-modal.scss +1 -2
- package/src/scss/components/_shop-colour.scss +1 -1
- package/src/scss/components/_shopping-list-note.scss +2 -2
- package/src/scss/components/_smart-banner.scss +4 -5
- package/src/scss/components/_snack-bar.scss +2 -2
- package/src/scss/components/_steps-three.scss +3 -3
- package/src/scss/components/_steps.scss +2 -2
- package/src/scss/components/_sticky-element-appearance.scss +2 -2
- package/src/scss/components/_tables.scss +1 -2
- package/src/scss/components/_tabs.scss +0 -1
- package/src/scss/components/_tc-generic-floor.scss +3 -3
- package/src/scss/components/_tc-generic.scss +4 -4
- package/src/scss/components/_thank-you-modal.scss +3 -1
- package/src/scss/components/_ti-floor.scss +3 -4
- package/src/scss/components/_ti-header.scss +2 -2
- package/src/scss/components/_ti-radio.scss +4 -4
- package/src/scss/components/_ti-total-area.scss +10 -10
- package/src/scss/components/_tile-banner.scss +1 -1
- package/src/scss/components/_tile-product.scss +3 -4
- package/src/scss/components/_tooltip.scss +2 -2
- package/src/scss/components/_trade-offers.scss +0 -1
- package/src/scss/components/_tradepro-discount-banner.scss +0 -1
- package/src/scss/components/_user-address-delivery.scss +1 -3
- package/src/scss/components/_user-address.scss +1 -1
- package/src/scss/components/_usp-component.scss +0 -1
- package/src/scss/components/_voucher-accordion.scss +3 -3
- package/src/scss/components/_wisdom-critical.scss +2 -3
- package/src/scss/components/_wisdom.scss +6 -9
- package/src/scss/components/_your-details.scss +0 -1
- package/src/scss/components/account-families/_add-members.scss +1 -3
- package/src/scss/components/account-families/_member-card.scss +3 -3
- package/src/scss/components/bloomreach/_bloomreach.scss +3 -0
- package/src/scss/components/bloomreach/_complete-card.scss +0 -38
- package/src/scss/components/bloomreach/_reviews.scss +60 -0
- package/src/scss/components/bloomreach/_why-not-add-card.scss +212 -0
- package/src/scss/components/bloomreach/_why-not-add.scss +143 -0
- package/src/scss/components/card-store-locator-v2.scss +0 -1
- package/src/scss/components/card_v2.scss +3 -7
- package/src/scss/components/checkout-loader-modal.scss +0 -1
- package/src/scss/components/energy-efficiency.scss +6 -6
- package/src/scss/components/global-search.scss +14 -14
- package/src/scss/components/kitchen/_chips.scss +7 -6
- package/src/scss/components/kitchen/_filter-card.scss +1 -1
- package/src/scss/components/kitchen/_sort-by.scss +2 -3
- package/src/scss/components/kitchen/strip-stickers.scss +1 -1
- package/src/scss/components/loader.scss +5 -6
- package/src/scss/components/my-account/_active-orders.scss +6 -6
- package/src/scss/components/my-account/_consignment-info.scss +3 -3
- package/src/scss/components/my-account/_contacts.scss +2 -2
- package/src/scss/components/my-account/_menu.scss +2 -2
- package/src/scss/components/my-account/_mobile-nav.scss +4 -4
- package/src/scss/components/my-account/_order-process.scss +3 -3
- package/src/scss/components/my-account/_order-status.scss +3 -3
- package/src/scss/components/my-account/_orders-nav.scss +1 -1
- package/src/scss/components/my-account/_payment-status.scss +2 -2
- package/src/scss/components/my-account/_saving-totaliser.scss +8 -7
- package/src/scss/components/my-account/_shipment.scss +2 -2
- package/src/scss/components/pdf-loader.scss +1 -2
- package/src/scss/components/price-block-v2-critical.scss +0 -1
- package/src/scss/components/price-block-v2.scss +0 -3
- package/src/scss/components/store-locator-v2-details.scss +2 -2
- package/src/scss/components/strip-stickers.scss +1 -1
- package/src/scss/helpers/_elements.scss +0 -1
- package/src/scss/helpers/_mixins.scss +5 -5
- package/src/scss/helpers/_store-locator-elements.scss +0 -1
- package/src/scss/helpers/_typography.scss +3 -3
- package/src/scss/helpers/_utilities.scss +0 -1
- package/src/scss/helpers/helpers-pdp-critical/_CTAs-critical-pdp.scss +1 -1
- package/src/scss/helpers/helpers-pdp-critical/_elements-critical-pdp.scss +0 -1
- package/src/scss/helpers/helpers-pdp-critical/_helpers-critical-pdp.scss +1 -1
- package/src/scss/helpers/helpers-pdp-critical/_typography-critical-pdp.scss +4 -4
- package/src/scss/libs/_bootstrap-extracted.scss +42 -12
- package/src/scss/libs/_cat-libs.scss +10 -10
- package/src/scss/libs/_font-awesome-icons.scss +133 -113
- package/src/scss/libs/_homepage-libs.scss +12 -12
- package/src/scss/libs/_plp-libs.scss +11 -11
- package/src/scss/libs/_skeleton.scss +4 -4
- package/src/scss/libs/_store-locator-libs.scss +1 -1
- package/src/scss/libs/flatpickr.scss +6 -6
- package/src/scss/my-account-main-v2.scss +19 -19
- package/src/scss/my-account-main.scss +19 -19
- package/src/scss/pages/_checkout-confirmation.scss +1 -3
- package/src/scss/pages/_checkout-sign-in.scss +1 -2
- package/src/scss/pages/_checkout-tradepro.scss +3 -4
- package/src/scss/pages/_checkout-widget.scss +10 -16
- package/src/scss/pages/_checkout_delivery-details.scss +1 -3
- package/src/scss/pages/_checkout_edit-delivery-address.scss +0 -1
- package/src/scss/pages/_checkout_terms-and-conditions.scss +0 -1
- package/src/scss/pages/_checkout_your-details.scss +1 -1
- package/src/scss/pages/_contact-us.scss +0 -1
- package/src/scss/pages/_facets.scss +0 -2
- package/src/scss/pages/_my-account_address-details.scss +0 -3
- package/src/scss/pages/_my-account_change-email.scss +0 -1
- package/src/scss/pages/_my-account_new.scss +25 -31
- package/src/scss/pages/_my-account_order-details.scss +1 -1
- package/src/scss/pages/_my-account_order-history.scss +1 -2
- package/src/scss/pages/_my-account_personal-details.scss +0 -5
- package/src/scss/pages/_my-account_profile.scss +1 -2
- package/src/scss/pages/_my-account_your-account.scss +0 -1
- package/src/scss/pages/_page_category-landing.scss +3 -2
- package/src/scss/pages/bicester-header.scss +0 -1
- package/src/scss/pages/checkout-new.scss +7 -2
- package/src/scss/pages/checkout.scss +4 -5
- package/src/scss/pages/home-movers.scss +1 -1
- package/src/scss/pages/iframe-paypage.scss +44 -44
- package/src/scss/pages/my-account.scss +3 -3
- package/src/scss/pages/oldweb_header.scss +5 -6
- package/src/scss/pages/page_account-deletion.scss +1 -1
- package/src/scss/pages/page_act-trade-pro.scss +0 -1
- package/src/scss/pages/page_address-book.scss +0 -1
- package/src/scss/pages/page_bathroom-trends.scss +0 -1
- package/src/scss/pages/page_book-consultant-thank-you-new.scss +3 -5
- package/src/scss/pages/page_checkout-payment-details.scss +2 -5
- package/src/scss/pages/page_checkout_delivery-new.scss +1 -1
- package/src/scss/pages/page_cms_homepage.scss +1 -1
- package/src/scss/pages/page_contact-us.scss +1 -1
- package/src/scss/pages/page_content.scss +0 -4
- package/src/scss/pages/page_default-store.scss +2 -3
- package/src/scss/pages/page_empty-basket.scss +0 -5
- package/src/scss/pages/page_fdl-management.scss +0 -1
- package/src/scss/pages/page_fi.scss +0 -2
- package/src/scss/pages/page_home.scss +0 -2
- package/src/scss/pages/page_hotspot-guttering.scss +0 -1
- package/src/scss/pages/page_in-store-checkout.scss +1 -3
- package/src/scss/pages/page_installer.scss +3 -5
- package/src/scss/pages/page_installer_form.scss +0 -1
- package/src/scss/pages/page_kitchen-claims.scss +2 -5
- package/src/scss/pages/page_kitchen-list.scss +1 -1
- package/src/scss/pages/page_marketing-preferences.scss +1 -1
- package/src/scss/pages/page_merged-basket.scss +2 -2
- package/src/scss/pages/page_my-account_tradePro.scss +1 -1
- package/src/scss/pages/page_my-order.scss +15 -15
- package/src/scss/pages/page_my-orders.scss +2 -2
- package/src/scss/pages/page_new-checkout_login-register.scss +1 -2
- package/src/scss/pages/page_no-results.scss +1 -2
- package/src/scss/pages/page_online-exclusive.scss +6 -6
- package/src/scss/pages/page_personal-details.scss +2 -2
- package/src/scss/pages/page_pre_home.scss +7 -7
- package/src/scss/pages/page_pre_home_thank-you.scss +2 -2
- package/src/scss/pages/page_product-details-critical.scss +0 -1
- package/src/scss/pages/page_product-details-v2-critical.scss +1 -2
- package/src/scss/pages/page_product-details.scss +0 -1
- package/src/scss/pages/page_products-list-phone.scss +0 -7
- package/src/scss/pages/page_products-list.scss +2 -2
- package/src/scss/pages/page_quiz.scss +3 -3
- package/src/scss/pages/page_rate-review.scss +0 -3
- package/src/scss/pages/page_registration.scss +0 -3
- package/src/scss/pages/page_store-locator-details.scss +2 -2
- package/src/scss/pages/page_ti.scss +1 -5
- package/src/scss/pages/page_top-rated.scss +5 -5
- package/src/scss/pages/page_track-my-order.scss +1 -1
- package/src/scss/pages/page_track_your_order.scss +5 -5
- package/src/scss/pages/page_upd-pass.scss +0 -1
- package/src/scss/pages/page_wismo-details.scss +8 -8
- package/src/scss/pages/page_wismo-order-history.scss +3 -3
- package/src/scss/pages/page_wismo-orders.scss +7 -7
- package/src/scss/pages/print_quiz.scss +3 -1
- package/src/scss/pages/sticky_header.scss +5 -6
- package/src/scss/pages/tradePro-about.scss +1 -1
- package/src/scss/pages/tradePro-discount.scss +1 -2
- package/src/scss/pages/tradePro-rewards-old.scss +4 -3
- package/src/scss/pages/tradePro-signup.scss +3 -5
- package/src/scss/partials/_breadcrumbs-critical.scss +2 -2
- package/src/scss/partials/_breadcrumbs.scss +2 -2
- package/src/scss/partials/_footer-v2.scss +2 -2
- package/src/scss/partials/_footer.scss +4 -4
- package/src/scss/partials/_footer_checkout-new.scss +1 -1
- package/src/scss/partials/_footer_checkout.scss +1 -1
- package/src/scss/partials/_header-critical.scss +6 -9
- package/src/scss/partials/_header.scss +7 -9
- package/src/scss/partials/_header_checkout.scss +2 -2
- package/src/scss/partials/_main-nav.scss +7 -11
- package/src/scss/partials/_sign-up.scss +3 -3
- package/src/scss/shopping-list-pdf.scss +1 -1
- package/src/sitemap.html +12 -4
- package/src/components/.DS_Store +0 -0
- package/src/img/.DS_Store +0 -0
- package/src/img/placeholders/.DS_Store +0 -0
- package/src/js/page/.DS_Store +0 -0
- package/src/scss/.DS_Store +0 -0
- package/src/scss/pages/.DS_Store +0 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
var Wick = window.Wick || {};
|
|
2
|
+
|
|
3
|
+
import { createLoadingButton } from '../utils/create-loading-button';
|
|
4
|
+
|
|
5
|
+
const Handlebars = require('hbsfy/runtime');
|
|
6
|
+
|
|
7
|
+
Handlebars.registerPartial('loader', require('../../../elements/loader.hbs'));
|
|
8
|
+
Handlebars.registerPartial('button', require('../../../components/base/button.hbs'));
|
|
9
|
+
Handlebars.registerPartial(
|
|
10
|
+
'bloomreach/why-not-add',
|
|
11
|
+
require('../../../components/bloomreach/why-not-add.hbs')
|
|
12
|
+
);
|
|
13
|
+
Handlebars.registerPartial(
|
|
14
|
+
'bloomreach/why-not-add-skeleton',
|
|
15
|
+
require('../../../components/bloomreach/why-not-add-skeleton.hbs')
|
|
16
|
+
);
|
|
17
|
+
Handlebars.registerPartial(
|
|
18
|
+
'bloomreach/why-not-add-card-skeleton',
|
|
19
|
+
require('../../../components/bloomreach/why-not-add-card-skeleton.hbs')
|
|
20
|
+
);
|
|
21
|
+
Handlebars.registerPartial(
|
|
22
|
+
'bloomreach/why-not-add-card',
|
|
23
|
+
require('../../../components/bloomreach/why-not-add-card.hbs')
|
|
24
|
+
);
|
|
25
|
+
Handlebars.registerPartial('reviews-rating', require('../../../components/reviews-rating.hbs'));
|
|
26
|
+
|
|
27
|
+
const whyNotAddTemplate = require('../../../components/bloomreach/why-not-add-content.hbs');
|
|
28
|
+
|
|
29
|
+
const WhyNotAddWidget = {
|
|
30
|
+
ADD_TO_CART_EVENT: 'addToCart',
|
|
31
|
+
|
|
32
|
+
products: [],
|
|
33
|
+
sliders: [],
|
|
34
|
+
loadingButton: null,
|
|
35
|
+
|
|
36
|
+
el: {
|
|
37
|
+
cta: '.why-not-add-card__cta',
|
|
38
|
+
next: '[data-why-not-add-next]',
|
|
39
|
+
pagination: '[data-why-not-add-pagination]',
|
|
40
|
+
prev: '[data-why-not-add-prev]',
|
|
41
|
+
root: '[data-why-not-add]',
|
|
42
|
+
slider: '[data-why-not-add-slider]',
|
|
43
|
+
widgetContainer: '[data-why-not-add-widget]',
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
normalizeProducts(payloadData) {
|
|
47
|
+
return Wick.BloomreachWidget.normalizePayload(payloadData)
|
|
48
|
+
.map(function (item) {
|
|
49
|
+
return item.baseProduct || item;
|
|
50
|
+
})
|
|
51
|
+
.slice(0, 5);
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
renderWidget($container, payloadData) {
|
|
55
|
+
const products = WhyNotAddWidget.normalizeProducts(payloadData);
|
|
56
|
+
|
|
57
|
+
if (!products.length) {
|
|
58
|
+
$container.empty().hide();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
WhyNotAddWidget.products = products;
|
|
63
|
+
|
|
64
|
+
$container
|
|
65
|
+
.html(
|
|
66
|
+
whyNotAddTemplate({
|
|
67
|
+
products: products.map(Wick.BloomreachWidget.getProductRenderData),
|
|
68
|
+
isSingleProduct: products.length === 1,
|
|
69
|
+
})
|
|
70
|
+
)
|
|
71
|
+
.show();
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
destroySliders() {
|
|
75
|
+
WhyNotAddWidget.sliders.forEach(function (slider) {
|
|
76
|
+
if (slider && slider.destroy) {
|
|
77
|
+
slider.destroy(true, true);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
WhyNotAddWidget.sliders = [];
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
initSliders($root) {
|
|
85
|
+
WhyNotAddWidget.destroySliders();
|
|
86
|
+
|
|
87
|
+
$root.find(WhyNotAddWidget.el.slider).each(function () {
|
|
88
|
+
const $slider = $(this);
|
|
89
|
+
const $widget = $slider.closest(WhyNotAddWidget.el.root);
|
|
90
|
+
const slidesCount = $slider.find('.swiper-slide').length;
|
|
91
|
+
|
|
92
|
+
if (slidesCount <= 1) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const slider = new Swiper(this, {
|
|
97
|
+
roundLengths: true,
|
|
98
|
+
slidesPerView: 1,
|
|
99
|
+
spaceBetween: 12,
|
|
100
|
+
watchOverflow: true,
|
|
101
|
+
navigation: {
|
|
102
|
+
nextEl: $widget.find(WhyNotAddWidget.el.next)[0],
|
|
103
|
+
prevEl: $widget.find(WhyNotAddWidget.el.prev)[0],
|
|
104
|
+
disabledClass: 'why-not-add__arrow--disabled',
|
|
105
|
+
},
|
|
106
|
+
pagination: {
|
|
107
|
+
el: $widget.find(WhyNotAddWidget.el.pagination)[0],
|
|
108
|
+
clickable: true,
|
|
109
|
+
renderBullet(index, className) {
|
|
110
|
+
return `<button class="${className}" type="button" aria-label="Go to slide ${
|
|
111
|
+
index + 1
|
|
112
|
+
}"></button>`;
|
|
113
|
+
},
|
|
114
|
+
bulletClass: 'why-not-add__pagination-item',
|
|
115
|
+
bulletActiveClass: 'why-not-add__pagination-item--active',
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
WhyNotAddWidget.sliders.push(slider);
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
bindAddToCart($root) {
|
|
123
|
+
$root.off('click.whyNotAdd', WhyNotAddWidget.el.cta);
|
|
124
|
+
$root.on('click.whyNotAdd', WhyNotAddWidget.el.cta, function (event) {
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
|
|
127
|
+
const $button = $(this);
|
|
128
|
+
const $card = $button.closest('.why-not-add-card');
|
|
129
|
+
const productCode = $card.attr('data-product-code');
|
|
130
|
+
|
|
131
|
+
if (!productCode || WhyNotAddWidget.loadingButton.isLoading($button)) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const payload = {
|
|
136
|
+
productCode,
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
WhyNotAddWidget.loadingButton.start($button);
|
|
140
|
+
|
|
141
|
+
Wick.BloomreachWidget.dispatchWidgetEvent(WhyNotAddWidget.ADD_TO_CART_EVENT, payload)
|
|
142
|
+
.then(function () {
|
|
143
|
+
WhyNotAddWidget.loadingButton.stop($button);
|
|
144
|
+
Wick.MiniBasketSliderFE.isMiniBasketLoaded = false;
|
|
145
|
+
})
|
|
146
|
+
.catch(function () {
|
|
147
|
+
WhyNotAddWidget.loadingButton.stop($button);
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
},
|
|
151
|
+
|
|
152
|
+
bindVatToggle() {
|
|
153
|
+
if (Wick.BloomreachWidget.bindVatToggle) {
|
|
154
|
+
Wick.BloomreachWidget.bindVatToggle('whyNotAddVatToggle');
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
initRenderedWidget($container) {
|
|
159
|
+
const $root = $container.find(WhyNotAddWidget.el.root);
|
|
160
|
+
|
|
161
|
+
if (!$root.length) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (!WhyNotAddWidget.loadingButton) {
|
|
166
|
+
WhyNotAddWidget.loadingButton = createLoadingButton({
|
|
167
|
+
text: Wick.BloomreachWidget.el.loadingButtonText,
|
|
168
|
+
loader: Wick.BloomreachWidget.el.loadingButtonLoader,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
Wick.BloomreachWidget.drawRating($root);
|
|
173
|
+
WhyNotAddWidget.initSliders($root);
|
|
174
|
+
WhyNotAddWidget.bindAddToCart($root);
|
|
175
|
+
WhyNotAddWidget.bindVatToggle();
|
|
176
|
+
Wick.BloomreachWidget.reapplyVatDisplay();
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
init(payloadData) {
|
|
180
|
+
const $containers = $(WhyNotAddWidget.el.widgetContainer);
|
|
181
|
+
|
|
182
|
+
if (!payloadData) {
|
|
183
|
+
$containers.empty().hide();
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
$containers.each(function () {
|
|
188
|
+
const $container = $(this);
|
|
189
|
+
|
|
190
|
+
WhyNotAddWidget.renderWidget($container, payloadData);
|
|
191
|
+
WhyNotAddWidget.initRenderedWidget($container);
|
|
192
|
+
});
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export default WhyNotAddWidget;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wickes-css2",
|
|
3
|
-
"version": "2.112.0-
|
|
3
|
+
"version": "2.112.0-dont-forget-widget.1",
|
|
4
4
|
"description": "CSS and JS and page templates in use by Wickes",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
],
|
|
17
17
|
"src/scss/**/*.{scss,css}": [
|
|
18
18
|
"sass-lint-auto-fix",
|
|
19
|
-
"prettier --write",
|
|
20
19
|
"sass-lint -c .sasslintrc --"
|
|
21
20
|
]
|
|
22
21
|
},
|
|
@@ -52,7 +51,7 @@
|
|
|
52
51
|
"gulp-json-concat": "^0.2.0",
|
|
53
52
|
"gulp-json-refs": "^0.1.1",
|
|
54
53
|
"gulp-purgecss": "4.0.3",
|
|
55
|
-
"gulp-sass": "^
|
|
54
|
+
"gulp-sass": "^5.0.0",
|
|
56
55
|
"gulp-sass-lint": "^1.4.0",
|
|
57
56
|
"gulp-sitemap": "^5.1.0",
|
|
58
57
|
"gulp-sourcemaps": "^2.6.4",
|
|
@@ -60,8 +59,7 @@
|
|
|
60
59
|
"handlebars-layouts": "^3.1.4",
|
|
61
60
|
"husky": "8.0.3",
|
|
62
61
|
"lint-staged": "13.2.3",
|
|
63
|
-
"mocha": "^
|
|
64
|
-
"node-sass": "^4.0.0",
|
|
62
|
+
"mocha": "^10.0.0",
|
|
65
63
|
"postcss": "^8.4.16",
|
|
66
64
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
67
65
|
"postcss-combine-media-query": "^1.0.1",
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
<span class="description">{{{description}}}</span>
|
|
4
4
|
</div>
|
|
5
5
|
<div class="banner-news__image">
|
|
6
|
-
|
|
6
|
+
{{#if imgSrc}}
|
|
7
|
+
<img src="{{imgSrc}}" class="banner-news__img{{#if imgClass}} {{imgClass}}{{/if}}" alt="">
|
|
8
|
+
{{else}}
|
|
9
|
+
<i class="{{classImg}}"></i>
|
|
10
|
+
{{/if}}
|
|
7
11
|
</div>
|
|
8
12
|
</div>
|
|
@@ -25,38 +25,10 @@
|
|
|
25
25
|
{{name}}
|
|
26
26
|
</a>
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<i class="fa fa-star star-in" aria-hidden="true"></i>
|
|
33
|
-
<i class="fa fa-star star-in" aria-hidden="true"></i>
|
|
34
|
-
<i class="fa fa-star star-in" aria-hidden="true"></i>
|
|
35
|
-
|
|
36
|
-
<div class="rating-overlay"
|
|
37
|
-
data-rating="{{#if externalAverageRating}}{{externalAverageRating}}{{else}}0{{/if}}">
|
|
38
|
-
<span class="star-overlay">
|
|
39
|
-
<i class="fa fa-star" aria-hidden="true"></i>
|
|
40
|
-
</span>
|
|
41
|
-
<span class="star-overlay">
|
|
42
|
-
<i class="fa fa-star" aria-hidden="true"></i>
|
|
43
|
-
</span>
|
|
44
|
-
<span class="star-overlay">
|
|
45
|
-
<i class="fa fa-star" aria-hidden="true"></i>
|
|
46
|
-
</span>
|
|
47
|
-
<span class="star-overlay">
|
|
48
|
-
<i class="fa fa-star" aria-hidden="true"></i>
|
|
49
|
-
</span>
|
|
50
|
-
<span class="star-overlay">
|
|
51
|
-
<i class="fa fa-star" aria-hidden="true"></i>
|
|
52
|
-
</span>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
<span class="complete-card__reviews-count">
|
|
56
|
-
(<span class="complete-card__reviews-count-value">{{externalReviewCount}}</span>)
|
|
57
|
-
</span>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
28
|
+
{{> reviews-rating
|
|
29
|
+
externalAverageRating=externalAverageRating
|
|
30
|
+
externalReviewCount=externalReviewCount
|
|
31
|
+
}}
|
|
60
32
|
</div>
|
|
61
33
|
<div class="complete-card__options">
|
|
62
34
|
{{#if dropdownOptions.length}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<div class="why-not-add-card why-not-add-card--skeleton ssc">
|
|
2
|
+
<div class="ssc-square why-not-add-card__image"></div>
|
|
3
|
+
|
|
4
|
+
<div class="ssc-line why-not-add-card__skeleton-title"></div>
|
|
5
|
+
<div class="ssc-line why-not-add-card__skeleton-title-short"></div>
|
|
6
|
+
|
|
7
|
+
<div class="ssc-line why-not-add-card__skeleton-reviews"></div>
|
|
8
|
+
|
|
9
|
+
<div class="ssc-line why-not-add-card__skeleton-price"></div>
|
|
10
|
+
|
|
11
|
+
<div class="ssc-line why-not-add-card__skeleton-delivery"></div>
|
|
12
|
+
|
|
13
|
+
<div class="ssc-square why-not-add-card__skeleton-cta"></div>
|
|
14
|
+
</div>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<div class="why-not-add-card" data-product-code="{{code}}">
|
|
2
|
+
{{#if image.url}}
|
|
3
|
+
<img
|
|
4
|
+
class="why-not-add-card__image"
|
|
5
|
+
src="{{image.url}}"
|
|
6
|
+
alt="{{image.altText}}"
|
|
7
|
+
>
|
|
8
|
+
{{/if}}
|
|
9
|
+
|
|
10
|
+
<div class="why-not-add-card__content">
|
|
11
|
+
<a href="{{url}}" target="_blank" class="why-not-add-card__title">
|
|
12
|
+
{{name}}
|
|
13
|
+
</a>
|
|
14
|
+
|
|
15
|
+
{{> reviews-rating
|
|
16
|
+
externalAverageRating=externalAverageRating
|
|
17
|
+
externalReviewCount=externalReviewCount
|
|
18
|
+
}}
|
|
19
|
+
|
|
20
|
+
<div class="why-not-add-card__bottom">
|
|
21
|
+
<div class="why-not-add-card__price-wrap">
|
|
22
|
+
<div class="why-not-add-card__price {{#if wasPriceFormatted}}why-not-add-card__price--sale{{/if}}">
|
|
23
|
+
{{#if wasPriceFormatted}}
|
|
24
|
+
<span class="why-not-add-card__was-price">
|
|
25
|
+
{{#if switch-vat}}
|
|
26
|
+
<span class="including-vat-inherit">{{incVatWasPriceFormatted}}</span>
|
|
27
|
+
<span class="excluding-vat-inherit">{{excVatWasPriceFormatted}}</span>
|
|
28
|
+
{{else}}
|
|
29
|
+
{{wasPriceFormatted}}
|
|
30
|
+
{{/if}}
|
|
31
|
+
</span>
|
|
32
|
+
|
|
33
|
+
<span class="why-not-add-card__sale-price">
|
|
34
|
+
{{#if switch-vat}}
|
|
35
|
+
<span class="including-vat-inherit">{{incVatFormattedValue}}</span>
|
|
36
|
+
<span class="excluding-vat-inherit">{{excVatFormattedValue}}</span>
|
|
37
|
+
{{else}}
|
|
38
|
+
{{price.formattedValue}}
|
|
39
|
+
{{/if}}
|
|
40
|
+
</span>
|
|
41
|
+
{{else}}
|
|
42
|
+
<span class="why-not-add-card__regular-price">
|
|
43
|
+
{{#if switch-vat}}
|
|
44
|
+
<span class="including-vat-inherit">{{incVatFormattedValue}}</span>
|
|
45
|
+
<span class="excluding-vat-inherit">{{excVatFormattedValue}}</span>
|
|
46
|
+
{{else}}
|
|
47
|
+
{{price.formattedValue}}
|
|
48
|
+
{{/if}}
|
|
49
|
+
</span>
|
|
50
|
+
{{/if}}
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
{{#if switch-vat}}
|
|
54
|
+
<div class="why-not-add-card__vat-label">
|
|
55
|
+
<span class="including-vat-inherit">Inc.VAT</span>
|
|
56
|
+
<span class="excluding-vat-inherit">Exc.VAT</span>
|
|
57
|
+
</div>
|
|
58
|
+
{{/if}}
|
|
59
|
+
|
|
60
|
+
<div class="why-not-add-card__delivery">Excluding delivery</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
{{> button
|
|
64
|
+
type="button"
|
|
65
|
+
action=true
|
|
66
|
+
icon="fas fa-shopping-basket"
|
|
67
|
+
showLoader=true
|
|
68
|
+
loaderModifier="why-not-add-card__loader"
|
|
69
|
+
modification="why-not-add-card__cta"
|
|
70
|
+
}}
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<div class="why-not-add {{#if isSingleProduct}}why-not-add--single{{/if}}" data-why-not-add>
|
|
2
|
+
<div class="why-not-add__header">
|
|
3
|
+
<h3 class="why-not-add__title">Why not add</h3>
|
|
4
|
+
|
|
5
|
+
{{#unless isSingleProduct}}
|
|
6
|
+
<div class="why-not-add__arrows">
|
|
7
|
+
<button
|
|
8
|
+
class="why-not-add__arrow why-not-add__arrow-prev"
|
|
9
|
+
type="button"
|
|
10
|
+
aria-label="Previous slide"
|
|
11
|
+
data-why-not-add-prev
|
|
12
|
+
>
|
|
13
|
+
<i class="fas fa-chevron-left"></i>
|
|
14
|
+
</button>
|
|
15
|
+
|
|
16
|
+
<button
|
|
17
|
+
class="why-not-add__arrow why-not-add__arrow-next"
|
|
18
|
+
type="button"
|
|
19
|
+
aria-label="Next slide"
|
|
20
|
+
data-why-not-add-next
|
|
21
|
+
>
|
|
22
|
+
<i class="fas fa-chevron-right"></i>
|
|
23
|
+
</button>
|
|
24
|
+
</div>
|
|
25
|
+
{{/unless}}
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="swiper-container why-not-add__slider" data-why-not-add-slider>
|
|
29
|
+
<div class="swiper-wrapper">
|
|
30
|
+
{{#each products}}
|
|
31
|
+
<div class="swiper-slide why-not-add__slide">
|
|
32
|
+
{{> bloomreach/why-not-add-card this}}
|
|
33
|
+
</div>
|
|
34
|
+
{{/each}}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
{{#unless isSingleProduct}}
|
|
39
|
+
<div class="why-not-add__pagination" data-why-not-add-pagination></div>
|
|
40
|
+
{{/unless}}
|
|
41
|
+
</div>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<div class="why-not-add why-not-add--skeleton ssc">
|
|
2
|
+
<div class="why-not-add__header">
|
|
3
|
+
<div class="ssc-line why-not-add__skeleton-title"></div>
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
<div class="why-not-add__skeleton-cards">
|
|
7
|
+
{{> bloomreach/why-not-add-card-skeleton}}
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
@@ -28,16 +28,29 @@
|
|
|
28
28
|
<div class="calendar__row">
|
|
29
29
|
<div class="calendar__row_days">
|
|
30
30
|
{{/if}}
|
|
31
|
-
<span class="calendar__cell calendar__cell_cnt{{#if isInactive}} calendar__cell_inactive{{/if}}{{#if (eq day '1')}}{{#unless isInactive}}
|
|
32
|
-
{{#if
|
|
33
|
-
{{#
|
|
34
|
-
{{
|
|
35
|
-
|
|
31
|
+
<span class="calendar__cell calendar__cell_cnt{{#if isInactive}} calendar__cell_inactive{{/if}}{{#if ../premium}}{{#if (eq day '1')}} calendar__cell_inactive{{/if}}{{#unless isInactive}}{{#if (eq day '2')}} calendar__cell_highlight calendar-premium-day{{/if}}{{/unless}}{{else}}{{#if (eq day '1')}}{{#unless isInactive}} calendar__cell_highlight calendar-rapid-day{{/unless}}{{/if}}{{/if}}">
|
|
32
|
+
{{#if ../premium}}
|
|
33
|
+
{{#if (eq day '2')}}
|
|
34
|
+
{{#unless isInactive}}
|
|
35
|
+
{{day}}
|
|
36
|
+
<span class="calendar-cell-label">Premium</span>
|
|
37
|
+
{{else}}
|
|
38
|
+
{{day}}
|
|
39
|
+
{{/unless}}
|
|
36
40
|
{{else}}
|
|
37
41
|
{{day}}
|
|
38
|
-
{{/
|
|
42
|
+
{{/if}}
|
|
39
43
|
{{else}}
|
|
40
|
-
{{day}}
|
|
44
|
+
{{#if (eq day '1')}}
|
|
45
|
+
{{#unless isInactive}}
|
|
46
|
+
{{day}}
|
|
47
|
+
<span class="calendar-cell-label">Rapid</span>
|
|
48
|
+
{{else}}
|
|
49
|
+
{{day}}
|
|
50
|
+
{{/unless}}
|
|
51
|
+
{{else}}
|
|
52
|
+
{{day}}
|
|
53
|
+
{{/if}}
|
|
41
54
|
{{/if}}
|
|
42
55
|
</span>
|
|
43
56
|
{{#if (eq (mod_inc @index 7) 0)}}
|
|
@@ -64,18 +77,28 @@
|
|
|
64
77
|
</div>
|
|
65
78
|
</div>
|
|
66
79
|
<div class="delivery-time">
|
|
67
|
-
<div class="delivery-time__rapid-hint">
|
|
80
|
+
<div class="{{#if premium}}delivery-time__premium-hint{{else}}delivery-time__rapid-hint{{/if}}">
|
|
68
81
|
<span class="icon-wrap icon-wrap--large">
|
|
69
|
-
|
|
82
|
+
{{#if premium}}
|
|
83
|
+
<img src="./img/premium-delivery.svg" class="icon" alt="Premium delivery">
|
|
84
|
+
{{else}}
|
|
85
|
+
<i class="fas fa-shipping-fast icon"></i>
|
|
86
|
+
{{/if}}
|
|
70
87
|
</span>
|
|
71
88
|
<p class="description">
|
|
72
|
-
|
|
89
|
+
{{#if premium}}
|
|
90
|
+
Select tomorrow’s day on the calendar to get Premium delivery.
|
|
91
|
+
{{else}}
|
|
92
|
+
Select todays’ day on the calendar to get Rapid delivery.
|
|
93
|
+
{{/if}}
|
|
73
94
|
</p>
|
|
74
95
|
</div>
|
|
75
96
|
{{> delivery-types
|
|
76
97
|
title=titleDelivery
|
|
77
98
|
subtitle=subtitleDelivery
|
|
78
99
|
classImg=imgDelivery
|
|
100
|
+
imgSrc=premiumImg
|
|
101
|
+
premium=premium
|
|
79
102
|
}}
|
|
80
103
|
</div>
|
|
81
104
|
</div>
|
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
<i class="{{classImg}}"></i>
|
|
20
20
|
</span>
|
|
21
21
|
{{/if}}
|
|
22
|
+
{{#if imgSrc}}
|
|
23
|
+
<span class="delivery-btn__image delivery-btn__image--premium d-none">
|
|
24
|
+
<img src="{{imgSrc}}" class="delivery-btn__img" alt="">
|
|
25
|
+
</span>
|
|
26
|
+
{{/if}}
|
|
22
27
|
{{else}}
|
|
23
28
|
<span class="delivery-btn__content">
|
|
24
29
|
<span class="title">7am - 7pm - Free</span>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{{#if c-and-c}}
|
|
2
2
|
<div class="{{#if tile-measurement}}ti__total{{else}}pdp-price{{/if}}__control-holder">
|
|
3
|
-
<button class="btn btn-
|
|
4
|
-
<span class="btn__text">
|
|
3
|
+
<button class="btn btn-action btn_full" data-toggle="modal" data-target="#modal-click-and-collect">
|
|
4
|
+
<span class="btn__text">Click & Collect</span>
|
|
5
5
|
</button>
|
|
6
6
|
</div>
|
|
7
7
|
{{/if}}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<div class="reviews">
|
|
2
|
+
<div class="rating-bg">
|
|
3
|
+
<i class="fa fa-star star-in" aria-hidden="true"></i>
|
|
4
|
+
<i class="fa fa-star star-in" aria-hidden="true"></i>
|
|
5
|
+
<i class="fa fa-star star-in" aria-hidden="true"></i>
|
|
6
|
+
<i class="fa fa-star star-in" aria-hidden="true"></i>
|
|
7
|
+
<i class="fa fa-star star-in" aria-hidden="true"></i>
|
|
8
|
+
|
|
9
|
+
<div
|
|
10
|
+
class="rating-overlay"
|
|
11
|
+
data-rating="{{#if externalAverageRating}}{{externalAverageRating}}{{else}}0{{/if}}"
|
|
12
|
+
>
|
|
13
|
+
<span class="star-overlay"><i class="fa fa-star" aria-hidden="true"></i></span>
|
|
14
|
+
<span class="star-overlay"><i class="fa fa-star" aria-hidden="true"></i></span>
|
|
15
|
+
<span class="star-overlay"><i class="fa fa-star" aria-hidden="true"></i></span>
|
|
16
|
+
<span class="star-overlay"><i class="fa fa-star" aria-hidden="true"></i></span>
|
|
17
|
+
<span class="star-overlay"><i class="fa fa-star" aria-hidden="true"></i></span>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<span class="{{#if countClass}}{{countClass}}{{else}}reviews-count{{/if}}">(<span class="{{#if countValueClass}}{{countValueClass}}{{else}}reviews-count-value{{/if}}">{{#if externalReviewCount}}{{externalReviewCount}}{{else}}0{{/if}}</span>)</span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
@@ -112,37 +112,17 @@
|
|
|
112
112
|
"orderDate": "22nd January 2025 10:35 am",
|
|
113
113
|
"totalConsignments": 5,
|
|
114
114
|
"shipmentDetails": [
|
|
115
|
-
{
|
|
116
|
-
"shipmentIcon": "fas fa-hand-holding-box",
|
|
117
|
-
"shipmentTitle": "Click & Collect at Southport Kitchens & Bathrooms Showroom",
|
|
118
|
-
"shipmentInfo": "Ready for Collection",
|
|
119
|
-
"itemsCount": 2
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"shipmentIcon": "fas fa-times",
|
|
123
|
-
"shipmentTitle": "Click & Collect at Wickes Long Eaton",
|
|
124
|
-
"shipmentInfo": "Cancelled",
|
|
125
|
-
"itemsCount": 4
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"shipmentIcon": "fas fa-shipping-fast",
|
|
129
|
-
"shipmentTitle": "Wickes Delivery from Ashford Store",
|
|
130
|
-
"shipmentInfo": "Dispatched. Delivery - 8th Jan 2025",
|
|
131
|
-
"itemsCount": 4,
|
|
132
|
-
"trackingLink": "/"
|
|
133
|
-
},
|
|
134
115
|
{
|
|
135
116
|
"shipmentIcon": "fas fa-shipping-fast",
|
|
136
|
-
"shipmentTitle": "
|
|
137
|
-
"shipmentInfo": "Dispatched. Delivery —
|
|
138
|
-
"itemsCount":
|
|
139
|
-
"trackingLink": "/"
|
|
117
|
+
"shipmentTitle": "Premium Delivery from Southampton store",
|
|
118
|
+
"shipmentInfo": "Dispatched. Delivery — By 12 PM - 12th Apr 2026",
|
|
119
|
+
"itemsCount": 1
|
|
140
120
|
},
|
|
141
121
|
{
|
|
142
|
-
"shipmentIcon": "fas fa-
|
|
122
|
+
"shipmentIcon": "fas fa-box-alt",
|
|
143
123
|
"shipmentTitle": "Supplier Delivery",
|
|
144
|
-
"shipmentInfo": "
|
|
145
|
-
"itemsCount":
|
|
124
|
+
"shipmentInfo": "Order placed. These item(s) will be delivered within 14 days after receiving your order confirmation. Supplier will contact you with additional information.",
|
|
125
|
+
"itemsCount": 3
|
|
146
126
|
}
|
|
147
127
|
]
|
|
148
128
|
},
|
|
@@ -310,6 +310,49 @@
|
|
|
310
310
|
}
|
|
311
311
|
],
|
|
312
312
|
"subtotalTooltip": "Order level promotions and delivery charges are not included"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"title": "Premium Delivery",
|
|
316
|
+
"subtotal": "£53.65",
|
|
317
|
+
"track": "#",
|
|
318
|
+
"deliveryRange": [
|
|
319
|
+
{
|
|
320
|
+
"icon": "fas fa-box-alt",
|
|
321
|
+
"title": "Order placed",
|
|
322
|
+
"isComplete": true
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"icon": "fas fa-shipping-fast",
|
|
326
|
+
"title": "Dispatched",
|
|
327
|
+
"isComplete": true
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"icon": "fas fa-box-check",
|
|
331
|
+
"title": "To be Delivered",
|
|
332
|
+
"isComplete": false
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"customClassTooltip": "order__expectation--rapid",
|
|
336
|
+
"storeName": "Wickes Ashford Store",
|
|
337
|
+
"orders": [
|
|
338
|
+
{
|
|
339
|
+
"img": "https://media.wickes.co.uk/is/image/wickes/S3308_190167_00?$thumbnail$",
|
|
340
|
+
"title": "Wickes Instant Grab Adhesive Solvent Free - 300ml",
|
|
341
|
+
"productCode": "791262",
|
|
342
|
+
"quantity": "10",
|
|
343
|
+
"total": "£22.50",
|
|
344
|
+
"switchVat": true,
|
|
345
|
+
"perSQM": "£14.18"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"img": "https://media.wickes.co.uk/is/image/wickes/S3308_190167_00?$thumbnail$",
|
|
349
|
+
"title": "Hecta LED Wall Light - Chrome",
|
|
350
|
+
"productCode": "790123",
|
|
351
|
+
"quantity": "2",
|
|
352
|
+
"total": "£40"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"subtotalTooltip": "Order level promotions and delivery charges are not included"
|
|
313
356
|
}
|
|
314
357
|
]
|
|
315
358
|
},
|