{"@context":"http:\/\/schema.org\/","@id":"\/products\/trek-dual-sport-2#product","@type":"ProductGroup","brand":{"@type":"Brand","name":"Trek"},"category":"Electric Bikes","description":"The Dual Sport+ 2 is a lightweight and capable hybrid electric bike that’s designed for adventure on the road and light trails. It has an intuitive and natural feeling pedal-assist system that makes exploring your surroundings more fun and cruising up hills a breeze. Plus, stiff wheels and wide tyres give you confidence on varied terrain.\n \nIt's right for you if...\nYou want a lightweight, simple-to-use hybrid e-bike that brings a capable boost to daily errands and rides as well as weekend adventures.\nThe tech you get\nA lightweight aluminium frame and fork, Trek's proprietary pedal-assist system with a hub motor (250 W, 40 Nm) that assists up to 20 mph (25 km\/h in Europe) and a 250 Wh battery for a range of up to 55 kilometres per charge. Plus, stiff 650b wheels and wide 50c tyres for capability and comfort on varied terrain, a reliable 9-speed Shimano drivetrain, hydraulic disc brakes, integrated lights powered by the battery and a kickstand.\nThe final word\nAll the capability and confidence of Dual Sport, with an electric boost that helps you do more! The Dual Sport+ lets you haul groceries uphill with ease and adventure further than you thought possible.\nHow tall are you?To measure your height, stand up straight, barefoot, with your back, heels, shoulders and head all touching a wall. While looking straight ahead, place a book or straight edge on your head and slowly push it against the wall. Your straight edge should be parallel with the floor. Mark the spot where the bottom of the book is touching the wall. The distance from the marked spot to the floor is your height.\nWhat is your inside leg?\nHow to measure: Stand barefoot with your back straight and against a wall. Tuck a ruler or something that extends to the floor between your legs. Using both hands, and keeping it level, pull the ruler up into your crotch as if you were sitting on the saddle. Measure the distance from the top edge of the ruler to the ground to find your inside leg measurement. Your inside leg is very important to your final bike size so please measure carefully\n \n\n\n\n\n\n\n\nSize\nRider Height\nInseam\n\n\n\n\nS\n\n155 - 165 cm\n5'1\" - 5'5\"\n\n\n72 - 78 cm\n28\" - 31\"\n\n\n\nM\n\n165 - 175 cm\n5'5\" - 5'9\"\n\n\n77 - 83 cm\n30\" - 33\"\n\n\n\nL\n\n175 - 186 cm\n5'9\" - 6'1\"\n\n\n82 - 88 cm\n32\" - 35\"\n\n\n\nXL\n\n186 - 197 cm\n6'1\" - 6'6\"\n\n\n87 - 93 cm\n34\" - 37\"\n\n\n\n\n\n\n\n\n\n","hasVariant":[{"@id":"\/products\/trek-dual-sport-2?variant=46044465594594#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/DualSportPlus2_23_35854_A_Primary.webp?v=1728640617\u0026width=1920","name":"Trek Dual Sport+ 2 - Large \/ Blue","offers":{"@id":"\/products\/trek-dual-sport-2?variant=46044465594594#offer","@type":"Offer","availability":"http:\/\/schema.org\/OutOfStock","price":"1923.75","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-dual-sport-2?variant=46044465594594"},"sku":"5268410"},{"@id":"\/products\/trek-dual-sport-2?variant=46044465627362#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/DualSportPlus2_23_35854_A_Primary.webp?v=1728640617\u0026width=1920","name":"Trek Dual Sport+ 2 - Large \/ Grey","offers":{"@id":"\/products\/trek-dual-sport-2?variant=46044465627362#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"1923.75","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-dual-sport-2?variant=46044465627362"},"sku":"5268406"},{"@id":"\/products\/trek-dual-sport-2?variant=46044465660130#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/DualSportPlus2_23_35854_A_Primary.webp?v=1728640617\u0026width=1920","name":"Trek Dual Sport+ 2 - Extra Large \/ Blue","offers":{"@id":"\/products\/trek-dual-sport-2?variant=46044465660130#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"2042.50","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-dual-sport-2?variant=46044465660130"},"sku":"5268411"},{"@id":"\/products\/trek-dual-sport-2?variant=46044465692898#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/DualSportPlus2_23_35854_A_Primary.webp?v=1728640617\u0026width=1920","name":"Trek Dual Sport+ 2 - Extra Large \/ Grey","offers":{"@id":"\/products\/trek-dual-sport-2?variant=46044465692898#offer","@type":"Offer","availability":"http:\/\/schema.org\/OutOfStock","price":"1923.75","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-dual-sport-2?variant=46044465692898"},"sku":"5268407"}],"name":"Trek Dual Sport+ 2","productGroupID":"8734605017314","url":"https:\/\/projektride.co.uk\/products\/trek-dual-sport-2"}
7 Home
/
Trek Road Bikes
/
Trek Madone SLR 7 Gen 8owser","insert_button_after_selector_page":null,"show_button_on_page":false,"insert_button_after_selector_search":null,"show_button_on_search":false,"app_proxy_path_prefix":"/apps/restockrocket-production","collection_link_selector":"","index_link_selector":"","page_link_selector":"","search_link_selector":"","collection_check_link_visibility":true,"collection_buttons_container":null,"index_buttons_container":null,"page_buttons_container":null,"search_buttons_container":null,"extension_enable_url_variant_detection":true,"extension_enable_value_variant_detection":true,"extension_value_variant_selector":"[name='id']","resubscribe_text":"This product is out of stock. Get notified when it's restocked again by entering your details below!","preorder_enabled":true,"preorder_buy_button_selector":null,"preorder_add_to_cart_button_selector":"","preorder_badge_selector":"","preorder_button_out_of_stock_text":"Out of stock","preorder_button_add_to_cart_text":"Add to cart","preorder_form_selector":"form[action*=\"/cart/a
Increase Quantity
ription_show_shipping":true,"preorder_button_description_icons_enabled":true,"preorder_shipping_text":"Shipping: {{ date }}","shipping_applies_to_all_products":true,"shipping_text":"Estimated to ship within 2 months","payment_type":"full","billing_checkout_charge_type":"percentage","billing_checkout_charge_amount":null,"billing_checkout_charge_percentage":"100.0","pricing_type":"no_discount","pricing_amount":null,"pricing_percentage":null,"discount_text":"Save {{ discount }}","billing_title":"Full payment","billing_description":null,"enable_billing_widget":false,"inventory_provider":"stoq","preorder_badge_enabled":false,"preorder_badge_text":"Preorder","preorder_badge_text_color":"#FFFFFF","preorder_badge_background_color":"#000000","preorder_discounted_price_enabled":null,"payment_line_item_property_enabled":false,"shipping_line_item_property_enabled":true,"custom_line_item_property_text":null,"preorder_button_text_color":"#ffffff","preorder_button_background_color":"#565557","preorder_button_colors_enabled"
tyle":"text","countdown_timer_text_color":"#000000","countdown_timer_background_color":"#f5f5f5","countdown_timer_border_radius":8,"countdown_timer_format":"DHMS","countdown_timer_use_schedule_dates":true,"countdown_timer_custom_start_date":null,"countdown_timer_custom_end_date":null,"countdown_timer_starts_text":null,"countdown_timer_ends_text":null,"schedule_offer":false,"schedule_start_date":null,"schedule_end_date":null,"updated_at":"2025-08-19T10:05:43.042Z","allow_mixed_cart":true,"mixed_cart_error_message":"Preorders must be purchased separately from regular items. Please complete your current order first, or clear your cart to continue.","b2b_enabled":true,"preorder_progress_bar_enabled":false,"preorder_progress_bar_text":"{{ sold }} of {{ total }} claimed","preorder_progress_bar_fill_color":"#000000","preorder_progress_bar_background_color":"#e5e5e5","preorder_progress_bar_text_color":"#FFFFFF","preorder_progress_bar_border_radius":4,"preorder_progress_bar_show_percentage":false}];(function() {
Chad (XAFCFA)
lable for preorder","preorder_button_description_show_shipping":true,"preorder_button_description_icons_enabled":true,"preorder_shipping_text":"Shipping: {{ date }}","shipping_applies_to_all_products":true,"shipping_text":"Estimated to ship within 2 months","payment_type":"full","billing_checkout_charge_type":"percentage","billing_checkout_charge_amount":null,"billing_checkout_charge_percentage":"100.0","pricing_type":"no_discount","pricing_amount":null,"pricing_percentage":null,"discount_text":"Save {{ discount }}","billing_title":"Full payment","billing_description":null,"enable_billing_widget":false,"inventory_provider":"stoq","preorder_badge_enabled":false,"preorder_badge_text":"Preorder","preorder_badge_text_color":"#FFFFFF","preorder_badge_background_color":"#000000","preorder_discounted_price_enabled":null,"payment_line_item_property_enabled":false,"shipping_line_item_property_enabled":true,"custom_line_item_property_text":null,"preorder_button_text_color":"#ffffff","preorder_button_background_color":"
n_timer_enabled":false,"countdown_timer_style":"text","countdown_timer_text_color":"#000000","countdown_timer_background_color":"#f5f5f5","countdown_timer_border_radius":8,"countdown_timer_format":"DHMS","countdown_timer_use_schedule_dates":true,"countdown_timer_custom_start_date":null,"countdown_timer_custom_end_date":null,"countdown_timer_starts_text":null,"countdown_timer_ends_text":null,"schedule_offer":false,"schedule_start_date":null,"schedule_end_date":null,"updated_at":"2025-08-19T10:05:43.042Z","allow_mixed_cart":true,"mixed_cart_error_message":"Preorders must be purchased separately from regular items. Please complete your current order first, or clear your cart to continue.","b2b_enabled":true,"preorder_progress_bar_enabled":false,"preorder_progress_bar_text":"{{ sold }} of {{ total }} claimed","preorder_progress_bar_fill_color":"#000000","preorder_progress_bar_background_color":"#e5e5e5","preorder_progress_bar_text_color":"#FFFFFF","preorder_progress_bar_border_radius":4,"preorder_progress_bar_sho
format differences (+00:00 vs .000Z)
const cachedDate = new Date(cachedData.cached_at);
const maxDate = maxUpdatedAt ? new Date(maxUpdatedAt) : null;
const useCached = !maxUpdatedAt || (cachedDate && !isNaN(cachedDate) && (!maxDate || cachedDate > maxDate));
if (useCached) {
if (Array.isArray(cachedData.plans)) {
window._RestockRocketConfig.sellingPlans = cachedData.plans;
// Only use disabled_plan_ids when using cached plans
window._RestockRocketConfig.disabledSellingPlanIds = cachedData.disabled_plan_ids || [];
console.debug('[RR] Using selling plans from cachedSellingPlans (cached_at: ' + cachedData.cached_at + ')');
}
} else {
// When using old format (stale cache), don't trust disabled_plan_ids
window._RestockRocketConfig.disabledSellingPlanIds = [];
console.debug('[RR] Using selling plans from old format (max updated_at: ' + maxUpdatedAt + ')');
}
}
Multi Colour
anced Kammtail alloy tube shapes and H1.5 race geometry give it the sleek looks and handling of a carbon bike and place it at an alloy price point. Paired with big upgrades on parts, like a dependable Shimano 105 drivetrain and powerful hydraulic disc brakes that stop in any weather, this bike is built to perform on club rides and races alike.\u003c\/h4\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch3\u003eIt's right for you if...\u003c\/h3\u003e\n\u003cp\u003e\u003cbr\u003eYou want all the advantages of a bike built to for featherweight performance in a wallet-friendly alloy frame that has the sleek looks and handling you'd expect only from a carbon frame, and the confident stopping power that disc brakes provide.\u003c\/p\u003e\n\u003ch3\u003eThe tech you get\u003c\/h3\u003e\n\u003cp\u003e\u003cbr\u003eAn ultra-light 300 Series Alpha Aluminium frame with Kammtail shaped tubes for increased aerodynamics, Invisible Weld Technology, an Émonda SL carbon fork that absorbs vibration from the road, internal cable Comoros (KMFFr)
sure: Stand barefoot with your back straight and against a wall. Tuck a ruler or something that extends to the floor between your legs. Using both hands, and keeping it level, pull the ruler up into your crotch as if you were sitting on the saddle. Measure the distance from the top edge of the ruler to the ground to find your inside leg measurement. Your inside leg is very important to your final bike size so please measure carefully.\u003c\/p\u003e\n\u003csection data-v-05762449=\"\" id=\"SizingComponent\" data-magellan-target=\"SizingComponent\" class=\"sizing-and-fit-aftermarket-component sizing-table grid-container mb-6\"\u003e\n\u003cdiv data-v-05762449=\"\" class=\"rider-sizing mb-2\"\u003e\n\u003cdiv data-v-4052fbf6=\"\" data-v-05762449=\"\"\u003e\n\u003cdiv data-v-4052fbf6=\"\" class=\"size-table\"\u003e\n\u003ctable data-v-3ac87600=\"\" data-v-4052fbf6=\"\" class=\"trek-table trek-table--hstripe trek-table--borderless trek-table--centered trek-table--small trek-table--sticky-headers trek-table--row-h
003e28\" - 30\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"row\" qaid=\"size-table-row-header-50\"\u003e50\u003c\/th\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e158 - 163 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e5'2\" - 5'4\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e74 - 77 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e29\" - 30\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"row\" qaid=\"size-table-row-header-52\"\u003e52\u003c\/th\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e163 - 168 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e5'4\" - 5'6\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e76 - 79 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e30\" - 31\"\u003c\/p\u003e\n\u003c\/td\u
003e\n\u003c\/tr\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"row\" qaid=\"size-table-row-header-54\"\u003e54\u003c\/th\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e168 - 174 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e5'6\" - 5'9\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e78 - 82 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e31\" - 32\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"row\" qaid=\"size-table-row-header-56\"\u003e56\u003c\/th\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e174 - 180 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e5'9\" - 5'11\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e81 - 85 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e32\" - 33\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-3ac
t_ids":[46047079432418,46047079497954,46047079563490,46047079629026,46047079694562,46047079760098,46047079825634,46047079891170]},"available":false,"name":"Trek Émonda ALR 5 - 60 \/ Grey","public_title":"60 \/ Grey","options":["60","Grey"],"price":199500,"weight":0,"compare_at_price":210000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":34803279429858,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-B-Primary.webp?v=1728746246"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":46047079858402,"title":"62 \/ Red","option1":"62","option2":"Red","option3":null,"sku":"5298281","requires_shipping":true,"taxable":true,"featured_image":{"id":42316346818786,"product_id":8735205916898,"position":2,"created_at":"2024-10-12T16:16:43+01:00","updated_at":"2024-10-12T16:16:44+01:00","alt":null,"width":1440,"height":1080,"src
£2,000.006:17:24+01:00","updated_at":"2024-10-12T16:17:26+01:00","alt":null,"width":1440,"height":1080,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-B-Primary.webp?v=1728746246","variant_ids":[46047079432418,46047079497954,46047079563490,46047079629026,46047079694562,46047079760098,46047079825634,46047079891170]},"available":false,"name":"Trek Émonda ALR 5 - 62 \/ Grey","public_title":"62 \/ Grey","options":["62","Grey"],"price":199500,"weight":0,"compare_at_price":210000,"inventory_management":"shopify","barcode":null,"featured_media":{"alt":null,"id":34803279429858,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-B-Primary.webp?v=1728746246"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-B-Primary.webp?v=1728746246","\/\/projektride.co.uk\/cdn\/shop\/files\/Emo
1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-A-Primary.webp?v=1728746204"},"aspect_ratio":1.333,"height":1080,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-A-Primary.webp?v=1728746204","width":1440},{"alt":null,"id":34803277955298,"position":3,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-A-Alt2.webp?v=1728746211"},"aspect_ratio":1.333,"height":1080,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-A-Alt2.webp?v=1728746211","width":1440},{"alt":null,"id":34803278119138,"position":4,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-A-Alt5.webp?v=1728746219"},"aspect_ratio":1.333,"height":1080,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/EmondaALR5-24-41426-A-Alt5.webp?v=1728746219","width":1440},{"alt":null,"id"
White / Gold
ice point. Paired with big upgrades on parts, like a dependable Shimano 105 drivetrain and powerful hydraulic disc brakes that stop in any weather, this bike is built to perform on club rides and races alike.\u003c\/h4\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ch3\u003eIt's right for you if...\u003c\/h3\u003e\n\u003cp\u003e\u003cbr\u003eYou want all the advantages of a bike built to for featherweight performance in a wallet-friendly alloy frame that has the sleek looks and handling you'd expect only from a carbon frame, and the confident stopping power that disc brakes provide.\u003c\/p\u003e\n\u003ch3\u003eThe tech you get\u003c\/h3\u003e\n\u003cp\u003e\u003cbr\u003eAn ultra-light 300 Series Alpha Aluminium frame with Kammtail shaped tubes for increased aerodynamics, Invisible Weld Technology, an Émonda SL carbon fork that absorbs vibration from the road, internal cable routing in both the frame and fork, a full 2x12 Shimano 105 drivetrain for dependable shifting, powerful flat-mount hydraulic disc brakesCroatia (EUR€)
sing both hands, and keeping it level, pull the ruler up into your crotch as if you were sitting on the saddle. Measure the distance from the top edge of the ruler to the ground to find your inside leg measurement. Your inside leg is very important to your final bike size so please measure carefully.\u003c\/p\u003e\n\u003csection data-v-05762449=\"\" id=\"SizingComponent\" data-magellan-target=\"SizingComponent\" class=\"sizing-and-fit-aftermarket-component sizing-table grid-container mb-6\"\u003e\n\u003cdiv data-v-05762449=\"\" class=\"rider-sizing mb-2\"\u003e\n\u003cdiv data-v-4052fbf6=\"\" data-v-05762449=\"\"\u003e\n\u003cdiv data-v-4052fbf6=\"\" class=\"size-table\"\u003e\n\u003ctable data-v-3ac87600=\"\" data-v-4052fbf6=\"\" class=\"trek-table trek-table--hstripe trek-table--borderless trek-table--centered trek-table--small trek-table--sticky-headers trek-table--row-headers\" qaid=\"size-table\"\u003e\n\u003cthead data-v-3ac87600=\"\"\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600
ope=\"row\" qaid=\"size-table-row-header-50\"\u003e50\u003c\/th\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e158 - 163 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e5'2\" - 5'4\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e74 - 77 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e29\" - 30\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"row\" qaid=\"size-table-row-header-52\"\u003e52\u003c\/th\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e163 - 168 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e5'4\" - 5'6\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e76 - 79 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e30\" - 31\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"row\" qaid=\"size-table-row-header-54\
hop has preorders
// configured at all — an enabled selling plan plus at least one preorder variant id,
// independent of the block toggle. Fail-open: on error the flag stays unset and both
// consumers no-op.
try {
var _sqCfg = window._RestockRocketConfig;
var _sqPlanEnabled = Array.isArray(_sqCfg.sellingPlans) &&
_sqCfg.sellingPlans.some(function (p) { return p && p.enabled; });
var _sqPreCount = ((_sqCfg.cachedPreorderVariantIds &&
_sqCfg.cachedPreorderVariantIds.preorder_variant_ids) || []).length;
_sqCfg.preordersConfigured = !!(_sqPlanEnabled && _sqPreCount);
} catch (e) { /* fail open */ }
// STOQ-1612: block (not hide) Buy Now / Shop Pay until our JS runs, so a tap in the
// load window can't bypass preorder. pointer-events via .stoq-buy-now-pending (no
// reflow); timeout releases; renderPreorderButton / featured_product.js lift it.
// Gated by the `block_accelerated_checkout` toggle (default OFF) for gradual rollout.
// Armed ONLY when we're sure pr
White / Black sqc.acceleratedGateArmed = true;
document.documentElement.classList.add('stoq-buy-now-pending');
setTimeout(function () {
document.documentElement.classList.remove('stoq-buy-now-pending');
}, 6000);
}
} catch (e) { /* fail open */ }
window._RestockRocketConfig.scriptUrlProduct = 'https://cdn.shopify.com/extensions/019f37a7-f058-7bcb-a02d-3fb0b8a7522a/restockrocket-1-539/assets/restockrocket-product.js'
window._RestockRocketConfig.scriptUrlCollection = 'https://cdn.shopify.com/extensions/019f37a7-f058-7bcb-a02d-3fb0b8a7522a/restockrocket-1-539/assets/restockrocket-collection.js'
window._RestockRocketConfig.scriptUrlProductBis = 'https://cdn.shopify.com/extensions/019f37a7-f058-7bcb-a02d-3fb0b8a7522a/restockrocket-1-539/assets/restockrocket-product-bis.js'
window._RestockRocketConfig.scriptUrlCollectionBis = 'https://cdn.shopify.com/extensions/019f37a7-f058-7bcb-a02d-3fb0b8a7522a/restockrocket-1-539/assets/restockrocket-collection-bis.js'
window._RestockRocketConfig.scCzechia (CZKKč)
<
<
<
che age
if (!liquidRenderedAt || typeof liquidRenderedAt !== 'number' || isNaN(liquidRenderedAt)) {
console.debug('STOQ - Invalid or missing liquidRenderedAt timestamp, assuming fresh');
window._RestockRocketConfig.isLiquidCacheFresh = true;
window._RestockRocketConfig.liquidCacheAge = null;
} else {
const now = Math.floor(Date.now() / 1000); // Current time in seconds
const liquidCacheAge = now - liquidRenderedAt; // Age in seconds
// Surfaced into funnel events: a stale cache means the app rendered with
// outdated inventory/selling-plan data — a real "had the opportunity but
// failed" cause. Negative (client clock ahead) clamps to 0.
window._RestockRocketConfig.liquidCacheAge = Math.max(0, liquidCacheAge);
// Handle client clock ahead of server
if (liquidCacheAge Denmark (DKKkr.)
Show more
age = Date.now() - updatedAt.getTime();
if (age
SETTINGS_CACHE_DURATION) {
console.debug('STOQ - settings changed recently, skipping cache');
return null;
}
return settings;
} catch (error) {
console.debug('STOQ - Error checking settings cache:', error);
return null;
}
}
function createRestockRocketContainer() {
const restockRocketContainer = document.createElement('div');
restockRocketContainer.id = 'restock-rocket';
document.body.appendChild(restockRocketContainer);
}
function createRestockRocketScript(scriptUrl) {
const restockRocketScriptElement = document.createElement('script');
restockRocketScriptElement.setAttribute('defer', 'defer');
restockRocketScriptElement.src = scriptUrl;
document.body.appendChild(restockRocketScriptElement);
}
createRestockRocketContainer()
console.debug('STOQ - extension activated')
// Fire stoq_initialized once per page load so the funnel pipeline has a definitive
// "our code ran on this page" signal independent of any cusDjibouti (DJFFdj)
Show less
ctedVariantId || '',
liquid_rendered_at: _stoqInitConfig.liquidRenderedAt || 0,
app_version: _stoqInitConfig.appVersion || '',
liquid_cache_age: _stoqInitConfig.liquidCacheAge,
// Selected variant's stock posture as our app saw it at render — explains
// whether we *should* have treated it as a preorder candidate.
inventory_policy: (_stoqInitConfig.variantsInventoryPolicy || {})[_stoqSelectedVariantId] || '',
inventory_quantity: (_stoqInitConfig.variantsInventoryQuantity || {})[_stoqSelectedVariantId],
});
} catch (e) {
console.debug('STOQ - stoq_initialized publish failed:', e);
}
// STOQ-1595: publish stoq_accelerated_checkout_clicked for every accelerated-checkout
// click (Buy Now / dynamic checkout / Shop Pay installments) on ALL surfaces, before our
// bundle loads, via one delegated capture-phase listener (catches late-rendered buttons).
// Only on shops with preorders configured (shared `preordersConfigured` signal from the
// derivati
st('form');
var vidEl = form && form.querySelector('[name="id"]');
var variantId = (vidEl && vidEl.value) || _sqTrack.selected_variant_id || '';
// The enabled STOQ selling plan the clicked variant belongs to (if any), found once and
// reused for in_enabled_plan / enrolled_plan_id / enrolled_plan_provider below.
var _sqVidNum = Number(variantId);
var _sqPlan = null;
// Array.isArray guard (not `|| []`) so a truthy non-array sellingPlans can't throw and
// silently drop the whole publish.
var _sqPlans = Array.isArray(_sqTrack.sellingPlans) ? _sqTrack.sellingPlans : [];
_sqPlans.forEach(function (pl) {
if (!_sqPlan && pl && pl.enabled && Array.isArray(pl.variant_ids) &&
pl.variant_ids.indexOf(_sqVidNum) !== -1) { _sqPlan = pl; }
});
Shopify?.analytics?.publish?.('stoq_accelerated_checkout_clicked', {
variant_id: variantId,
product_id: (_sqTr
window.appBlockPlacements ||= [];
if (window.klarnaAppBlocksManager) {
window.klarnaAppBlocksManager.push({
productVariants: [{"id":45824527761634,"title":"Blue \/ Small","option1":"Blue","option2":"Small","option3":null,"sku":"5291456","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Trek Dual Sport+ 2 LT - Blue \/ Small","public_title":"Blue \/ Small","options":["Blue","Small"],"price":190000,"weight":0,"compare_at_price":200000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527794402,"title":"Blue \/ Medium","option1":"Blue","option2":"Medium","option3":null,"sku":"5291457","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Blue \/ Medium","public_title":"Blue \/ Medium","options":["Blue","Medium"],"price":190000,"weight":0,"compare_at_price":200000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527827170,"title":"Blue \/ Large","option1":"Blue","option2":"Large","option3":null,"sku":"5291458","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Blue \/ Large","public_title":"Blue \/ Large","options":["Blue","Large"],"price":190000,"weight":0,"compare_at_price":200000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527859938,"title":"Blue \/ Extra Large","option1":"Blue","option2":"Extra Large","option3":null,"sku":"5291459","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Blue \/ Extra Large","public_title":"Blue \/ Extra Large","options":["Blue","Extra Large"],"price":190000,"weight":0,"compare_at_price":200000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527892706,"title":"Black \/ Small","option1":"Black","option2":"Small","option3":null,"sku":"5291460","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Trek Dual Sport+ 2 LT - Black \/ Small","public_title":"Black \/ Small","options":["Black","Small"],"price":194750,"weight":0,"compare_at_price":205000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527925474,"title":"Black \/ Medium","option1":"Black","option2":"Medium","option3":null,"sku":"5291461","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Black \/ Medium","public_title":"Black \/ Medium","options":["Black","Medium"],"price":194750,"weight":0,"compare_at_price":205000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527958242,"title":"Black \/ Large","option1":"Black","option2":"Large","option3":null,"sku":"5291462","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Trek Dual Sport+ 2 LT - Black \/ Large","public_title":"Black \/ Large","options":["Black","Large"],"price":194750,"weight":0,"compare_at_price":205000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527991010,"title":"Black \/ Extra Large","option1":"Black","option2":"Extra Large","option3":null,"sku":"5291463","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Black \/ Extra Large","public_title":"Black \/ Extra Large","options":["Black","Extra Large"],"price":194750,"weight":0,"compare_at_price":205000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],
templateName: 'product',
dataKey: 'top-strip-promotion-badge',
storefrontCurrency: 'GBP',
storefrontCountry: 'GB',
storefrontLanguage: 'en',
shopLocale: 'en',
shopDomain: 'projektride.co.uk',
variantPrice: '190000',
cartPrice: '0',
selector: 'shopify-osm-AZkxmY3VSTnFmNnNiW__klarna_on_site_messaging_app_block_k6rYHt',
topPadding: '0',
bottomPadding: '0',
});
} else {
window.appBlockPlacements.push({
productVariants: [{"id":45824527761634,"title":"Blue \/ Small","option1":"Blue","option2":"Small","option3":null,"sku":"5291456","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Trek Dual Sport+ 2 LT - Blue \/ Small","public_title":"Blue \/ Small","options":["Blue","Small"],"price":190000,"weight":0,"compare_at_price":200000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527794402,"title":"Blue \/ Medium","option1":"Blue","option2":"Medium","option3":null,"sku":"5291457","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Blue \/ Medium","public_title":"Blue \/ Medium","options":["Blue","Medium"],"price":190000,"weight":0,"compare_at_price":200000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527827170,"title":"Blue \/ Large","option1":"Blue","option2":"Large","option3":null,"sku":"5291458","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Blue \/ Large","public_title":"Blue \/ Large","options":["Blue","Large"],"price":190000,"weight":0,"compare_at_price":200000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527859938,"title":"Blue \/ Extra Large","option1":"Blue","option2":"Extra Large","option3":null,"sku":"5291459","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Blue \/ Extra Large","public_title":"Blue \/ Extra Large","options":["Blue","Extra Large"],"price":190000,"weight":0,"compare_at_price":200000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527892706,"title":"Black \/ Small","option1":"Black","option2":"Small","option3":null,"sku":"5291460","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Trek Dual Sport+ 2 LT - Black \/ Small","public_title":"Black \/ Small","options":["Black","Small"],"price":194750,"weight":0,"compare_at_price":205000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527925474,"title":"Black \/ Medium","option1":"Black","option2":"Medium","option3":null,"sku":"5291461","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Black \/ Medium","public_title":"Black \/ Medium","options":["Black","Medium"],"price":194750,"weight":0,"compare_at_price":205000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527958242,"title":"Black \/ Large","option1":"Black","option2":"Large","option3":null,"sku":"5291462","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Trek Dual Sport+ 2 LT - Black \/ Large","public_title":"Black \/ Large","options":["Black","Large"],"price":194750,"weight":0,"compare_at_price":205000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":45824527991010,"title":"Black \/ Extra Large","option1":"Black","option2":"Extra Large","option3":null,"sku":"5291463","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Dual Sport+ 2 LT - Black \/ Extra Large","public_title":"Black \/ Extra Large","options":["Black","Extra Large"],"price":194750,"weight":0,"compare_at_price":205000,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],
templateName: 'product',
shopLocale: 'en',
dataKey: 'top-strip-promotion-badge',
storefrontCurrency: 'GBP',
storefrontCountry: 'GB',
storefrontLanguage: 'en',
shopDomain: 'projektride.co.uk',
variantPrice: '190000',
cartPrice: '0',
selector: 'shopify-osm-AZkxmY3VSTnFmNnNiW__klarna_on_site_messaging_app_block_k6rYHt',
topPadding: '0',
bottomPadding: '0',
});
}
a like-typed compare.
is_preorder_variant: (function () {
var vid = Number(variantId);
var has = function (a) { return Array.isArray(a) && a.indexOf(vid) !== -1; };
return has(_sqTrack.preorderVariantIds) ||
has(_sqTrack.cachedPreorderVariantIds &&
_sqTrack.cachedPreorderVariantIds.preorder_variant_ids);
})(),
// Narrow, authoritative preorder signal: enrolled in an ENABLED STOQ selling plan
// (is_preorder_variant above is the broad OOS+continue heuristic — non-STOQ too).
in_enabled_plan: !!_sqPlan,
// In-stock preorder signal: enrolled but currently IN STOCK (in the inStockVariantIds
// set, not the OOS preorderVariantIds set). Same live-OR-cached pattern as
// is_preorder_variant. is_preorder_variant OR is_instock_variant = "should sell via
// the plan" regardless of stock, so an in-stock preord
cceleratedGateArmed,
gate_active_at_click: !!(document.documentElement &&
document.documentElement.classList.contains('stoq-buy-now-pending')),
},
});
} catch (err) { /* never break checkout */ }
}, true);
}
} catch (e) { /* fail open */ }
function applyTranslations(settings) {
try {
// Skip translation logic entirely if multi-language is not enabled
if (!settings || !settings.multi_language_enabled) {
return settings;
}
if (!settings.translations) {
console.debug('STOQ - No translations found, skipping translation');
return settings;
}
const normalizedLocale = window._RestockRocketConfig.normalizedLocale;
const translations = settings.translations;
if (!normalizedLocale) {
// No matching locale has translations; drop payload to save memory
console.debug('STOQ - No matching locale for translations. Available:', Object.keys(translations || {})Egypt (EGPج.م)
tion setupCartSellingPlanUpdater(settings) {
// Setup listener regardless - updateCartSellingPlans has its own guards
// This ensures cleanup happens even when preorders are disabled globally
// Listen for stoq:inventory-data-loaded event dispatched by api.js
window.addEventListener('stoq:inventory-data-loaded', function(event) {
console.debug('STOQ - Inventory data loaded, updating cart selling plans');
if (window._RestockRocket && window._RestockRocket.updateCartSellingPlans) {
window._RestockRocket.updateCartSellingPlans()
.then(hasUpdates => {
if (hasUpdates) {
console.debug('STOQ - cart selling plans updated successfully');
} else {
console.debug('STOQ - no cart selling plan updates needed');
}
})
.catch(error => {
console.error('STOQ - error updating cart selling plans:', error);
});
}
});
}
// ---- Live settings via the Storefront API (ad
<
The Dual Sport+ 2 LT is a lightweight and capable hybrid electric bike that’s designed for adventure on tarmac and light trails. It has an intuitive and natural-feeling pedal assist system that makes exploring your surroundings more fun and cruising up hills a breeze. Plus, stiff wheels and wide tyres give you confidence on varied terrain "settings") { value } } }';
fetch(
`https://${cfg.shop}/api/2025-07/graphql.json`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Shopify-Storefront-Access-Token': cfg.storefrontAccessToken,
},
body: JSON.stringify({ query: query, variables: { namespace: cfg.metafieldNamespace } }),
}
)
.then(function(response) {
if (!response.ok) { throw new Error('Storefront API HTTP ' + response.status); }
return response.json();
})
.then(function(body) {
if (body && body.errors && body.errors.length) {
throw new Error('Storefront API errors: ' + body.errors.map(function(e) { return e && e.message; }).join(', '));
}
const value = body && body.data && body.data.shop && body.data.shop.metafield && body.data.shop.metafield.value;
if (!value) { throw new Error('Storefront API returned no settings metafield value'); }
cfg.sto
Size
p'
};
if (window.Shopify?.theme?.role === 'main') {
headers['X-Shopify-Theme-Schema-Name'] = window.Shopify.theme.schema_name;
headers['X-Shopify-Theme-Schema-Version'] = window.Shopify.theme.schema_version;
headers['X-Shopify-Theme-Store-Id'] = window.Shopify.theme.theme_store_id;
}
fetch(
`${window._RestockRocketConfig.host}/api/v1/setting.json?translation_locale=${window._RestockRocketConfig.normalizedLocale}`,
{ headers }
)
.then(function(response) {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.json();
})
.then(function(settings) {
initializeScripts(settings);
})
.catch(function(error) {
// If request failed and we have cached settings (even if expired), use them as fallback
if (cachedSettings) {
console.debug('STOQ - using expired cached settings as fallback');
initializeScripts(cachedSettings);
} else {
console.error('SEquatorial Guinea (XAFCFA)
e programming bugs (e.g. response shape changed
// server-side and the assignment threw). Surface them as console.error
// so they're visible in browser logs, then re-throw to fall through
// to the same Liquid-cached fallback as a fetch failure.
console.error('STOQ - apply failed for ' + endpoint + ':', applyError);
throw applyError;
}
})
.catch(function(error) {
console.debug(`STOQ - using cached ${endpoint}:`, error.message);
});
}
function initializeScripts(settings) {
settings = applyTranslations(settings);
window._RestockRocketConfig.settings = settings;
console.debug(`STOQ - settings configured for ${window._RestockRocketConfig.pageType}`);
// Stale-Liquid resilience (default-on, per-shop opt-out via the
// `disable_refresh_on_stale_liquid` Toggle, surfaced as the negative
// `disable_refresh_on_stale_liquid` flag in settings.json so that
// `undefined` -- in CDN-cached metafield payloads that predate this
// key -- reads as `!undefined === true` and gets default-on behavior
// immediately, no metafield rewrite required).
// When the Liquid CDN cache is older than LIQUID_CACHE_MAX_AGE the in-page
// selling_plans / integrations metafields can be wrong; refresh both from
// the API before launching scripts. Race against a 1000ms timeout so a slow
// API can't block init indefinitely. If the timeout wins, the in-flight
// fetches still complete and update window._RestockRocketConfig — the
// bundle re-reads sellingPlans/integrations on every interaction, so the
// late-arriving values benefit subsequent renders even though the first
// paint may use the Liquid-cached values. On any failure the existing
// Liquid-loaded values stay in place via fetchEmbedConfig's catch.
if (!window._RestockRocketConfig.isLiquidCacheFresh && !settings.disable_refresh_on_stale_liquid) {
console.debug('STOQ - Liquid cache stale, refreshing selling_plans + integrations');
*Please note – spec applies to all sizes unless listed separately
Promise.race([
Promise.all([
fetchEmbedConfig('selling_plans', function(data) {
if (data && Array.isArray(data.plans)) {
window._RestockRocketConfig.sellingPlans = data.plans;
window._RestockRocketConfig.disabledSellingPlanIds = data.disabled_plan_ids || [];
}
}),
fetchEmbedConfig('integrations', function(data) {
if (Array.isArray(data)) {
window._RestockRocketConfig.integrations = data;
}
})
]),
new Promise(function(resolve) { setTimeout(resolve, 1000); })
]).then(function() { loadScripts(settings); });
return;
}
loadScripts(settings);
}
function loadScripts(settings) {
// Setup cart selling plan updater BEFORE loading any scripts to avoid race conditions
setupCartSellingPlanUpdater(settings);
if(settings.enable_app) {
const hijackIntegration = window._RestockRocketConfig.integrations.find(function(integration) {
return integration.type === 'hijack' && integration.enabled && integration.page_types.includes(window._RestockRocketConfig.pageType);
})
// STOQ-1520: serve the lean back-in-stock-only build (no preorder/hijack code)
// only to shops with NO preorder plans. Use the full build if preorder is on,
// an enabled offer exists, or a disabled-but-kept plan id remains (cart sweep
// must still strip those). Rationale in the PR.
const hasEnabledOffer = Array.isArray(window._RestockRocketConfig.sellingPlans)
&& window._RestockRocketConfig.sellingPlans.some(function(plan) { return plan && plan.enabled; });
const hasDisabledPlanIds = Array.isArray(window._RestockRocketConfig.disabledSellingPlanIds)
&& window._RestockRocketConfig.disabledSellingPlanIds.length > 0;
const usePreorderBuild = settings.preorder_enabled || hasEnabledOffer || hasDisabledPlanIds;
const collectionScriptUrl = usePreorderBuild
? window._RestockRocketConfig.scrip
tUrlCollection
: window._RestockRocketConfig.scriptUrlCollectionBis;
const productScriptUrl = usePreorderBuild
? window._RestockRocketConfig.scriptUrlProduct
: window._RestockRocketConfig.scriptUrlProductBis;
const pageType = window._RestockRocketConfig.pageType;
const collectionPageTypes = ['collection', 'index', 'search', 'page'];
if(collectionPageTypes.indexOf(pageType) !== -1 && (settings[`show_button_on_${pageType}`] || settings[`preorder_${pageType}_enabled`])) {
createRestockRocketScript(collectionScriptUrl);
} else if(pageType === 'product') {
createRestockRocketScript(productScriptUrl);
} else if(hijackIntegration) {
createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection);
} else if(usePreorderBuild) {
// cart/article/blog/list-collections: full build so the cart sweep runs.
createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection);
} else {
con