ources.\u003cbr\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003eMuc-Off Wet Chain Lube penetrates deep into your chain link’s core to provide long lasting lubrication and total protection. Our integral ’Extreme Pressure Additives’ coat every part of the link to provide a silky smooth gear change and an ultra efficient drive chain.\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003eSize 50ml\u003c\/p\u003e","published_at":"2021-12-07T16:19:59+00:00","created_at":"2021-12-07T16:16:50+00:00","vendor":"Muc-Off","type":"","tags":["chain oil","lube","maintenance","muc-off","oil","spo-cs-disabled","spo-default","spo-disabled","spo-notify-me-disabled","wet lube"],"price":499,"price_min":499,"price_max":499,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":42133734097122,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"867-1M","requires_shipping":true,
Lube is an ultra durable, long distance bicycle chain lubricant and oil that’s been specifically formulated to excel over long distances in wet or muddy conditions. Our state of the art formula has been derived from natural ingredients and made completely from renewable sources.\u003cbr\u003e\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003eMuc-Off Wet Chain Lube penetrates deep into your chain link’s core to provide long lasting lubrication and total protection. Our integral ’Extreme Pressure Additives’ coat every part of the link to provide a silky smooth gear change and an ultra efficient drive chain.\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003eSize 50ml\u003c\/p\u003e"};
window._RestockRocketConfig.variantsInventoryPolicy = {42133734097122 : "deny",};
window._RestockRocketConfig.variantsInventoryQuantity = {42133734097122 : parseInt("15"),};
window._RestockRocketConfig.variantsPreorderCount = {42133734097122 : parseInt(""),};
window._RestockRocketConfig.variantsPreord
estockrocket-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
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 - for
<
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_enabl
l && 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?.theme?.role === 'main') {
he
Framesnction(e) {
console.error(e)
})
}
function initializeScripts(settings) {
settings = applyTranslations(settings);
window._RestockRocketConfig.settings = settings;
console.debug(`STOQ - settings configured for ${window._RestockRocketConfig.pageType}`);
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);
})
if(window._RestockRocketConfig.pageType === 'collection' && (settings.show_button_on_collection || settings.preorder_collection_enabled)) {
createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection);
} else if(window._RestockRocketConfig.pageType === 'index' && (settings.show_button_on_index || settings.preorder_index_enabled)) {
createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection);
} e<