- !settings.multi_language_enabled) {
LightsWould you like to add on any equipment?<
a class="product__media product__media--featured"
href="/collections/brother-cycles/products/copy-of-brother-cycles-kepler-frameset"
title="Brother Cycles 2025 Kepler Frameset"
aria-label="Brother Cycles 2025 Kepler Frameset"
style="background-image: url(//projektride.co.uk/cdn/shop/files/Screenshot2024-03-17at10.30.04_600x.png?v=1710671639)">
<== 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') {
headers['X-Sho
<