shop_id":38436,"enabled":true,"page_types":["product","collection","index","search","page","cart","list-collections","article","blog"],"configuration":{"toastDuration":10000,"toastPosition":"bottom-right","enableXHRHijack":true,"enableFetchHijack":true,"quantityLimitDisabled":false},"type":"hijack","css_config":null,"js_config":null,"created_at":"2025-07-26T09:16:04.076Z","updated_at":"2025-07-26T09:16:04.076Z"}];window._RestockRocketConfig.obfuscateInventoryQuantity = false;window._RestockRocketConfig.product = {"id":8128524320994,"title":"Hire Lazer Compact Helmet","handle":"hire-smith-convoy-helmet","description":"\u003cdiv class=\"detail-block description\"\u003e\n\u003cdiv class=\"short-desc-wrap\"\u003e\n\u003cdiv class=\"content short-desc-content\"\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003cp\u003eThe one size\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eLazer Compact Helmet\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003eis all you need to get started. This compact adult bike hel
img src="//projektride.co.uk/cdn/shop/files/8159_98x.jpg?v=1723806598" alt="" class="product-single__thumbnail-img">
- img src="//projektride.co.uk/cdn/shop/files/8160_98x.jpg?v=1723806597" alt="" class="product-single__thumbnail-img">
- img src="//projektride.co.uk/cdn/shop/files/8161_98x.jpg?v=1723806598" alt="" class="product-single__thumbnail-img">
- img src="//projektride.co.uk/cdn/shop/files/8162_98x.jpg?v=1723806597" alt="" class="product-single__thumbnail-img">
restockrocket.io'
const SETTINGS_CACHE_DURATION = 15 * 60 * 1000; // 15 minutes in milliseconds
const LIQUID_CACHE_MAX_AGE = 2 * 60 * 60; // 2 hours in seconds
// Calculate Liquid cache freshness once at initialization
const liquidRenderedAt = window._RestockRocketConfig.liquidRenderedAt;
// Validate timestamp and calculate cache age
if (!liquidRenderedAt || typeof liquidRenderedAt !== 'number' || isNaN(liquidRenderedAt)) {
console.debug('STOQ - Invalid or missing liquidRenderedAt timestamp, assuming fresh');
window._RestockRocketConfig.isLiquidCacheFresh = true;
} else {
const now = Math.floor(Date.now() / 1000); // Current time in seconds
const liquidCacheAge = now - liquidRenderedAt; // Age in seconds
// Handle client clock ahead of server
if (liquidCacheAge return null;
}
const age = Date.now() - updatedAt.getTime();
if (age
w.Shopify.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(