exploring. exploring.
Would you like to add on any equipment?
Whether Whether
you're you're
heading heading a a
weekend weekend
expedition, expedition,

we've we've got Hire Lazer Compact Helmetgot
your your
back. £0.00back.
* Colors may vary from screen to screen. NOTE: Our Black is a dark charcoal gray.
eIn_m1hgl_8\"\u003etrip.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp data-end=\"686\" data-start=\"413\"\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003eWe \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003ealso \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003einclude \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003eessential \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003etools \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003eand \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003espares \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003ewith \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003eevery \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003ebike \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003ehire, \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003eso \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003eyou’re \u003c\/span\u003e\u003cspan class=\"_fadeIn_m1hgl_8\"\u003enever \u003c\/spa = {55470310752639 : null,}; window._RestockRocketConfig.variantsPreorderMaxCount = {55470310752639 : parseInt(""),}; window._RestockRocketConfig.variantsPreorderMaxCountForMarket = {55470310752639 : null,}; window._RestockRocketConfig.variantsShippingText = {55470310752639 : "",}; window._RestockRocketConfig.variantsShippingTextForMarket = {55470310752639 : null,}; window._RestockRocketConfig.selected_variant_id = 55470310752639; window._RestockRocketConfig.selected_variant_available = window._RestockRocketConfig.product.variants.find(function(variant) { return variant.id == window._RestockRocketConfig.selected_variant_id }).available;window._RestockRocketConfig.scriptUrlProduct = 'https://cdn.shopify.com/extensions/019cd40b-736e-74a5-adbe-431365bfd910/restockrocket-1-465/assets/restockrocket-product.js' window._RestockRocketConfig.scriptUrlCollection = 'https://cdn.shopify.com/extensions/019cd40b-736e-74a5-adbe-431365bfd910/restockrocket-1-465/assets/restockrocket-collection.js' w [] eAge Open search bar 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 { "@context": "http://schema.org/", "@type": "Product", "name": "ESI Ribbed Chunky", "url": "https:\/\/projektride.co.uk\/products\/ribbed-chunky","image": [ "https:\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-27at10.19.57_1246x.png?v=1695806449" ],"description": "\n\n\nFeaturing 8 distinct ribs that optimize shock absorption and grip! - 32 mm\nLove the size of Chunky but desire extraordinary? Ribbed has 8 distinct ribs that optimize shock absorption and grip!\n\n\n60 Grams\n\n\n\n\nStandard Grip Length - 5 1\/8\"\n\n\n\n\n32mm\n\n\n\n\nWeight plus or minus 5%\n\n\n\n\nMade for 22mm bars (can fit applications down to 19mm)\n\n\n\n\nBar Plugs included\n\n\n\n\n*Install Bar Plugs first for the protection of grips and ease of installation\n\n\n* Colors may vary from screen to screen. NOTE: Our Black is a dark charcoal gray.\n\n","sku": "RBCHB","brand": { "@type": "Thing", "name": "ESI" },"offers": [{ "@type" : "Offer","sku": "RBCHB","availability" : "http://schema.org/OutOfStock", "price" : 17.5, "priceCurrency" : "GBP", "url" : "https:\/\/projektride.co.uk\/products\/ribbed-chunky?variant=44365529350370" }, { "@type" : "Offer","availability" : "http://schema.org/OutOfStock", "price" : 17.5, "priceCurrency" : "GBP", "url" : "https:\/\/projektride.co.uk\/products\/ribbed-chunky?variant=44365529514210" }, { "@type" : "Offer","availability" : "http://schema.org/OutOfStock", "price" : 17.5, "priceCurrency" : "GBP", "url" : "https:\/\/projektride.co.uk\/products\/ribbed-chunky?variant=44365529579746" } ] } hopify.shop, 'ngrok-skip-browser-warning': 'skip' }; 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(cac fig.scriptUrlCollection); } else if(window._RestockRocketConfig.pageType === 'index' && (settings.show_button_on_index || settings.preorder_index_enabled)) { createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection); } else if(window._RestockRocketConfig.pageType === 'search' && (settings.show_button_on_search || settings.preorder_search_enabled)) { createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection); } else if(window._RestockRocketConfig.pageType === 'page' && (settings.show_button_on_page || settings.preorder_page_enabled)) { createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection); } else if(window._RestockRocketConfig.pageType === 'product') { createRestockRocketScript(window._RestockRocketConfig.scriptUrlProduct); } else if(hijackIntegration) { createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection); } else { console.debug(`STOQ - no scripts enabRIDE CONFIDENTWould you like to add on any equipment?
Hire Lazer Compact Helmet #ProductTemplate--template--24610452406655__main { background: #ffffff; } .shop-pay-terms { --payment-terms-background-color: #ffffff }
Header Image
img src="//projektride.co.uk/cdn/shop/files/L-FH53_media-RED-0_2021a2f3-6218-4ee3-80bd-290c4806f286_98x.jpg?v=1736262992" alt="" class="product-single__thumbnail-img"> ProjektRide
Buy Sell Ride Confident
Home
All BikesFAQ
","created_at":"2025-07-26T09:13:57.337Z","updated_at":"2025-12-28T14:44:23.508Z","enable_app":true,"enable_signup_widget":false,"storefront_button_text":"Notify me when available","storefront_button_text_color":"#FFFFFF","storefront_button_background_color":"#202223","storefront_form_header":"Notify me","storefront_form_description":"Get a notification as soon as this product is back in stock by signing up below!","storefront_form_button_text":"Notify me when available","storefront_form_button_text_color":"#FFFFFF","storefront_form_button_background_color":"#202223","storefront_form_terms":"Promise we won't spam. You'll only receive notifications for this product.","storefront_form_error":"Please enter a valid email address","storefront_form_success":"Thank you! We will notify you when the product is available.","enable_powered_by":true,"show_button_on_preorder":true,"sms_enabled":false,"email_enabled":true,"storefront_button_disable_tag":"rocket-hide","theme_config":{"disableDebugLoggingForNonPreorderItem":disable_tag_hides_button":true,"storefront_button_disable_tag_enabled":false,"quantity_required":false,"storefront_form_quantity_label":"Quantity","enable_alerts":true,"sms_allowed":false,"email_allowed":true,"collect_promotion_consent_default":true,"insert_button_after_selector":null,"insert_button_after_selector_type":"afterend","storefront_button_position_type":"float-right","storefront_form_duplicate_error":"You've already subscribed for alerts to this product.","storefront_mixed_cart_error":"This item needs to be purchased separately. Please check out or clear your cart before adding this item.","storefront_error_heading":"Error","default_locale":"en","collection_page_button_text_color":"#FFFFFF","collection_page_button_background_color":"#202223","show_button_if_any_out_of_stock":false,"show_button_if_any_variant_out_of_stock_collection":false,"show_button_on_index":false,"insert_button_after_selector_collection":null,"insert_button_after_selector_index":null,"push_enabled":false,"push_allowed":false,"se,"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":true,"markets_enabled":false,"market_id":13779632354,"shopify_market_ids":[],"use_shopify_selling_plan":true,"use_simplified_shipping_text":false,"translations":{},"payment_options":[{"billing_type":"no_remaining_balance","billing_checkout_charge_type":"percentage","billing_checkout_charge_amount":null,"billing_checkout_charge_percentage":"100.0","billing_at":"2025-07-26T09:20:38.472Z","billing_after_n_intervals":7,"billing_after_interval_type":"day","pricing_type":"no_discount","pricing_amount":null,"pricing_percentage":null,"billing_title":"Full payment","billing_description":null,"discount_text":"Save {{ discount }
ear 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() { const cachedData = {"plans":[{"shopify_selling_plan_group_id":98590196095,"shopify_selling_plan_id":713071886719,"enabled":true,"variant_ids":[55569712382335,55569712415103,55569712480639,55570017616255,55570017550719,55569712447871,55570017583487],"product_variants_source":"custom","name":"Preorder","preorder_button_text":"Preorder","preorder_button_description":"Note: This is a preorder. Items will ship based on the estimated delivery date.","preorder_button_description_background_color":"#ebebeb","preorder_button_description_text_color":"#000000","preorder_button_description_border_radius":10,"preorder_button_descr"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":true,"markets_enabled":false,"market_id":13779632354,"shopify_market_ids":[],"use_shopify_selling_plan":true,"use_simplified_shipping_text":false,"translations":{},"payment_options":[{"billing_type":"no_remaining_balance","billing_checkout_charge_type":"percentage","billing_checkout_charge_amount":null,"billing_checkout_charge_percentage":"100.0","billing_at":"2025-07-26T09:20:38.472Z","billing_after_n_intervals":7,"billing_after_interval_type":"day","pricing_type":"no_discount","pricing_amount":null,"pricing_percentage":null,"billing_title":"Full payment","billing_description":null,"discount_text":"Save {{ discount }}"n and grip!\u003c\/p\u003e\n\u003cul\u003e\n\u003cul\u003e\n\u003cli\u003e60 Grams\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\n\u003cul\u003e\n\u003cli\u003eStandard Grip Length - 5 1\/8\"\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\n\u003cul\u003e\n\u003cli\u003e32mm\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\n\u003cul\u003e\n\u003cli\u003eWeight plus or minus 5%\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\n\u003cul\u003e\n\u003cli\u003eMade for 22mm bars (can fit applications down to 19mm)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\n\u003cul\u003e\n\u003cli\u003eBar Plugs included\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\n\u003cul\u003e\n\u003cli\u003e*Install Bar Plugs first for the protection of grips and ease of installation\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cem\u003e* Colors may vary from screen to screen. NOTE: Our Bla
w._RestockRocketConfig.variantsShippingText = {44365529350370 : "",44365529514210 : "",44365529579746 : "",}; window._RestockRocketConfig.variantsShippingTextForMarket = {44365529350370 : null,44365529514210 : null,44365529579746 : null,}; window._RestockRocketConfig.selected_variant_id = 44365529350370; window._RestockRocketConfig.selected_variant_available = window._RestockRocketConfig.product.variants.find(function(variant) { return variant.id == window._RestockRocketConfig.selected_variant_id }).available;window._RestockRocketConfig.scriptUrlProduct = 'https://cdn.shopify.com/extensions/019cd40b-736e-74a5-adbe-431365bfd910/restockrocket-1-465/assets/restockrocket-product.js' window._RestockRocketConfig.scriptUrlCollection = 'https://cdn.shopify.com/extensions/019cd40b-736e-74a5-adbe-431365bfd910/restockrocket-1-465/assets/restockrocket-collection.js' window._RestockRocketConfig.scriptHost = window._RestockRocketConfig.scriptUrlProduct.substring(0, window._RestockRocketConfig.scriptUrlProdu< && 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); }); } }); } // First try to get settings from metafields with expiry check const cachedSettings = window._RestockRocketConfig.cachedSettings; const validCachedSettings = cachedSettings ? checkSettingsExpiry(cachedSettings) : null; if (validCachedSettings) { console.debug('STOQ - using cached settings'); initializeScripts(validCachedSettings); } else { console.debug('STOQ - fetching fresh settings'); const headers = { 'X-Shopify-Shop-Domain': window._RestockRocketConfig.shop || window.S
hedSettings); } else { console.error('STOQ - failed to load settings:', error); } }) .catch(function(e) { console.error(e) }) } function initializeScripts(settings) { settings = applyTranslations(settings); window._RestockRocketConfig.settings = settings; console.debug(`STOQ - settings configured for ${window._RestockRocketConfig.pageType}`); // 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); }) if(window._RestockRocketConfig.pageType === 'collection' && (settings.show_button_on_collection || settings.preorder_collection_enabled)) { createRestockRocketScript(window._RestockRocketConled for ${window._RestockRocketConfig.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._RestockRocketConfig.pageType, enabled: settings.enable_app, settings: settings, preorderEnabled: settings.preorder_enabled } }); console.debug('STOQ - dispatching app loaded event'); window.dispatchEvent(appLoadedEvent); } }
T- 013137453248-e1cb-467e-84bf-8ae0f725d20c.jpg?v=1736262992","\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-SPOTTY-0_e2b3fb50-f820-47b4-a29f-5501fe2a9feb.jpg?v=1736262992","\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-RED-0_2021a2f3-6218-4ee3-80bd-290c4806f286.jpg?v=1736262992"],"featured_image":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-PURPLE-0_5d9f308e-0001-429d-b165-b5f5f33209ac.jpg?v=1736262992","options":["Colour"],"media":[{"alt":null,"id":63810023522687,"position":1,"preview_image":{"aspect_ratio":1.364,"height":880,"width":1200,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-PURPLE-0_5d9f308e-0001-429d-b165-b5f5f33209ac.jpg?v=1736262992"},"aspect_ratio":1.364,"height":880,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-PURPLE-0_5d9f308e-0001-429d-b165-b5f5f33209ac.jpg?v=1736262992","width":1200},{"alt":null,"id":63810023555455,"position":2,"preview_image":{"aspect_ratio":1.364,"height":880,"width":1200,"src":"\/\/projektride.co.uk\/cdn\/s hop\/files\/L-FH53_media-ELECTRICBLUE-0.default_68668b8b-790e-4127-9b60-7e1e79fca88f.jpg?v=1736262992"},"aspect_ratio":1.364,"height":880,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-ELECTRICBLUE-0.default_68668b8b-790e-4127-9b60-7e1e79fca88f.jpg?v=1736262992","width":1200},{"alt":null,"id":63810023588223,"position":3,"preview_image":{"aspect_ratio":1.364,"height":880,"width":1200,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-GREEN-0_69cf8c10-67ee-4fa1-9276-cfbbcfeeeb55.jpg?v=1736262992"},"aspect_ratio":1.364,"height":880,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-GREEN-0_69cf8c10-67ee-4fa1-9276-cfbbcfeeeb55.jpg?v=1736262992","width":1200},{"alt":null,"id":63810023620991,"position":4,"preview_image":{"aspect_ratio":1.364,"height":880,"width":1200,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-ORANGE-0_29c1a66d-bc79-4dc5-bcb8-583ed4853a2b.jpg?v=1736262992"},"aspect_ratio":1.364,"height":880,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-ORANGE-0_29c1a66d-bc79-4dc5-bcb8-583ed4853a2b.jpg?v=1736262992","width":1200},{"alt":null,"id":63810023653759,"position":5,"preview_image":{"aspect_ratio":1.364,"height":880,"width":1200,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-PINK-0_e9e6d338-e1cb-467e-84bf-8ae0f725d20c.jpg?v=1736262992"},"aspect_ratio":1.364,"height":880,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-PINK-0_e9e6d338-e1cb-467e-84bf-8ae0f725d20c.jpg?v=1736262992","width":1200},{"alt":null,"id":63810023686527,"position":6,"preview_image":{"aspect_ratio":1.364,"height":880,"width":1200,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-SPOTTY-0_e2b3fb50-f820-47b4-a29f-5501fe2a9feb.jpg?v=1736262992"},"aspect_ratio":1.364,"height":880,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/L-FH53_media-SPOTTY-0_e2b3fb50-f820-47b4-a29f-5501fe2a9feb.jpg?v=1736262992","width":1200},{"alt":null,"id":638100237
FAQ Questions and answers I'm looking to find out more information about a product, where can I find this?
Please get in touch with a member of the team either by phone (
01313745324
) or email (
[email protected]
) where on of the team will be more than happy to help.

Product DetailsProjektRide Bike Shop Edinburgh

I'm looking to buy this product, when will it arrive and how much does postage cost?
Introducing the RX Stem, a new addition to our line up designed for both gravel and cross-country (XC). Complementing our existing XC stems, the RX offers a more aggressive, race-focused geometry with an 80mm length and a -15 degree rise
If the item is showing in stock, we aim to post the product within 24 hours. Please allow 5 working days to receive the item.

 Postage is free on orders over £50. Orders under £50, our postage charge is £3.99.

We also have a physical store, if you are local please pop in -
// Available in 80mm, -15° riseProjektRide Bike Shop Edinburgh
// CNC machined from 2014-T6 aluminium 82 Newington Road, EH91QN, Edinburgh.
// Titanium bolt upgrade kit available
// Available in black, silver, bronze, red, blue, orange & purple
// Proudly Designed, Tested and Manufactured in Barnoldswick, UK
.site-footer { --bg: #1f2324; --text: #ffffff; --text-alpha-15: rgba(255, 255, 255, 0.15); --text-alpha-60: rgba(255, 255, 255, 0.6); --text-alpha-85: rgba(255, 255, 255, 0.85); } .footer-content__logo__image { width: 170px; }
< img src="//projektride.co.uk/cdn/shop/files/logo_header_2048x2048.png?v=1634060673" alt="" class="logo--footer">
QUICK LINKS
About Us
Contact Us
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') 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 || {})); delete settings.translations; return settings; } console.debug(`STOQ - Applying translations for normalized locale: ${normalizedLocale} (original: ${window._RestockRocketConfig.locale})`); const translatedFields = translations[normalizedLocale]; if (translatedFields && typeof translatedFields === 'object') { Object.keys(translatedFields).forEach(function(key) { const value = translatedFields[key]; if (value !== null && value !== undefined && value !== '') { settings[key] = value; } }); } else { console.debug('STOQ - No translated fields found for locale:', normalizedLocale); } delete settings.translations; return settings; } catch (e) { console.debug('STOQ - error applying translations:', e); return settings; } } // Setup event listener for cart selling plan updates // This must be called before any scripts are loaded to avoid race conditions function 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); }); } }); } // First try to get settings from metafields with expiry check const cachedSettings = window._RestockRocketConfig.cachedSettings; const validCachedSettings = cachedSettings ? checkSettingsExpiry(cachedSettings) : null; if (validCachedSettings) { console.debug('STOQ - using cached settings'); initializeScripts(validCachedSettings); } else { console.debug('STOQ - fetching fresh settings'); const headers = { 'X-Shopify-Shop-Domain': window._RestockRocketConfig.shop || window.S

FAQ

Questions and answers