Singular
window._RestockRocketConfig = window._RestockRocketConfig || {}
// Helper funct
2Z","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":{},"storefront_form_email_placeholder":"Email address","storefront_form_phone_placeholder":"SMS","storefront_form_phoneUTO (ex Eovolt)
const SETTINGS_CACHE_DURATION = 15 * 60 * 1000; // 15 minutes in milliseconds
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 translatShop All Second-HandSurly<
!settings.multi_language_enabled) {
return settings;
}
if (!settings.translations) {
console.debug('STOQ - No translations found, skipping translation');
return settings;
}
const normalizedLocale = window._RestockRocketConfig.normalizedLocale;
maxRetries) {
console.debug(`STOQ - API not ready, retry ${attempt}/${maxRetries}`);
setTimeout(() => attemptCartCheck(attempt + 1), retryDelay);
} else {
console.debug('STOQ - API not loaded after max retries, skipping cart selling plan check');
}
}
attemptCartCheck();
}
Early Rider
Custom Builds for sale
Book a Service
{"id":8726297280738,"title":"Restrap Race Stem Bag","handle":"restrap-race-stem-bag","description":"\u003cp\u003e\u003cmeta charset=\"utf-8\"\u003e\u003cspan\u003eThe Adventure Race Stem Bag offers a highly adjustable and accessible storage solution for nutrition
"@type": "Product",
"name": "Restrap Race Stem Bag",
"url": "https:\/\/projektride.co.uk\/products\/restrap-race-stem-bag","image": [
"https:\/\/projektride.co.uk\/cdn\/shop\/files\/RS_SBR_STD_BLK_RaceStemBag_1024x.jpg?v=1727776266"
],"description": "The Adventure Race Stem Bag offers a highly adjustable and accessible storage solution for nutrition, tech, clothing and more. Multiple Hypalon MOLLE mounts and double sided velcro loops deliver a huge array of mounting possibilities.Our innovative, single pull drawcord closure, allows for effortless one-handed access into the bag when on the move. One upward pull on the Hypalon tab or shock cord opens or closes the bag respectively, whilst the internal stiffener aids easy access and helps the durable and waterproof VX21 outer hold its shape Stretch mesh pockets offer additional external storage and an extendable nylon interior provides the option to boost the internal capacity when resupplying for the next leg of your journey. Both the shock cord a
nd our signature Race Range heat-pressed logo are reflective, assisting visibility in low-light conditions and at night.SKU-RS_SBR_STD_BLKCapacity - 1.1LWeight - 86g","brand": {
"@type": "Thing",
"name": "Restrap"
},"gtin8": "","offers": [{
"@type" : "Offer","availability" : "http://schema.org/OutOfStock",
"price" : 53.99,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/restrap-race-stem-bag?variant=46015864635618"
}
]
}
Custom Builds
div class="product__media-hover-img product__media" style="background-image: url(//projektride.co.uk/cdn/shop/files/Screenshot2022-02-24at21.18.32_9d81277b-124e-4fdc-8a0f-fbfb40a9343d_600x.png?v=1691610357)">
div class="featured-image__bg bg-pos-center-center" style="background-image: url('//projektride.co.uk/cdn/shop/files/2571D9FF-E9AE-4004-9A55-C7FD4DD999D6_2048x.jpg?v=1640941114');">
Stretch mesh pockets offer additional external storage and an extendable nylon interior provides the option to boost the internal capacity when resupplying for the next leg of your journey. Both the shock cord and our signature Race Range heat-pressed logo are reflective, assisting visibility in low-light conditions and at night.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003cspan\u003eSKU-RS_SBR_STD_BLK\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003cspan\u003eCapacity - 1.1L\u003c\/span\u003e\u003cbr\u003e\u003cspan\u003eWeight - 86g\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003c\/p\u003e"};
window._RestockRocketConfig.variantsInventoryPolicy = {46015864635618 : "deny",};
window._RestockRocketConfig.variantsInventoryQuantity = {46015864635618 : parseInt("0"),};
window._RestockRocketConfig.variantsPreorderCount = {46015864635618 : parseInt(""),};
window._RestockRocketConfig.variantsPreorderCountForMarket = {46015864635618 : null,};
window._RestockRocketConfig.variantsPreorder
MaxCount = {46015864635618 : parseInt(""),};
window._RestockRocketConfig.variantsPreorderMaxCountForMarket = {46015864635618 : null,};
window._RestockRocketConfig.variantsShippingText = {46015864635618 : "",};
window._RestockRocketConfig.variantsShippingTextForMarket = {46015864635618 : null,};
window._RestockRocketConfig.selected_variant_id = 46015864635618;
window._RestockRocketConfig.selected_variant_available = window._RestockRocketConfig.product.variants.find(function(variant) { return variant.id == window._RestockRocketConfig.selected_variant_id }).available;window._RestockRocketConfig.scriptUrlProduct = 'https://cdn.shopify.com/extensions/019af0d1-c518-7a22-bdbf-9ceff49063ad/restockrocket-1-402/assets/restockrocket-product.js'
window._RestockRocketConfig.scriptUrlCollection = 'https://cdn.shopify.com/extensions/019af0d1-c518-7a22-bdbf-9ceff49063ad/restockrocket-1-402/assets/restockrocket-collection.js'
window._RestockRocketConfig.scriptHost = window._RestockRocketConfig.scriptUr
lProduct.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
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, fetchin
g 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 <
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 translations:', e);
return settings;
}
}
// 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?.them
e?.role === 'main') {
headers['X-Shopify-Theme-Schema-Name'] = window.Shopify.theme.schema_name;
headers['X-Shopify-Theme-Sch
ema-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 initializeScripts(settings) {
settings = appl
Our sleek roll-top panniers are designed for strength, stability and endurance. Available in small and large for both rear and front racks, they're fitted with side-release buckles and contain a fully adjustable hook system for easy mounting onto 10-16mm rails.
Reflective detailing enhances your safety, whilst their 100% waterproof materials ensure their contents remain dry and secure.
Hand made in our Yorkshire workshop, all bags are finished with the classic Restrap label, made from vegan-friendly PU.
Please get in touch with a member of the team either by phone (01313745324) or email ([email protected]) where on of the team will be more than happy to help.
ProjektRide Bike Shop Edinburgh
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 -