Hybrid / City Bikes!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
Gloria];
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) {
if (!settings || !settings.preorder_enabled) {
return;
}
// Listen for stoq:preorder-api-ready event dispatched by preorder.js
window.addEventListener('stoq:preorder-api-ready', function(event) {
console.debug('STOQ - Preorder API ready, updating cart selling plans');
if (window._RestockRocket && window._RestockRocket.updateCartSellingPlans) {
window._RestockRocket.updat
eCartSellingPlans()
.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 fre
sh settings');
const headers = {
'X-Shopify-Shop-Domain': window._RestockRocketConfig.shop || window.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 (cachedSett
Stems
Home
Shop All New BikesEarly Rider Big Foot 12 Sage Green
Road / Gravel / Touring Bikes
Genesis
div class="result__image" data-aspectratio="{{ it.product.image.aspectRatio }}" data-product-image>
p class="result__title">
<
<a href="{{ it.product.url }}">{{ it.product.title }}
Kona>
Early Rider Charger 12 Sage Green inc. rear brake
>
console.log("pr-product-page");
RIDE CONFIDENT
Early Rider Charger 12 Violet Haze inc. rear brake
Shop All Second-Hand
£219.90
Workshop PricesEarly Rider Hellion X20 Brushed Aluminium
img src="//projektride.co.uk/cdn/shop/files/ZingTripPlusMS400wh-25-48277-A-Primary_small.avif?v=1764692004" alt="Diamant Zing Trip Plus (Midstep)" class="mfp-zoom-in-cur" id="68942711161215">
£1,899.00
Book a Service
Custom Builds
Insure Your Bike
Early Rider Hellion X24 Brushed Aluminium
Cycle To Work Schemes£1,999.00
img src="//projektride.co.uk/cdn/shop/files/ZingTripPlusMS-25-48277-Alt3_small.avif?v=1764692037" alt="Diamant Zing Trip Plus (Midstep)" class="mfp-zoom-in-cur" id="68942715421055">
<
<
BrandsSee More
See More
StemsEarly Rider Seeker 14 Brushed Aluminium<
Grips & Bar-Tape
BrakesSee More
Clothing and Protection
Decrease quantity
See More5+Early Rider Seeker 16 Violet Haze
£649.00
ProjektRide Merchandise
Early Rider Seeker 20 Brushed AluminiumHelmets
Increase quantity
<
input type="number" name="quantity" id="quantity--template--15326745395426__main" value="1" min="1">
EssentialsNotify me when this product is available:
Early Rider Seeker 20 Sage Green
Cleaners, Degreasers and Lubrication
Maintenance
window.appBlockPlacements ||= [];
if (window.klarnaAppBlocksManager) {
window.klarnaAppBlocksManager.push({
productVariants: [{"id":56504921981311,"title":"Small \/ 400WH","option1":"Small","option2":"400WH","option3":null,"sku":"5330654","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Small \/ 400WH","public_title":"Small \/ 400WH","options":["Small","400WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922014079,"title":"Small \/ 545WH","option1":"Small","option2":"545WH","option3":null,"sku":"5330655","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Small \/ 545WH","public_title":"Small \/ 545WH","options":["Small","545WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922046847,"title":"Small \/ 800WH","option1":"Small","option2":"800WH","option3":null,"sku":"5330656","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Small \/ 800WH","public_title":"Small \/ 800WH","options":["Small","800WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922079615,"title":"Medium \/ 400WH","option1":"Medium","option2":"400WH","option3":null,"sku":"5330657","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Medium \/ 400WH","public_title":"Medium \/ 400WH","options":["Medium","400WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_Early Rider Seeker 20 Sage Green
plan_allocations":[]},{"id":56504922112383,"title":"Medium \/ 545WH","option1":"Medium","option2":"545WH","option3":null,"sku":"5330658","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Medium \/ 545WH","public_title":"Medium \/ 545WH","options":["Medium","545WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922145151,"title":"Medium \/ 800WH","option1":"Medium","option2":"800WH","option3":null,"sku":"5330659","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Medium \/ 800WH","public_title":"Medium \/ 800WH","options":["Medium","800WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922177919,"title":"Large \/ 400WH","option1":"Large","option2":"400WH","option3":null,"sku":"5330660","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Large \/ 400WH","public_title":"Large \/ 400WH","options":["Large","400WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922210687,"title":"Large \/ 545WH","option1":"Large","option2":"545WH","option3":null,"sku":"5330661","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Large \/ 545WH","public_title":"Large \/ 545WH","options":["Large","545WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922243455,"title":"Large \/ 800WH","option1":"Large","option2":"800WH","option3":null,"sku":"5330662","requires_shipping":true,"taxab
le":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Large \/ 800WH","public_title":"Large \/ 800WH","options":["Large","800WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],
templateName: 'product',
dataKey: 'top-strip-promotion-badge',
storefrontCurrency: 'GBP',
storefrontCountry: 'GB',
storefrontLanguage: 'en',
shopLocale: 'en',
shopDomain: 'projektride.co.uk',
variantPrice: '320000',
cartPrice: '0',
selector: 'shopify-osm-ASUorQUNvQS9uckFQO__klarna_on_site_messaging_app_block_8gNReH',
topPadding: '0',
bottomPadding: '0',
});
} else {
window.appBlockPlacements.push({
productVariants: [{"id":56504921981311,"title":"Small \/ 400WH","option1":"Small","option2":"400WH","option3":null,"sku":"5330654","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Small \/ 400WH","public_title":"Small \/ 400WH","options":["Small","400WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922014079,"title":"Small \/ 545WH","option1":"Small","option2":"545WH","option3":null,"sku":"5330655","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Small \/ 545WH","public_title":"Small \/ 545WH","options":["Small","545WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922046847,"title":"Small \/ 800WH","option1":"Small","option2":"800WH","option3":null,"sku":"5330656","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Small \/ 80£899.00
0WH","public_title":"Small \/ 800WH","options":["Small","800WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922079615,"title":"Medium \/ 400WH","option1":"Medium","option2":"400WH","option3":null,"sku":"5330657","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Medium \/ 400WH","public_title":"Medium \/ 400WH","options":["Medium","400WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922112383,"title":"Medium \/ 545WH","option1":"Medium","option2":"545WH","option3":null,"sku":"5330658","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Medium \/ 545WH","public_title":"Medium \/ 545WH","options":["Medium","545WH"],"price":32000
0,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922145151,"title":"Medium \/ 800WH","option1":"Medium","option2":"800WH","option3":null,"sku":"5330659","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Medium \/ 800WH","public_title":"Medium \/ 800WH","options":["Medium","800WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922177919,"title":"Large \/ 400WH","option1":"Large","option2":"400WH","option3":null,"sku":"5330660","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Large \/ 400WH","public_title":"Large \/ 400WH","options":["Large","400WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"",
"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922210687,"title":"Large \/ 545WH","option1":"Large","option2":"545WH","option3":null,"sku":"5330661","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Large \/ 545WH","public_title":"Large \/ 545WH","options":["Large","545WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":56504922243455,"title":"Large \/ 800WH","option1":"Large","option2":"800WH","option3":null,"sku":"5330662","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Diamant Zing Trip Plus (Midstep) - Large \/ 800WH","public_title":"Large \/ 800WH","options":["Large","800WH"],"price":320000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],
templateName: 'pr