Ukraine (UAH₴)
variantPrice: '9595',
cartPrice: '0',
selector: 'shopify-osm-AZkxmY3VSTnFmNnNiW__klarna_on_site_messaging_app_block_k6rYHt',
topPadding: '0',
bottomPadding: '0',
});
} else {
window.appBlockPlacements.push({
productVariants: [{"id":43981350469858,"title":"10mm","option1":"10mm","option2":null,"option3":null,"sku":"HBRNF5A1N","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Renthal Fatbar 35 - 10mm","public_title":"10mm","options":["10mm"],"price":9595,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43981350502626,"title":"20mm","option1":"20mm","option2":null,"option3":null,"sku":"HBRNF5A1N","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Renthal Fatbar 35 - 20mm","public_title":"20mm","options":["20mm"],"price":9595,"wei
ght":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43981350535394,"title":"30mm","option1":"30mm","option2":null,"option3":null,"sku":"HBRNF5A3N","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Renthal Fatbar 35 - 30mm","public_title":"30mm","options":["30mm"],"price":9595,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43981350568162,"title":"40mm","option1":"40mm","option2":null,"option3":null,"sku":"HBRNF5A4N","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Renthal Fatbar 35 - 40mm","public_title":"40mm","options":["40mm"],"price":9595,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan"
Zimbabwe (USD$)
4402,45828849107170,45828849139938,45828849172706,45828849205474,45828849238242,45828849271010,45828849303778,45828849336546,45828849369314,45828849402082,45828849434850,45828849467618,45828849500386,45828849533154,45828849565922,45828849598690,45828849631458,45828849664226,45828849696994,45828849729762,45828849762530,45828849795298,45828849828066,45828849860834,45828849893602,45828849926370,45828849959138,45828849991906,45828850024674,45828850057442,45828850090210,45828850122978,45828850155746,45828850188514,45828850221282,45828850254050,45828850286818,45828873814242,45828873847010,45828873879778,45828873912546,45828873945314,45828873978082,45828874010850,45828874043618,45828886429922,45828886462690,45828886495458,45828886528226,45828894621922,45828894654690,45828894687458,45828941611234,45828941644002,45828941676770,45828941709538,45828941742306,45828974051554,45829018910946,45829033558242,45829033623778,45829052432610,45830783205602,45830783238370,45830795133154,45830795198690,45830795231458,45830795264226 43893780706,45843893813474,45843893846242,45843893879010,45843893911778,45843893944546,45843974062306,45844333854946,45844333887714,45844355809506,45844355842274,45844355907810,45844355940578,45844547043554,45844547076322,45844547109090,45844547141858,45856716652770,45856716685538,45856716718306,45856731791586,45856731824354,45856731889890,45856739131618,45856739164386,45856739197154,45856739229922,45856739262690,45856739295458,45856739328226,45856739360994,45856739393762,45856739426530,45856739459298,45856739492066,45856739524834,45856739557602,45856739590370,45856739623138,45856748732642,45856766951650,45856766984418,45856767017186,45856767049954,45856767082722,45856767115490,45857406288098,45857466777826,45857466810594,45857466843362,45857466876130,45857466908898,45857466941666,45857466974434,45857467007202,45857467039970,45857780138210,45857780203746,45857780236514,45863184957666,45863184990434,45952080281826,45952102858978,46007564533986,46007564566754,46007565222114,46007565254882,46007565680866,4600756
-
led_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 + ')');
}
}
})();window._RestockRocketConfig.enabledNotifyMeVariantIds = [];window._RestockRocketConfig.disabledNotifyMeVariantIds = [];window._RestockRocketConfig.backInStockTemplates = [];window._RestockRocketConfig.restockNotes = {};window._RestockRocketConfig.integrations = [{"id":"15c94526-b6b8-4de1-9bc1-23b1ca52ddb0","shop_id":38436,"enabled":true,"page_types":["product","collection","index","search","page","cart","list-collections","article","blog"],"configura
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 Cycle to Work
is valid
// If current locale isn't translated, applyTranslations will gracefully use default locale from base fields
if (window._RestockRocketConfig.normalizedLocale &&
!Object.prototype.hasOwnProperty.call(settings.translations, window._RestockRocketConfig.normalizedLocale)) {
console.debug('STOQ - locale not explicitly translated, will use default language from cache');
}
// Don't return null - continue using cache even for untranslated locales
}
const updatedAt = new Date(settings.updated_at);
if (isNaN(updatedAt.getTime())) {
console.debug('STOQ - Invalid updated_at date format in settings');
return null;
}
const age = Date.now() - updatedAt.getTime();
if (age
);
}
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._RestoInformation
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
ocale);
}
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 update
ma-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('STOQ - failed to load settings:', error);
}
})
.catch(function(e) {
console.error(e)
})
}
function fetchEmbedConfig(endpoint, apply) {
return fet
Frequently Asked Questions 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); } 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 nDelivery & Returns
-
= 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 = ArraMon - Fri: 09:00 - 18:30Sun: Closed0131 374 5324
Newington RoadEdinburghEH9 1QN[email protected][email protected]) where on of the team will be more than happy to help.
ProjektRide Bike Shop Edinburgh
-
await import("//projektride.co.uk/cdn/shopifycloud/shop-js/modules/v2/loader.shop-follow-button.en.esm.js");
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 -
ProjektRide Bike Shop EdinburghCountry
Sweden (SEKkr)












Tanzania (TZSSh)
Uganda (UGXUSh)
","option2":null,"option3":null,"sku":"HBRNF5A1N","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Renthal Fatbar 35 - 10mm","public_title":"10mm","options":["10mm"],"price":9595,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43981350502626,"title":"20mm","option1":"20mm","option2":null,"option3":null,"sku":"HBRNF5A1N","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Renthal Fatbar 35 - 20mm","public_title":"20mm","options":["20mm"],"price":9595,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43981350535394,"title":"30mm","option1":"30mm","option2":null,"option3":null,"sku":"HBRNF5A3N","requires_shipping":true,"taxable":true,"featured_
image":null,"available":false,"name":"Renthal Fatbar 35 - 30mm","public_title":"30mm","options":["30mm"],"price":9595,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43981350568162,"title":"40mm","option1":"40mm","option2":null,"option3":null,"sku":"HBRNF5A4N","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Renthal Fatbar 35 - 40mm","public_title":"40mm","options":["40mm"],"price":9595,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","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',
