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
|
@@ -97,7 +97,21 @@
|
|
|
97
97
|
},
|
|
98
98
|
"totalPrice": "920.75",
|
|
99
99
|
"totalItemCount": 7,
|
|
100
|
-
"orderDate": "21st November 2024 4:32 PM"
|
|
100
|
+
"orderDate": "21st November 2024 4:32 PM",
|
|
101
|
+
"shipmentDetails": [
|
|
102
|
+
{
|
|
103
|
+
"shipmentIcon": "fas fa-shipping-fast",
|
|
104
|
+
"shipmentTitle": "Premium Delivery from Southampton store",
|
|
105
|
+
"shipmentInfo": "Dispatched. Delivery — By 12 PM - 12th Apr 2026",
|
|
106
|
+
"itemsCount": 1
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"shipmentIcon": "fas fa-box-alt",
|
|
110
|
+
"shipmentTitle": "Supplier Delivery",
|
|
111
|
+
"shipmentInfo": "Order placed. These item(s) will be delivered within 14 days after receiving your order confirmation. Supplier will contact you with additional information.",
|
|
112
|
+
"itemsCount": 3
|
|
113
|
+
}
|
|
114
|
+
]
|
|
101
115
|
},
|
|
102
116
|
{
|
|
103
117
|
"orderId": "940564923",
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><g clip-path="url(#a)"><circle cx="19.828" cy="12.892" r="6.953" stroke="#99b5cf" stroke-width="1.112"/><rect width="1.112" height="2.503" x="19.272" y="5.661" fill="#99b5cf" rx=".556"/><rect width="1.112" height="2.503" x="12.32" y="13.448" fill="#99b5cf" rx=".556" transform="rotate(-90 12.32 13.448)"/><path fill="#99b5cf" d="M1.056 21.513a.556.556 0 1 1 0-1.112H4.95v1.112z"/><rect width="1.112" height="2.503" x="24.834" y="13.448" fill="#99b5cf" rx=".556" transform="rotate(-90 24.834 13.448)"/><rect width="1.112" height="2.503" x="14.127" y="8.116" fill="#99b5cf" rx=".556" transform="rotate(-45 14.127 8.116)"/><rect width="1.112" height="2.503" fill="#99b5cf" rx=".556" transform="rotate(225 10.734 5.935)scale(-1 1)"/><rect width="1.112" height="2.503" fill="#99b5cf" rx=".556" transform="rotate(45 2.994 34.94)scale(-1 1)"/><rect width="1.112" height="3.428" fill="#99b5cf" rx=".556" transform="matrix(1 0 0 -1 19.272 12.844)"/><rect width="1.112" height="2.781" fill="#99b5cf" rx=".556" transform="matrix(0 -1 -1 0 19.78 13.448)"/><rect width="1.112" height="2.503" x="25.583" y="17.721" fill="#99b5cf" rx=".556" transform="rotate(135 25.583 17.72)"/><rect width="1.112" height="2.503" x="19.272" y="17.898" fill="#99b5cf" rx=".556"/><rect width="1.669" height="1.669" x="18.994" y="12.058" fill="#99b5cf" rx=".834"/><path fill="#99b5cf" d="M1.056 24.85a.556.556 0 1 1 0-1.112H4.95v1.113zM1.056 28.188a.556.556 0 1 1 0-1.112H4.95v1.112zM1.056 31.525a.556.556 0 1 1 0-1.112H4.95v1.112z"/><path fill="#99b5cf" fill-rule="evenodd" d="M10.86 35.419a2.98 2.98 0 0 1 2.266 1.044H8.593a2.98 2.98 0 0 1 2.266-1.044m.864-20.024c1.027 3.329 4.047 5.785 7.668 5.968l.436.012a8.49 8.49 0 0 0 8.107-5.98h4.547c1.229 0 2.225.997 2.225 2.226v4.435q.115-.026.246-.051a14 14 0 0 1 2.376-.253c1.902-.038 4.365.319 6.418 1.97 1.286 1.035 2.179 2.954 2.804 4.863.634 1.938 1.03 3.99 1.254 5.41.21 1.33-.837 2.468-2.146 2.468h-2.353a4.52 4.52 0 0 0-3.847-2.568l-.232-.005a4.52 4.52 0 0 0-4.08 2.573H14.94a4.52 4.52 0 0 0-3.847-2.568l-.233-.005a4.52 4.52 0 0 0-4.073 2.557 2.226 2.226 0 0 1-1.975-2.21v-2.71h5.005a.557.557 0 0 0 0-1.114H4.811V28.19h2.92a.557.557 0 0 0 0-1.113H4.81v-2.224h5.005a.556.556 0 1 0 0-1.112H4.811v-2.226h8.065a.556.556 0 0 0 0-1.113H4.811v-2.78c0-1.229.996-2.226 2.225-2.226zm27.503 20.024a2.98 2.98 0 0 1 2.266 1.044H36.96a2.98 2.98 0 0 1 2.268-1.044M37.48 24.715a.945.945 0 0 0-.965.953v4.263c0 .537.436.973.973.973h4.728c.53 0 .997-.44.95-1.017a8 8 0 0 0-.355-1.814c-.23-.703-.617-1.482-1.278-2.043-1.17-.993-2.79-1.24-3.707-1.3z" clip-rule="evenodd"/><circle cx="10.86" cy="38.408" r="3.476" fill="#fff" stroke="#99b5cf" stroke-width="1.53"/><circle cx="10.86" cy="38.408" r="1.738" fill="#fff" stroke="#99b5cf" stroke-width="1.112"/><circle cx="39.226" cy="38.408" r="3.476" fill="#fff" stroke="#99b5cf" stroke-width="1.53"/><circle cx="39.226" cy="38.408" r="1.738" stroke="#99b5cf" stroke-width="1.112"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h48v48H0z"/></clipPath></defs></svg>
|
|
@@ -3,9 +3,9 @@ var Wick = window.Wick || {};
|
|
|
3
3
|
$(document).ready(function () {
|
|
4
4
|
window.setTimeout(function () {
|
|
5
5
|
const $container = $('[data-complete-widget]');
|
|
6
|
-
const contextKey = $container.data('
|
|
6
|
+
const contextKey = $container.data('mock-key');
|
|
7
7
|
const payloadData = Wick.FEMock.dataBloomreach[contextKey];
|
|
8
8
|
|
|
9
|
-
Wick.BloomreachWidget.init(payloadData);
|
|
9
|
+
Wick.BloomreachWidget.init('completeYourProject', payloadData);
|
|
10
10
|
}, 3000);
|
|
11
11
|
});
|
|
@@ -6,12 +6,14 @@ const DS_EL = {
|
|
|
6
6
|
subtitle: '.delivery-btn .subtitle',
|
|
7
7
|
infoIcon: '.rapid-info-icon',
|
|
8
8
|
image: '.delivery-btn__image',
|
|
9
|
+
premiumImage: '.delivery-btn__image--premium',
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
const DS_CLASSES = {
|
|
12
13
|
selectedCell: 'calendar__cell_selected',
|
|
13
14
|
isSelected: 'date-selection_selected',
|
|
14
|
-
rapidCell: '
|
|
15
|
+
rapidCell: 'calendar-rapid-day',
|
|
16
|
+
premiumCell: 'calendar-premium-day',
|
|
15
17
|
hidden: 'd-none',
|
|
16
18
|
};
|
|
17
19
|
|
|
@@ -98,17 +100,72 @@ function updateRapidInfo() {
|
|
|
98
100
|
updateDeliveryInfo();
|
|
99
101
|
}
|
|
100
102
|
|
|
103
|
+
function getPremiumOrdinal(day) {
|
|
104
|
+
if (day > 3 && day < 21) return 'th';
|
|
105
|
+
switch (day % 10) {
|
|
106
|
+
case 1:
|
|
107
|
+
return 'st';
|
|
108
|
+
case 2:
|
|
109
|
+
return 'nd';
|
|
110
|
+
case 3:
|
|
111
|
+
return 'rd';
|
|
112
|
+
default:
|
|
113
|
+
return 'th';
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function formatPremiumDate() {
|
|
118
|
+
const tomorrow = new Date();
|
|
119
|
+
tomorrow.setDate(tomorrow.getDate() + 1);
|
|
120
|
+
const day = tomorrow.getDate();
|
|
121
|
+
const month = tomorrow.toLocaleString('en-GB', { month: 'long' });
|
|
122
|
+
const year = tomorrow.getFullYear();
|
|
123
|
+
return `${day}${getPremiumOrdinal(day)} ${month} ${year}`;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function updatePremiumDeliveryBlock() {
|
|
127
|
+
const $timeHead = $('.delivery-block .checkout-order .order-block__time-head');
|
|
128
|
+
if (!$timeHead.length) return;
|
|
129
|
+
|
|
130
|
+
const $span = $timeHead.find('> span').first();
|
|
131
|
+
const $icon = $span.find('.iconHead').detach();
|
|
132
|
+
|
|
133
|
+
$span.empty().append($icon).append(` By 12 PM `);
|
|
134
|
+
$span.append($('<span class="boldDate">').text(`- ${formatPremiumDate()}`));
|
|
135
|
+
$timeHead.find('.order-block__time-head-info').text('Delivery date');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function updatePremiumInfo() {
|
|
139
|
+
const $title = $(DS_EL.title);
|
|
140
|
+
const $subtitle = $(DS_EL.subtitle);
|
|
141
|
+
const $infoIcon = $subtitle.find(DS_EL.infoIcon).detach();
|
|
142
|
+
const $image = $(DS_EL.image);
|
|
143
|
+
const $premiumImage = $(DS_EL.premiumImage);
|
|
144
|
+
|
|
145
|
+
$title.text('Premium delivery');
|
|
146
|
+
$subtitle.html('Delivered tomorrow morning for £12.00');
|
|
147
|
+
$infoIcon.addClass(DS_CLASSES.hidden);
|
|
148
|
+
$subtitle.append($infoIcon);
|
|
149
|
+
$image.addClass(DS_CLASSES.hidden);
|
|
150
|
+
$premiumImage.removeClass(DS_CLASSES.hidden);
|
|
151
|
+
updatePremiumDeliveryBlock();
|
|
152
|
+
}
|
|
153
|
+
|
|
101
154
|
function selectTimeSlot(e) {
|
|
102
155
|
const $self = $(DS_EL.dateSelection);
|
|
103
156
|
const $cell = $(e.target).closest(DS_EL.cell);
|
|
104
157
|
const isRapid = $cell.hasClass(DS_CLASSES.rapidCell);
|
|
158
|
+
const isPremiumCell = $cell.hasClass(DS_CLASSES.premiumCell);
|
|
105
159
|
|
|
106
160
|
$(DS_EL.cell).removeClass(DS_CLASSES.selectedCell);
|
|
107
161
|
$cell.addClass(DS_CLASSES.selectedCell);
|
|
108
162
|
$self.trigger('selected');
|
|
109
163
|
isDateSelected = true;
|
|
110
164
|
|
|
111
|
-
if (
|
|
165
|
+
if (isPremiumCell) {
|
|
166
|
+
$self.addClass(DS_CLASSES.isSelected);
|
|
167
|
+
updatePremiumInfo();
|
|
168
|
+
} else if (isRapid) {
|
|
112
169
|
if (!rapidLoaderShown) {
|
|
113
170
|
rapidLoaderShown = true;
|
|
114
171
|
showRapidLoader();
|
package/src/js/emulation/mock.js
CHANGED
|
@@ -9,6 +9,315 @@ Wick.FEMock = {
|
|
|
9
9
|
);
|
|
10
10
|
},
|
|
11
11
|
dataBloomreach: {
|
|
12
|
+
whyNotAddRecommendationsSingle: {
|
|
13
|
+
recommendedProducts: [
|
|
14
|
+
{
|
|
15
|
+
baseProduct: {
|
|
16
|
+
code: '153731',
|
|
17
|
+
name: 'Wickes Trade Paint Roller Set - 9in',
|
|
18
|
+
url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
|
|
19
|
+
purchasable: true,
|
|
20
|
+
productType: 'ProductModel',
|
|
21
|
+
isBaseProduct: false,
|
|
22
|
+
availabilityRestriction: 'NO_RESTRICTIONS',
|
|
23
|
+
fulfilmentType: 'STANDARD',
|
|
24
|
+
stock: {
|
|
25
|
+
stockLevelStatus: {
|
|
26
|
+
code: 'inStock',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
fulfillmentAttributes: {
|
|
30
|
+
type: 'STANDARD',
|
|
31
|
+
},
|
|
32
|
+
images: [
|
|
33
|
+
{
|
|
34
|
+
imageType: 'PRIMARY',
|
|
35
|
+
format: 'product',
|
|
36
|
+
url: 'https://placehold.co/68x68?text=roller',
|
|
37
|
+
altText: 'Wickes Trade Paint Roller Set - 9in',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
externalAverageRating: 5,
|
|
41
|
+
externalReviewCount: 100,
|
|
42
|
+
displayPrice: {
|
|
43
|
+
currencyIso: 'GBP',
|
|
44
|
+
value: 9999,
|
|
45
|
+
priceType: 'BUY',
|
|
46
|
+
formattedValue: '£9,999.00',
|
|
47
|
+
formattedPriceWithoutCurrencySymbol: '16',
|
|
48
|
+
currencySymbol: '£',
|
|
49
|
+
vatRatePercentage: 20,
|
|
50
|
+
valueInPence: 999900,
|
|
51
|
+
wasPrice: 30,
|
|
52
|
+
},
|
|
53
|
+
displayPriceExclusiveVat: {
|
|
54
|
+
currencyIso: 'GBP',
|
|
55
|
+
value: 9998,
|
|
56
|
+
priceType: 'BUY',
|
|
57
|
+
formattedValue: '£9,998.00',
|
|
58
|
+
formattedPriceWithoutCurrencySymbol: '13.33',
|
|
59
|
+
currencySymbol: '£',
|
|
60
|
+
valueInPence: 999800,
|
|
61
|
+
wasPrice: 25,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
whyNotAddRecommendations: {
|
|
68
|
+
recommendedProducts: [
|
|
69
|
+
{
|
|
70
|
+
baseProduct: {
|
|
71
|
+
code: '153731',
|
|
72
|
+
name: 'Wickes Trade Paint Roller Set - 9in',
|
|
73
|
+
url: '/Wickes-Trade-Paint-Roller-Set---9in/p/153731',
|
|
74
|
+
purchasable: true,
|
|
75
|
+
productType: 'ProductModel',
|
|
76
|
+
isBaseProduct: false,
|
|
77
|
+
availabilityRestriction: 'NO_RESTRICTIONS',
|
|
78
|
+
fulfilmentType: 'STANDARD',
|
|
79
|
+
stock: {
|
|
80
|
+
stockLevelStatus: {
|
|
81
|
+
code: 'inStock',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
fulfillmentAttributes: {
|
|
85
|
+
type: 'STANDARD',
|
|
86
|
+
},
|
|
87
|
+
images: [
|
|
88
|
+
{
|
|
89
|
+
imageType: 'PRIMARY',
|
|
90
|
+
format: 'product',
|
|
91
|
+
url: 'https://placehold.co/68x68?text=roller',
|
|
92
|
+
altText: 'Wickes Trade Paint Roller Set - 9in',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
externalAverageRating: 5,
|
|
96
|
+
externalReviewCount: 100,
|
|
97
|
+
|
|
98
|
+
displayPrice: {
|
|
99
|
+
currencyIso: 'GBP',
|
|
100
|
+
value: 9999,
|
|
101
|
+
priceType: 'BUY',
|
|
102
|
+
formattedValue: '£9,999.00',
|
|
103
|
+
formattedPriceWithoutCurrencySymbol: '16',
|
|
104
|
+
currencySymbol: '£',
|
|
105
|
+
vatRatePercentage: 20,
|
|
106
|
+
valueInPence: 999900,
|
|
107
|
+
wasPrice: 3000,
|
|
108
|
+
},
|
|
109
|
+
displayPriceExclusiveVat: {
|
|
110
|
+
currencyIso: 'GBP',
|
|
111
|
+
value: 9998,
|
|
112
|
+
priceType: 'BUY',
|
|
113
|
+
formattedValue: '£9,998.00',
|
|
114
|
+
formattedPriceWithoutCurrencySymbol: '13.33',
|
|
115
|
+
currencySymbol: '£',
|
|
116
|
+
valueInPence: 999800,
|
|
117
|
+
wasPrice: 2500,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
baseProduct: {
|
|
123
|
+
code: '349137',
|
|
124
|
+
name: 'Wickes Microfibre Paint Roller Sleeve - 9in',
|
|
125
|
+
url: '/Wickes-Microfibre-Paint-Roller-Sleeve---9in/p/349137',
|
|
126
|
+
purchasable: true,
|
|
127
|
+
productType: 'ProductModel',
|
|
128
|
+
isBaseProduct: false,
|
|
129
|
+
availabilityRestriction: 'NO_RESTRICTIONS',
|
|
130
|
+
fulfilmentType: 'STANDARD',
|
|
131
|
+
stock: {
|
|
132
|
+
stockLevelStatus: {
|
|
133
|
+
code: 'inStock',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
fulfillmentAttributes: {
|
|
137
|
+
type: 'STANDARD',
|
|
138
|
+
},
|
|
139
|
+
images: [
|
|
140
|
+
{
|
|
141
|
+
imageType: 'PRIMARY',
|
|
142
|
+
format: 'product',
|
|
143
|
+
url: 'https://placehold.co/68x68?text=sleeve',
|
|
144
|
+
altText: 'Wickes Microfibre Paint Roller Sleeve - 9in',
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
externalAverageRating: 4.2,
|
|
148
|
+
externalReviewCount: 48,
|
|
149
|
+
displayPrice: {
|
|
150
|
+
currencyIso: 'GBP',
|
|
151
|
+
value: 9999,
|
|
152
|
+
priceType: 'BUY',
|
|
153
|
+
formattedValue: '£7.5220',
|
|
154
|
+
formattedPriceWithoutCurrencySymbol: '7.50',
|
|
155
|
+
currencySymbol: '£',
|
|
156
|
+
vatRatePercentage: 20,
|
|
157
|
+
valueInPence: 999900,
|
|
158
|
+
},
|
|
159
|
+
displayPriceExclusiveVat: {
|
|
160
|
+
currencyIso: 'GBP',
|
|
161
|
+
value: 9998,
|
|
162
|
+
priceType: 'BUY',
|
|
163
|
+
formattedValue: '£6.25',
|
|
164
|
+
formattedPriceWithoutCurrencySymbol: '6.25',
|
|
165
|
+
currencySymbol: '£',
|
|
166
|
+
valueInPence: 999800,
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
baseProduct: {
|
|
172
|
+
code: '221048',
|
|
173
|
+
name: 'Wickes Paint Tray - 9in',
|
|
174
|
+
url: '/Wickes-Paint-Tray---9in/p/221048',
|
|
175
|
+
purchasable: true,
|
|
176
|
+
productType: 'ProductModel',
|
|
177
|
+
isBaseProduct: false,
|
|
178
|
+
availabilityRestriction: 'NO_RESTRICTIONS',
|
|
179
|
+
fulfilmentType: 'STANDARD',
|
|
180
|
+
stock: {
|
|
181
|
+
stockLevelStatus: {
|
|
182
|
+
code: 'inStock',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
fulfillmentAttributes: {
|
|
186
|
+
type: 'STANDARD',
|
|
187
|
+
},
|
|
188
|
+
images: [
|
|
189
|
+
{
|
|
190
|
+
imageType: 'PRIMARY',
|
|
191
|
+
format: 'product',
|
|
192
|
+
url: 'https://placehold.co/68x68?text=tray',
|
|
193
|
+
altText: 'Wickes Paint Tray - 9in',
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
externalAverageRating: 3.8,
|
|
197
|
+
externalReviewCount: 19,
|
|
198
|
+
displayPrice: {
|
|
199
|
+
currencyIso: 'GBP',
|
|
200
|
+
value: 4,
|
|
201
|
+
priceType: 'BUY',
|
|
202
|
+
formattedValue: '£4',
|
|
203
|
+
formattedPriceWithoutCurrencySymbol: '4',
|
|
204
|
+
currencySymbol: '£',
|
|
205
|
+
vatRatePercentage: 20,
|
|
206
|
+
valueInPence: 400,
|
|
207
|
+
},
|
|
208
|
+
displayPriceExclusiveVat: {
|
|
209
|
+
currencyIso: 'GBP',
|
|
210
|
+
value: 3.33,
|
|
211
|
+
priceType: 'BUY',
|
|
212
|
+
formattedValue: '£3.33',
|
|
213
|
+
formattedPriceWithoutCurrencySymbol: '3.33',
|
|
214
|
+
currencySymbol: '£',
|
|
215
|
+
valueInPence: 333,
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
baseProduct: {
|
|
221
|
+
code: '654221',
|
|
222
|
+
name: 'Wickes Professional Masking Tape - 48mm x 50m',
|
|
223
|
+
url: '/Wickes-Professional-Masking-Tape---48mm-x-50m/p/654221',
|
|
224
|
+
purchasable: true,
|
|
225
|
+
productType: 'ProductModel',
|
|
226
|
+
isBaseProduct: false,
|
|
227
|
+
availabilityRestriction: 'NO_RESTRICTIONS',
|
|
228
|
+
fulfilmentType: 'STANDARD',
|
|
229
|
+
stock: {
|
|
230
|
+
stockLevelStatus: {
|
|
231
|
+
code: 'inStock',
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
fulfillmentAttributes: {
|
|
235
|
+
type: 'STANDARD',
|
|
236
|
+
},
|
|
237
|
+
images: [
|
|
238
|
+
{
|
|
239
|
+
imageType: 'PRIMARY',
|
|
240
|
+
format: 'product',
|
|
241
|
+
url: 'https://placehold.co/68x68?text=tape',
|
|
242
|
+
altText: 'Wickes Professional Masking Tape - 48mm x 50m',
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
externalAverageRating: 4.6,
|
|
246
|
+
externalReviewCount: 72,
|
|
247
|
+
displayPrice: {
|
|
248
|
+
currencyIso: 'GBP',
|
|
249
|
+
value: 5.5,
|
|
250
|
+
priceType: 'BUY',
|
|
251
|
+
formattedValue: '£5.50',
|
|
252
|
+
formattedPriceWithoutCurrencySymbol: '5.50',
|
|
253
|
+
currencySymbol: '£',
|
|
254
|
+
vatRatePercentage: 20,
|
|
255
|
+
valueInPence: 550,
|
|
256
|
+
},
|
|
257
|
+
displayPriceExclusiveVat: {
|
|
258
|
+
currencyIso: 'GBP',
|
|
259
|
+
value: 4.58,
|
|
260
|
+
priceType: 'BUY',
|
|
261
|
+
formattedValue: '£4.58',
|
|
262
|
+
formattedPriceWithoutCurrencySymbol: '4.58',
|
|
263
|
+
currencySymbol: '£',
|
|
264
|
+
valueInPence: 458,
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
baseProduct: {
|
|
270
|
+
code: '782913',
|
|
271
|
+
name: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m Extra Long Product Name For Two Line Truncation Test',
|
|
272
|
+
url: '/Wickes-Dust-Sheet-Cotton-Twill---3-6m-x-2-7m/p/782913',
|
|
273
|
+
purchasable: true,
|
|
274
|
+
productType: 'ProductModel',
|
|
275
|
+
isBaseProduct: false,
|
|
276
|
+
availabilityRestriction: 'NO_RESTRICTIONS',
|
|
277
|
+
fulfilmentType: 'STANDARD',
|
|
278
|
+
stock: {
|
|
279
|
+
stockLevelStatus: {
|
|
280
|
+
code: 'inStock',
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
fulfillmentAttributes: {
|
|
284
|
+
type: 'STANDARD',
|
|
285
|
+
},
|
|
286
|
+
images: [
|
|
287
|
+
{
|
|
288
|
+
imageType: 'PRIMARY',
|
|
289
|
+
format: 'product',
|
|
290
|
+
url: 'https://placehold.co/68x68?text=sheet',
|
|
291
|
+
altText: 'Wickes Dust Sheet Cotton Twill - 3.6m x 2.7m',
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
externalAverageRating: 4.1,
|
|
295
|
+
externalReviewCount: 34,
|
|
296
|
+
displayPrice: {
|
|
297
|
+
currencyIso: 'GBP',
|
|
298
|
+
value: 12,
|
|
299
|
+
priceType: 'BUY',
|
|
300
|
+
formattedValue: '£12',
|
|
301
|
+
formattedPriceWithoutCurrencySymbol: '12',
|
|
302
|
+
currencySymbol: '£',
|
|
303
|
+
vatRatePercentage: 20,
|
|
304
|
+
valueInPence: 1200,
|
|
305
|
+
wasPrice: 18,
|
|
306
|
+
},
|
|
307
|
+
displayPriceExclusiveVat: {
|
|
308
|
+
currencyIso: 'GBP',
|
|
309
|
+
value: 10,
|
|
310
|
+
priceType: 'BUY',
|
|
311
|
+
formattedValue: '£10',
|
|
312
|
+
formattedPriceWithoutCurrencySymbol: '10',
|
|
313
|
+
currencySymbol: '£',
|
|
314
|
+
valueInPence: 1000,
|
|
315
|
+
wasPrice: 15,
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
},
|
|
12
321
|
completeYourProject3Recomendations: [
|
|
13
322
|
{
|
|
14
323
|
baseProduct: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var Wick = window.Wick || {};
|
|
2
|
+
|
|
3
|
+
$(document).ready(function () {
|
|
4
|
+
window.setTimeout(function () {
|
|
5
|
+
const $container = $('[data-why-not-add-widget]');
|
|
6
|
+
const mockDataKey = $container.data('mock-key');
|
|
7
|
+
const payloadData = Wick.FEMock.dataBloomreach[mockDataKey];
|
|
8
|
+
|
|
9
|
+
Wick.BloomreachWidget.init('whyNotAdd', payloadData);
|
|
10
|
+
}, 3000);
|
|
11
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var Wick = window.Wick || {};
|
|
2
|
+
|
|
3
|
+
function simulateHybrisSendingHtml() {
|
|
4
|
+
const htmlFromHybris = Wick.FEMock.cartPDP;
|
|
5
|
+
|
|
6
|
+
window.dispatchEvent(
|
|
7
|
+
new CustomEvent('productAddedToCart', {
|
|
8
|
+
detail: {
|
|
9
|
+
html: htmlFromHybris,
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function bindWhyNotAddToCartEvent() {
|
|
16
|
+
$(window)
|
|
17
|
+
.off('addToCart.whyNotAddEmulation')
|
|
18
|
+
.on('addToCart.whyNotAddEmulation', function ({ detail: { resolve } }) {
|
|
19
|
+
setTimeout(function () {
|
|
20
|
+
resolve();
|
|
21
|
+
simulateHybrisSendingHtml();
|
|
22
|
+
}, 3000);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
$(document).ready(function () {
|
|
27
|
+
bindWhyNotAddToCartEvent();
|
|
28
|
+
});
|