Add bit about the hub – ‘Built with Enve’s Innerdrive Premium Hub’
<
<
<
<
Buy Sell Ride Confident
<
= 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
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 || hopify.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(cac
entre of gravity. All powered by the Bosch CX Speed and a 500Wh intube battery. Born of true Etility® Design, the 46er is reshaping the future of the ebike. For Benno Bikes and the industry.\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003eMANY BIKES IN ONE.\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003eSwift, smooth and strong, the athletic 46er makes it look easy—hauling a load or just hauling down the road. Front suspension makes short work of uneven terrain, while an oversized rear rack expands your cargo options to give you unequaled capability in a standard-sized bike.\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003e\u003cstrong data-mce-fragment=\"1\"\u003eWARNING\u003c\/strong\u003e: When carrying passengers, rear wheel\u003cspan data-mce-fragment=\"1\"\u003e \u003c\/span\u003e\u003cstrong data-mce-fragment=\"1\"\u003eMUST\u003c\/strong\u003e\u003cspan data-mce-fragment=\"1\"\u003e \u003c\/span\u003ebe covered! Install Benno Wheel Guards or Utility Pannier Bags. Failure to do so c
ould result in serious injury! Make sure that no parts of the body, clothing or load come near moving parts on the bicycle, such as chain, spokes, tyres or brakes.\u003cbr data-mce-fragment=\"1\"\u003eDo not exceed individual load ratings and max gross weight.\u003c\/p\u003e\n\u003ch4 data-mce-fragment=\"1\"\u003eSpecifications\u003c\/h4\u003e\n\u003cul class=\"ui-list ui-list-main\" data-mce-fragment=\"1\"\u003e\n\u003cli class=\"ui-list_item\" data-mce-fragment=\"1\"\u003e\n\u003cspan class=\"ui-list-title\" data-mce-fragment=\"1\"\u003eFrame\u003c\/span\u003e\u003cspan class=\"ui-list-info\" data-mce-fragment=\"1\"\u003e6061 Aluminum Alloy with Front Tray Mounts\u003c\/span\u003e\n\u003c\/li\u003e\n\u003cli class=\"ui-list_item\" data-mce-fragment=\"1\"\u003e\n\u003cspan class=\"ui-list-title\" data-mce-fragment=\"1\"\u003eFork\u003c\/span\u003e\u003cspan class=\"ui-list-info\" data-mce-fragment=\"1\"\u003eSuntour SF18 MOBIE 25, 75mm Travel\u003c\/span\u003e\n\u003c\/li\u003e\n\u003cli class=\"ui-list_item