window._RestockRocketConfig = window._RestockRocketConfig || {}
// Helper function to normalize locale format from hyphen to underscore (e.g., 'en-US' -> 'en_us')
// This matches the backend's Mobility.normalize_locale behavior
// Returns empty string if locale is empty or invalid (matches original behavior)
function normalizeLocale(locale) {
if (!locale || locale.trim() === '') {
return '';
}
return locale.toString().toLowerCase().replace(/-/g, '_');
}
window._RestockRocketConfig.locale = 'en';
window._RestockRocketConfig.normalizedLocale = normalizeLocale('en');
window._RestockRocketConfig.shop = 'projektride.myshopify.com';
window._RestockRocketConfig.pageType = 'product';
window._RestockRocketConfig.liquidRenderedAt = 1770945263;window._RestockRocketConfig.marketId = 382140642;window._RestockRocketConfig.countryName = 'United Kingdom';
window._RestockRocketConfig.countryIsoCode = 'GB';window._RestockRocketConfig.cartInventoryQuantity = {};window._RestockRocketConfig.cachedSettings = {"id":38500,"shop_id":38436,"currency":"GBP","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":false},"storefront_form_email_placeholder":"Email address","storefront_form_phone_placeholder":"SMS","storefront_form_phone_label":"Phone number","storefront_form_email_label":"Email","storefront_form_phone_error":"Please enter a valid phone number","storefront_form_customer_name_placeholder":"Name","storefront_form_customer_name_error":"Please enter your name","storefront_form_did_you_mean_error":"Did you mean %{suggested_email}? Or use %{current_email}","form_customer_name_enabled":false,"form_customer_name_required
":false,"css_config":"","js_config":null,"collect_promotion_consent":false,"storefront_form_promotion_consent_label":"Notify me about other news, sales, discounts & offers too","show_button_on_collection":false,"sms_default_country":"us","sms_allowed_countries":[],"sms_restrict_country":false,"sms_default_channel":true,"optin_required":false,"optin_success_text":"Registration confirmed! You'll receive an alert when the product is restocked.","storefront_button_border_radius":0,"storefront_button_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
s = [{"id":"15c94526-b6b8-4de1-9bc1-23b1ca52ddb0","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":8677929812194,"title":"Ortlieb Back-Roller High Visibility","handle":"ortlieb-back-roller-high-visibility","description":"\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSold Singularly\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eA brilliant idea for all-season, all-weather riders: the bike bags in the ORTLIEB High Visibility Line make it easier for other people to see you while you’re out there on the stree
ts. This is because all High Visibility bags not only come with reflectors, but are themselves one big reflector. The waterproof bags are made with a polyurethane coated Cordura fabric that is woven through with a high-luminosity reflective yarn in neon yellow and black.\u003cbr\u003e\u003cbr\u003eThat gives ORTLIEB High Visibility bags an added safety feature in twilight conditions and in the dark of night.\u003c\/span\u003e\u003cbr\u003e\u003cspan\u003e\u003cbr\u003eThe Back-Roller High Visibility is the ideal bike bag for those who prefer the convenience of the roll closure system. The durable, waterproof, dustproof, abrasion-resistant and high quality fabric ensures optimal protection for your gear. Equipped with the sophisticated QL2.1 system with self-closing hooks, the Back-Roller attaches to your bike in a flash. And simply use the easily detachable shoulder strap to carry your bike bag comfortably once you’ve arrived at your destination.\u003c\/span\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u0
:"\/\/projektride.co.uk\/cdn\/shop\/files\/12472.jpg?v=1723802055","width":1200}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSold Singularly\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eA brilliant idea for all-season, all-weather riders: the bike bags in the ORTLIEB High Visibility Line make it easier for other people to see you while you’re out there on the streets. This is because all High Visibility bags not only come with reflectors, but are themselves one big reflector. The waterproof bags are made with a polyurethane coated Cordura fabric that is woven through with a high-luminosity reflective yarn in neon yellow and black.\u003cbr\u003e\u003cbr\u003eThat gives ORTLIEB High Visibility bags an added safety feature in twilight conditions and in the dark of night.\u003c\/span\u003e\u003cbr\u003e\u003cspan\u003e\u003cbr\u003eThe Back-Roller High Visibility is the ideal bike bag for those who prefer t
he convenience of the roll closure system. The durable, waterproof, dustproof, abrasion-resistant and high quality fabric ensures optimal protection for your gear. Equipped with the sophisticated QL2.1 system with self-closing hooks, the Back-Roller attaches to your bike in a flash. And simply use the easily detachable shoulder strap to carry your bike bag comfortably once you’ve arrived at your destination.\u003c\/span\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eFabric: PS50X\/PS50CX\u003c\/li\u003e\n\u003cli\u003eFeatures: QL2.1\u003c\/li\u003e\n\u003cli\u003eHeight: 42cm\u003c\/li\u003e\n\u003cli\u003eWidth: 23cm\u003c\/li\u003e\n\u003cli\u003eDepth: 17cm\u003c\/li\u003e\n\u003cli\u003eVolume: 20L\u003c\/li\u003e\n\u003cli\u003eWeight: 840g\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c!----\u003e"};
window._RestockRocketConfig.variantsInventoryPolicy = {45820527444194 : "deny",45820527476962 : "deny",};
window._RestockRocketConfig.variantsInventoryQuantity = {45820527444194 : parseInt("1"),45
820527476962 : parseInt("1"),};
window._RestockRocketConfig.variantsPreorderCount = {45820527444194 : parseInt(""),45820527476962 : parseInt(""),};
window._RestockRocketConfig.variantsPreorderCountForMarket = {45820527444194 : null,45820527476962 : null,};
window._RestockRocketConfig.variantsPreorderMaxCount = {45820527444194 : parseInt(""),45820527476962 : parseInt(""),};
window._RestockRocketConfig.variantsPreorderMaxCountForMarket = {45820527444194 : null,45820527476962 : null,};
window._RestockRocketConfig.variantsShippingText = {45820527444194 : "",45820527476962 : "",};
window._RestockRocketConfig.variantsShippingTextForMarket = {45820527444194 : null,45820527476962 : null,};
window._RestockRocketConfig.selected_variant_id = 45820527476962;
window._RestockRocketConfig.selected_variant_available = window._RestockRocketConfig.product.variants.find(function(variant) { return variant.id == window._RestockRocketConfig.selected_variant_id }).available;window._RestockRocketConfi
g.scriptUrlProduct = 'https://cdn.shopify.com/extensions/019c4de0-280f-760f-b566-2e2f8e837eb8/restock-rocket-shopify-454/assets/restockrocket-product.js'
window._RestockRocketConfig.scriptUrlCollection = 'https://cdn.shopify.com/extensions/019c4de0-280f-760f-b566-2e2f8e837eb8/restock-rocket-shopify-454/assets/restockrocket-collection.js'
window._RestockRocketConfig.scriptHost = window._RestockRocketConfig.scriptUrlProduct.substring(0, window._RestockRocketConfig.scriptUrlProduct.lastIndexOf('/') + 1)
window._RestockRocketConfig.host = 'https://app.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 Hope< 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 translation data in metafield
// Metafield hasn't been backfilled yet - force refresh
console.debug('STOQ - multi-language enabled but no translation data in cache, fetching fresh');
return null;
}
// Translations object exists in metafield - cache 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 Enve< 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 transla
tions:', 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.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
Secure, quick access storage for essentials on fast road and gravel rides.
Designed with long-distance road and gravel cycling competition in mind, the Racing Handlebar Pack is a compact storage space for keeping mid-ride essentials close to hand and easy to access whilst on the go.
Tubeless
The cycling handlebar bag consists of a large storage chamber with an interior mesh pocket for organisation and has been designed with lightweight, packable road cycling essentials in mind. The full-width waterproof opening allows fast access on the go and can be opened and closed one-handed while riding.
Tools & Maintenance
The handlebar bag is built from Hexalon, an ultralight waterproof laminate designed specifically for Apidura. The waterproof fabric and secure opening ensure valuables remain completely dry, no matter the weather or terrain. Accessory attachment points are laser-cut into the fabric, increasing versatility without adding weight and a high-contrast reflective feature is specially designed to enhance visibility in all light conditions.
Clothing and Protection
See More
he material is waterproof and lightweight, with strong tear and abrasion resistance.
Gloves
The attachment points of the handlebar bag are reinforced with Hypalon, a durable rubberised nylon that provides extra protection against friction and puncture.
CareClothing
Wash by hand, using a mild diluted soap if necessary. Afterwards, let it air dry.