Chad (XAFCFA)
Header Image
Comoros (KMFFr)
Congo - Kinshasa (CDFFr)
Guadeloupe (EUR€)

Guinea (GNFFr)
Guinea-Bissau (XOFFr)
Hungary (HUFFt)
Iceland (ISKkr)
Ireland (EUR€) Isle of Man (GBP£)
Italy (EUR€)
Jersey (GBP£) South Sudan (GBP£) Sudan (GBP£)
Svalbard & Jan Mayen (GBP£)
Sweden (SEKkr)
Niger (XOFFr)
Nigeria (NGN₦)
British Indian Ocean Territory (USD$)
North Macedonia (MKDден)
Norway (GBP£)
Burkina Faso (XOFFr)
Poland (PLNzł)

Burundi (BIFFr)

Portugal (EUR€)

Réunion (EUR€)


Romania (RONLei)


Rwanda (RWFFRw)


San Marino (EUR€)


São Tomé & Príncipe (STDDb)


Senegal (XOFFr)
Serbia (RSDРСД) BUY SELL Open image lightbox \u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eIf you have any questions or inquiries, please don't hesitate to reach out to us. We strive to respond promptly and aim to get back to you within 5 working hours. Your satisfaction and peace of mind are our top priorities.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003e Email - \u003c\/span\u003e\u003ca href=\"mailto:edinburgh@projektride.co.uk\" data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eedinburgh@projektride.co.uk\u003c\/span\u003e\u003c\/a\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eT - 0131 374 5324\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" dat cdn\/shop\/files\/DSC01763.jpg?v=1761051078"},"aspect_ratio":1.505,"height":3264,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01763.jpg?v=1761051078","width":4912},{"alt":null,"id":68259093250431,"position":8,"preview_image":{"aspect_ratio":1.505,"height":3264,"width":4912,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01764.jpg?v=1761051079"},"aspect_ratio":1.505,"height":3264,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01764.jpg?v=1761051079","width":4912},{"alt":null,"id":68259093283199,"position":9,"preview_image":{"aspect_ratio":1.505,"height":3264,"width":4912,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01765.jpg?v=1761051079"},"aspect_ratio":1.505,"height":3264,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01765.jpg?v=1761051079","width":4912},{"alt":null,"id":68259093315967,"position":10,"preview_image":{"aspect_ratio":1.505,"height":3264,"width":4912,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01767.jpg : parseInt(""),}; window._RestockRocketConfig.variantsPreorderMaxCountForMarket = {44795338424546 : null,44795338457314 : null,44795338490082 : null,44795338522850 : null,44795338555618 : null,44915104973026 : null,44915105005794 : null,44915105038562 : null,44915105071330 : null,44915105104098 : null,44915105136866 : null,44915105169634 : null,}; window._RestockRocketConfig.variantsShippingText = {44795338424546 : "",44795338457314 : "",44795338490082 : "",44795338522850 : "",44795338555618 : "",44915104973026 : "",44915105005794 : "",44915105038562 : "",44915105071330 : "",44915105104098 : "",44915105136866 : "",44915105169634 : "",}; window._RestockRocketConfig.variantsShippingTextForMarket = {44795338424546 : null,44795338457314 : null,44795338490082 : null,44795338522850 : null,44795338555618 : null,44915104973026 : null,44915105005794 : null,44915105038562 : null,44915105071330 : null,44915105104098 : null,44915105136866 : null,44915105169634 : null,}; window._RestockRocketConfig.selecte 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 preorder is in play — product page: THIS product has a // preorder variant (never block a plain product's Shop Pay); featured: integration // enabled for this page type. Rationale: PR #2784. try { var _sqc = window._RestockRocketConfig; var _sqOn = !!(_sqc.cachedSettings && _sqc.cachedSettings.block_accelerated_checkout); var _sqPre = (_sqc.cachedPreorderVariantIds && _sqc.cachedPreorderVariantIds.preorder_variant_ids) || []; var _sqArm = false; if (_sqOn && _sqc.preordersConfigured) { nsions/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.scriptHost = window._RestockRocketConfig.scriptUrlProduct.substring(0, window._RestockRocketConfig.scriptUrlProduct.lastIndexOf('/') + 1) // Canary override (STOQ-1287): prefer the Render host emitted into the // metafield-cached settings (api_host) when present, mirroring the same // override in assets/js/api.js. cachedSettings is populated above. Falls // back to the build-baked host for shops without the use_render_api_host // toggle (or environments where THEME_EXTENSION_API_HOST is unset), so the // se <ProjektRide 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 cus < "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 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('S } }), 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 oKlarnaMaestro
Seychelles (GBP£)

South Sudan (GBP£)

RIDE CONFIDENT

Spain (EUR€)

St. Helena (SHP£)

#productTemplate--template--26482385912191__main { --PT: 60px; --PB: 60px; }

Sudan (GBP£)
Svalbard & Jan Mayen (GBP£)

Sweden (SEKkr)

Open image lightbox

Switzerland (CHFCHF)

Tanzania (TZSSh)
Togo (XOFFr)

Tristan da Cunha (GBP£)

Tunisia (GBP£)

Türkiye (GBP£)
Uganda (UGXUSh)

Ukraine (UAH₴)

United Kingdom (GBP£)

United States (GBP£)
Vatican City (EUR€) t, MPART sealed bearing headset.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cstrong\u003ePedals - \u003c\/strong\u003eHT Composite pedals\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cb data-mce-fragment=\"1\"\u003eWeight\u003c\/b\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003e - 11.1 KG with pedals, (Medium)\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003e*Stock is fairly steady at the moment, if a part goes out of stock, we would always replace with like for like component. Where possible, we aim to optimise bar width, stem length and crank length depending on what size has been ordered.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eIf you're drawn to the aesthetic of the bike but feel you re Bike - Complete Shop Stock Build - Stealth Black \/ Extra Small","public_title":"Stealth Black \/ Extra Small","options":["Stealth Black","Extra Small"],"price":230000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44795338457314,"title":"Stealth Black \/ Small","option1":"Stealth Black","option2":"Small","option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Brother Mehteh Gravel Bike - Complete Shop Stock Build - Stealth Black \/ Small","public_title":"Stealth Black \/ Small","options":["Stealth Black","Small"],"price":230000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44795338490082,"title":"Stealth Black \/ Medium","option1":"Stealth Black",

s":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44795338555618,"title":"Stealth Black \/ Extra Large","option1":"Stealth Black","option2":"Extra Large","option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Brother Mehteh Gravel Bike - Complete Shop Stock Build - Stealth Black \/ Extra Large","public_title":"Stealth Black \/ Extra Large","options":["Stealth Black","Extra Large"],"price":230000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44915104973026,"title":"Stealth Black \/ Extra Extra Large","option1":"Stealth Black","option2":"Extra Extra Large","option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Brother Mehteh Gravel Bike - Complete Shop Stock Build - Stealth Black \/ Extra Extra Large","public_title":"Stealth Blac

Western Sahara (MADد.م.) null,"requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Brother Mehteh Gravel Bike - Complete Shop Stock Build - Tequila Sunrise \/ Small","public_title":"Tequila Sunrise \/ Small","options":["Tequila Sunrise","Small"],"price":230000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44915105071330,"title":"Tequila Sunrise \/ Medium","option1":"Tequila Sunrise","option2":"Medium","option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Brother Mehteh Gravel Bike - Complete Shop Stock Build - Tequila Sunrise \/ Medium","public_title":"Tequila Sunrise \/ Medium","options":["Tequila Sunrise","Medium"],"price":230000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":

a Large"],"price":230000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44915105169634,"title":"Tequila Sunrise \/ Extra Extra Large","option1":"Tequila Sunrise","option2":"Extra Extra Large","option3":null,"sku":null,"requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Brother Mehteh Gravel Bike - Complete Shop Stock Build - Tequila Sunrise \/ Extra Extra Large","public_title":"Tequila Sunrise \/ Extra Extra Large","options":["Tequila Sunrise","Extra Extra Large"],"price":230000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01755.jpg?v=1761051082","\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01758.jpg?v=1761051079","\/\/p

.505,"height":3264,"width":4912,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01755.jpg?v=1761051082"},"aspect_ratio":1.505,"height":3264,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01755.jpg?v=1761051082","width":4912},{"alt":null,"id":68259093053823,"position":2,"preview_image":{"aspect_ratio":1.505,"height":3264,"width":4912,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01758.jpg?v=1761051079"},"aspect_ratio":1.505,"height":3264,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01758.jpg?v=1761051079","width":4912},{"alt":null,"id":68259093086591,"position":3,"preview_image":{"aspect_ratio":1.505,"height":3264,"width":4912,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01759.jpg?v=1761051079"},"aspect_ratio":1.505,"height":3264,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01759.jpg?v=1761051079","width":4912},{"alt":null,"id":68259093119359,"position":4,"preview_image":{"aspect_ratio":1.505,"height":3264,"width":4912
Zambia (GBP£) o":1.505,"height":3264,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01770.jpg?v=1761051078","width":4912},{"alt":null,"id":68259093447039,"position":14,"preview_image":{"aspect_ratio":1.505,"height":3264,"width":4912,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01771.jpg?v=1761051079"},"aspect_ratio":1.505,"height":3264,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DSC01771.jpg?v=1761051079","width":4912}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eOver the past three years at ProjektRide Bike shop, we've meticulously crafted hundreds of custom builds, gaining invaluable expertise in pairing the perfect parts with each frame. We've recently expanded our offerings to include complete Brothers bikes as part of our custom-build lineup.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"

te, the Tequila Sunrise Orange can be pre-ordered with the frames due in mid April.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003ehttps:\/\/www.brothercycles.com\/shop\/frames\/mehteh\/\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cb data-mce-fragment=\"1\"\u003eGroupset\u003c\/b\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003e - Shimano GRX RX600 - 812 Derailieur, 1 x11 speed groupset. 11-42 tooth (11-40 depending on availability) cassette and a 40 tooth chainring. Full Hydraulic GRX Brakes, 600 Levers, 160mm RT66 Centre-Lock Shimano Rotors.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cb data-mce-fragment=\"1\"\u003eBars, Stem and Seatpost\u003c\/b\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003e - Tifosi Bars, stem and Seatpost.\u003c\/span\u

please let us know when you are ordering and we will set this up for you free of charge. Due to stock levels, if the Tundra tyres are out of stock, they will be replaced for a like for like tyre.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cb data-mce-fragment=\"1\"\u003eSaddle\u003c\/b\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003e - Madison Flux Saddle \/ Selle Royal (if Madison saddle is out of stock)\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cb data-mce-fragment=\"1\"\u003eBottom bracket \u0026amp; Headset - \u003c\/b\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eShimano RS501 Bottom Bracket, MPART sealed bearing headset.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cstrong\u003ePedals - \u003c\/strong\u003eHT Composite pedals\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp data-mce-f

3c\/span\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eOnce you've placed your order for the bike, please expect a delivery time of approximately 7 to 10 days. Your patience is appreciated as we ensure your bike is prepared and delivered to you promptly.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eWe welcome collections, but if you're not local, rest assured that we'll ship the bike to you with great care. Each bike is meticulously packaged to ensure it arrives safely at your doorstep. Once the bike box has been collected, we will give you the tracking information so you can keep track of your new bike!\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eIf you have any questions or inquiries, please don't hesitate to reach out to us. We strive to res

Zimbabwe (USD$) an style=\"font-weight: 400;\" data-mce-fragment=\"1\"\u003eThanks!\u003c\/span\u003e\u003c\/p\u003e"}; window._RestockRocketConfig.variantsInventoryPolicy = {44795338424546 : "deny",44795338457314 : "deny",44795338490082 : "deny",44795338522850 : "deny",44795338555618 : "deny",44915104973026 : "deny",44915105005794 : "deny",44915105038562 : "deny",44915105071330 : "deny",44915105104098 : "deny",44915105136866 : "deny",44915105169634 : "deny",}; window._RestockRocketConfig.variantsInventoryQuantity = {44795338424546 : parseInt("0"),44795338457314 : parseInt("0"),44795338490082 : parseInt("0"),44795338522850 : parseInt("0"),44795338555618 : parseInt("0"),44915104973026 : parseInt("0"),44915105005794 : parseInt("0"),44915105038562 : parseInt("0"),44915105071330 : parseInt("0"),44915105104098 : parseInt("0"),44915105136866 : parseInt("0"),44915105169634 : parseInt("0"),}; window._RestockRocketConfig.variantsPreorderCount = {44795338424546 : parseInt(""),44795338457314 : parseInt(""),44795338490082 :
< <

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

0) { console.debug(`STOQ - Client clock appears ahead of server by ${Math.abs(Math.round(liquidCacheAge / 60))} minutes, assuming cache fresh`); window._RestockRocketConfig.isLiquidCacheFresh = true; } else if (liquidCacheAge

= LIQUID_CACHE_MAX_AGE) { console.debug(`STOQ - Liquid cache is fresh (${Math.round(liquidCacheAge / 60)} minutes old)`); window._RestockRocketConfig.isLiquidCacheFresh = true; } else { console.debug(`STOQ - Liquid cache is stale (${Math.round(liquidCacheAge / 60)} minutes old, max ${Math.round(LIQUID_CACHE_MAX_AGE / 60)} minutes)`); window._RestockRocketConfig.isLiquidCacheFresh = false; } } function checkSettingsExpiry(settings) { try { if (!settings || !settings.updated_at) { console.debug('STOQ - Invalid settings data structure'); return null; } if (!settings.cache) { console.debug('STOQ - settings caching disabled'); return null; } // Check if translations are enabled but missing from cache // This handles the backfill period where DB has translations but metafield doesn't if (settings.multi_language_enabled) { if (!settings.translations) { // Translations enabled but no

© 2026, age = Date.now() - updatedAt.getTime(); if (age
.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

Powered by 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

ShopifycceleratedGateArmed, 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 || {})

.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
American Express 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 scr onPageTypes = ['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 { console.debug(`STOQ - no scripts enabled for ${pageType}`); } // Dispatch custom event when app is loaded // Cart selling plan updates will be triggered by stoq:inventory-data-loaded event const appLoadedEvent = new CustomEvent('stoq:loaded', { detail: { pageType: window._RestockR

Diners Clubt.slide-out{-webkit-animation:.5s forwards slide-out-right;animation:.5s forwards slide-out-right}@keyframes slide{100%{transform:translateX(0)}}@-webkit-keyframes slide{100%{-webkit-transform:translateX(0)}}@keyframes slide-out-left{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}@-webkit-keyframes slide-out-left{0%{-webkit-transform:translateX(0)}100%{-webkit-transform:translateX(-100%)}}@keyframes slide-out-right{0%{transform:translateX(0)}100%{transform:translateX(100%)}}@-webkit-keyframes slide-out-right{0%{-webkit-transform:translateX(0)}100%{-webkit-transform:translateX(100%)}}.restock-rocket-preorder-progress-bar{padding:12px 15px;margin-bottom:20px;font-family:inherit;}.restock-rocket-preorder-progress-bar .preorder-progress-text{margin-bottom:8px;}.restock-rocket-preorder-progress-bar .preorder-progress-bar-row{display:flex;align-items:center;gap:10px;}.restock-rocket-preorder-progress-bar .preorder-progress-track{flex:1;height:12px;overflow:hidden;}.restock-rocket-preorder-progress-bar

Google Pay

Mastercard

PayPal
Shop Pay
Union Pay
Visa

4