Trek District+ 4
Front Suspension| Hub front | Alloy, CenterLock disc, 100 mm thru axle | Switzerland (CHFCHF)
|---|---|
| Hub rear | Tanzania (TZSSh)Shimano Nexus C7000, 5-speed |
| Rim | Bontrager Connection, double-wall, 32-hole, 20 mm width, Presta valve | Tristan da Cunha (GBP£)
| Spokes | Tunisia (GBP£) Home14 g stainless steel, black |
| Electric Bikes | |
| Singular | Enigma |
|---|---|
| Frog | Kona |
| Surly | UTO (ex Eovolt) |
| Early Rider | |
| Pedal | Second-Hand BikesBontrager City pedals | See More
| Max. chainring size | Shop All Second-Hand50T (Gates belt sprocket) |
| ll"],"price":120000,"weight":0,"compare_at_price":184999,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44891533902050,"title":"Small","option1":"Small","option2":null,"option3":null,"sku":"GN21800SM","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Genesis Equilibrium - Small","public_title":"Small","options":["Small"],"price":139900,"weight":0,"compare_at_price":184999,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44891533934818,"title":"Medium","option1":"Medium","option2":null,"option3":null,"sku":"GN21800MD","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Genesis Equilibrium - Medium","public_title":"Medium","options":["Medium"],"price":139900,"weight":0,"compare_at_price":184999,"inventory_managem
ent":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44891533967586,"title":"Large","option1":"Large","option2":null,"option3":null,"sku":"GN21800LG","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Genesis Equilibrium - Large","public_title":"Large","options":["Large"],"price":120000,"weight":0,"compare_at_price":184999,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":44891534000354,"title":"X-Large","option1":"X-Large","option2":null,"option3":null,"sku":"GN21800XL","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Genesis Equilibrium - X-Large","public_title":"X-Large","options":["X-Large"],"price":139900,"weight":0,"compare_at_price":184999,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_side.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_1.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_10.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_3.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_4.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_5.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_6.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_7.jpg?v=1709550518","Size:
\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_8.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_9.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_1.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_2.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_3.jpg?v=1709550518","\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_4.jpg?v=1709550518"],"featured_image":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_side.jpg?v=1709550518","options":["Size"],"media":[{"alt":null,"id":32991142019298,"position":1,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_side.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_side.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142052066,"position":2,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_1.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_1.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142084834,"position":3,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_10.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/c
dn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_10.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142117602,"position":4,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_3.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_3.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142150370,"position":5,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_4.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_4.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142183138,"position":6,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_5.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_5.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142215906,"position":7,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_6.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_6.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142248674,"position":8,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_7.jpg?v=17L, XL, XXLComplete Brakes09550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_7.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142281442,"position":9,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_8.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_8.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142314210,"position":10,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_detail_9.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_d etail_9.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142346978,"position":11,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_1.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_1.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142379746,"position":12,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_2.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_2.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142412514,"position":13,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src"Herrmans MR4, 120-lumen LED :"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_3.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_3.jpg?v=1709550518","width":1534},{"alt":null,"id":32991142445282,"position":14,"preview_image":{"aspect_ratio":1.534,"height":1000,"width":1534,"src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_4.jpg?v=1709550518"},"aspect_ratio":1.534,"height":1000,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/products\/ftp_f_freewheel_imagessportlinefwbikesgn21800_lifestyl_4.jpg?v=1709550518","width":1534}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp data-mce-fragment=\"1\"\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\" data-mce-style=\"font-weight: 400;\"\u003eThere is good reason why the equilibrium has been a staple in o |
ur range for many a year now - the combination of a lightweight, durable Reynolds 725 frame, classic looks, full-length mudguard capabilities, sublime ride and handling qualities has made it a true riders' favourite; to many the quintessential four-season UK road bike.\u003c\/span\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\" data-mce-style=\"font-weight: 400;\"\u003e\u003cbr data-mce-fragment=\"1\"\u003e\u003c\/span\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\" data-mce-style=\"font-weight: 400;\"\u003e\u003cbr data-mce-fragment=\"1\"\u003e\u003c\/span\u003e\u003cspan style=\"font-weight: 400;\" data-mce-fragment=\"1\" data-mce-style=\"font-weight: 400;\"\u003eWith a little more relaxed geometry versus a conventional road race frame (longer wheelbase, slacker headtube angle \u0026amp; more fork offset), the Equilibrium is our lightweight steel all-rounder, ideally suited to big mile rides where comfort, stability and efficiency come before KOM leaderboards.\u003c\/
|
| Kickstandaria-expanded=\"true\" data-target=\"#specrims\" data-toggle=\"collapse\"\u003e\u003cstrong\u003eBrakes :\u003c\/strong\u003e\u003c\/div\u003e\n\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003ePromax RC-477\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"card grid-item\"\u003e\n\u003cdiv class=\"card-header pl-0 pr-0\" id=\"specheadingrims\"\u003e\n\u003cdiv class=\"btn btn-link pl-0 pr-0 text-center text-md-left collapsed text-uppercase\" aria-controls=\"specrims\" aria-expanded=\"true\" data-target=\"#specrims\" data-toggle=\"collapse\"\u003e\u003cstrong\u003eCassette Freewheel :\u003c\/strong\u003e\u003c\/div\u003e\n\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003eShimano CS-HG700-11 11-34T\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"card grid-item\"\u003e\n\u003cdiv class=\"card-header pl-0 pr-0\" id=\"specheadingrims\"\u003e\n\u003cdiv class=\"btn btn-link pl-0 pr-0 text-center text-md-left collapsed text-uppercase\" aria-controls=\"specrims | target=\"#specrims\" data-toggle=\"collapse\"\u003e\u003cstrong\u003eFront Derailleur :\u003c\/strong\u003e\u003c\/div\u003e\n\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003eShimano 105 FD-R7000 L\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"card grid-item\"\u003e\n\u003cdiv class=\"card-header pl-0 pr-0\" id=\"specheadingrims\"\u003e\n\u003cdiv class=\"btn btn-link pl-0 pr-0 text-center text-md-left collapsed text-uppercase\" aria-controls=\"specrims\" aria-expanded=\"true\" data-target=\"#specrims\" data-toggle=\"collapse\"\u003e\u003cstrong\u003eGrip Tape :\u003c\/strong\u003e\u003c\/div\u003e\n\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003eGenesis\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"card grid-item\"\u003e\n\u003cdiv class=\"card-header pl-0 pr-0\" id=\"specheadingrims\"\u003e\n\u003cdiv class=\"btn btn-link pl-0 pr-0 text-center text-md-left collapsed text-uppercase\" aria-controls=\"specrims\" aria-expanded=\"true\" data-targetBrake PadsPletscher Comp Flex 18\"true\" data-target=\"#specrims\" data-toggle=\"collapse\"\u003e\u003cstrong\u003eRear Derailleur :\u003c\/strong\u003e\u003c\/div\u003e\n\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003eShimano 105 RD-R7000-GS\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"card grid-item\"\u003e\n\u003cdiv class=\"card-header pl-0 pr-0\" id=\"specheadingrims\"\u003e\n\u003cdiv class=\"btn btn-link pl-0 pr-0 text-center text-md-left collapsed text-uppercase\" aria-controls=\"specrims\" aria-expanded=\"true\" data-target=\"#specrims\" data-toggle=\"collapse\"\u003e\u003cstrong\u003eRims :\u003c\/strong\u003e\u003c\/div\u003e\n\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003eJalco MRS24\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"card grid-item\"\u003e\n\u003cdiv class=\"card-header pl-0 pr-0\" id=\"specheadingrims\"\u003e\n\u003cdiv class=\"btn btn-link pl-0 pr-0 text-center text-md-left collapsed text-uppercase\" aria-controls=\"specrims\" aria-expanded=\"true\ | et=\"#specrims\" data-toggle=\"collapse\"\u003e\u003cstrong\u003eShifters :\u003c\/strong\u003e\u003c\/div\u003e\n\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003eShimano 105 ST-R7000 11 Speed\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"card grid-item\"\u003e\n\u003cdiv class=\"card-header pl-0 pr-0\" id=\"specheadingrims\"\u003e\n\u003cdiv class=\"btn btn-link pl-0 pr-0 text-center text-md-left collapsed text-uppercase\" aria-controls=\"specrims\" aria-expanded=\"true\" data-target=\"#specrims\" data-toggle=\"collapse\"\u003e\u003cstrong\u003eSpokes :\u003c\/strong\u003e\u003c\/div\u003e\n\u003cspan\u003e \u003c\/span\u003e\u003cspan\u003eSteel 14 g\u003c\/span\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"card grid-item\"\u003e\n\u003cdiv class=\"card-header pl-0 pr-0\" id=\"specheadingrims\"\u003e\n\u003cdiv class=\"btn btn-link pl-0 pr-0 text-center text-md-left collapsed text-uppercase\" aria-controls=\"specrims\" aria-expanded=\"true\" data-target=\"#s
| Cargo rack< | <Alloy rear rack, 25 kg max weight |
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
| age = Date.now() - updatedAt.getTime(); if (age *Mudguard < | 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 tomer interaction. // Detected variants: the variants present in this page's Liquid context (product page has them; // collection/index/etc. don't expose variants from Liquid). Used to disambiguate "embed didn't // load" vs "embed loaded but the variant wasn't a preorder/BIS candidate" in order debug. try { const _stoqInitConfig = window._RestockRocketConfig; const _stoqDetectedVariantIds = (_stoqInitConfig.product && Array.isArray(_stoqInitConfig.product.variants)) ? _stoqInitConfig.product.variants.map(function(v) { return v.id }) : []; const _stoqSelectedVariantId = _stoqInitConfig.selected_variant_id; Shopify?.analytics?.publish?.('stoq_initialized', { cart_token: _stoqInitConfig.cartToken || '', page_url: window.location.href, page_type: _stoqInitConfig.pageType || '', shop_domain: _stoqInitConfig.shop || '', market_id: _stoqInitConfig.marketId || '', detected_variant_ids: _stoqDetectedVariantIds, selected_variant_id: _stoqSelectedVariantId || '',
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 n
Front SuspensionormalizedLocale = 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 updateSize:
d 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.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(cachedSettings);
} else {
console.error('STOQ - failed to load settings:', error);
}
})
.catch(function(e) {
console.error(e)
})
}
function fetchEmbedConfig(endpoint, apply) {
return fet
ch(
`${window._RestockRocketConfig.host}/api/v1/embed/${endpoint}.json`,
{
headers: {
'X-Shopify-Shop-Domain': window._RestockRocketConfig.shop || window.Shopify.shop,
'ngrok-skip-browser-warning': 'skip'
}
}
)
.then(function(response) {
if (!response.ok) throw new Error(`Failed to fetch ${endpoint}`);
return response.json();
})
.then(function(data) {
try {
apply(data);
} catch (applyError) {
// Apply failures are programming bugs (e.g. response shape changed
// server-side and the assignment threw). Surface them as console.error
// so they're visible in browser logs, then re-throw to fall through
// to the same Liquid-cached fallback as a fetch failure.
console.error('STOQ - apply failed for ' + 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 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._RestoL, XL, XXLRear SuspensionckRocketConfig — the
// bundle re-reads sellingPlans/integrations on every interaction, so the
// late-arriving values benefit subsequent renders even though the first
// paint may use the Liquid-cached values. On any failure the existing
// Liquid-loaded values stay in place via fetchEmbedConfig's catch.
if (!window._RestockRocketConfig.isLiquidCacheFresh && !settings.disable_refresh_on_stale_liquid) {
console.debug('STOQ - Liquid cache stale, refreshing selling_plans + integrations');
Promise.race([
Promise.all([
fetchEmbedConfig('selling_plans', function(data) {
if (data && Array.isArray(data.plans)) {
window._RestockRocketConfig.sellingPlans = data.plans;
window._RestockRocketConfig.disabledSellingPlanIds = data.disabled_plan_ids || [];
}
}),
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 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 = ArraSKS plastic, rear y.isArray(window._RestockRocketConfig.sellingPlans) && window._RestockRocketConfig.sellingPlans.some(function(plan) { return plan && plan.enabled; }); const hasDisabledPlanIds = Array.isArray(window._RestockRocketConfig.disabledSellingPlanIds) && window._RestockRocketConfig.disabledSellingPlanIds.length > 0; const usePreorderBuild = settings.preorder_enabled || hasEnabledOffer || hasDisabledPlanIds; const collectionScriptUrl = usePreorderBuild ? window._RestockRocketConfig.scriptUrlCollection : window._RestockRocketConfig.scriptUrlCollectionBis; const productScriptUrl = usePreorderBuild ? window._RestockRocketConfig.scriptUrlProduct : window._RestockRocketConfig.scriptUrlProductBis; const pageType = window._RestockRocketConfig.pageType; const collectionPageTypes = ['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._RestockRocketConfig.pageType, enabled: settings.enable_app, settings: settings, preorderEnabled: settings.preorder_enabled } }); consol e.debug('STOQ - dispatching app loaded event'); window.dispatchEvent(appLoadedEvent); } } |
|
Size:Finishing Kit
L, XL, XXLSee More SKS plastic, front |
| Weight | L - 26.20 kg / 57.77 lbs (excluding battery) |
|---|---|
| Weight limitSee More | This bike has a maximum total weight limit (combined weight of bicycle, rider and cargo) of 136 kg (300 lb). |
We reserve the right to make changes to the product information contained on this site at any time without notice, including with respect to equipment, specifications, models, colours, materials and pricing. Due to supply chain issues, compatible parts may be substituted at any time without notice. The prices shown are the manufacturer's suggested retail prices.
Bike and frame weights are based on pre-production painted frames at time of publication. Weights may vary in final production.See More
Frequently Asked Questions
-
Socks
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. Gloves
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 EdinburghClothing


/






Insure Your Bike