Bontrager XR Trail Pro, alloy lock-on
Alphabetically, Z-A
Svalbard & Jan Mayen (GBP£)
Serbia (RSDРСД)
f (plan.updated_at) {
const planDate = new Date(plan.updated_at);
const maxDate = max ? new Date(max) : null;
return (!maxDate || (planDate && !isNaN(planDate) && planDate > maxDate)) ? plan.updated_at : max;
}
return max;
}, '')
: null;
const cachedDate = new Date(cachedData.cached_at);
const maxDate = maxUpdatedAt ? new Date(maxUpdatedAt) : null;
const useCached = !maxUpdatedAt || (cachedDate && !isNaN(cachedDate) && (!maxDate || cachedDate > maxDate));
if (useCached) {
if (Array.isArray(cachedData.plans)) {
window._RestockRocketConfig.sellingPlans = cachedData.plans;
window._RestockRocketConfig.disabledSellingPlanIds = cachedData.disabled_plan_ids || [];
console.debug('[RR] Using selling plans from cachedSellingPlans (cached_at: ' + cachedData.cached_at + ')');
}
} else {
window._RestockRocketConfig.disab, null);
sm('variantsShippingTextForMarket', 58205518791039, null);
p('pagePreorderCountIds', 58205518791039, null);
p('pageShippingTextIds', 58205518791039, null);
})(window._RestockRocketConfig);
try {
var _sqCfg = window._RestockRocketConfig;
var _sqPlanEnabled = Array.isArray(_sqCfg.sellingPlans) &&
_sqCfg.sellingPlans.some(function (p) { return p && p.enabled; });
var _sqPreCount = _sqCfg.inlinePreorderIdsDropped ? _sqCfg.cachedPreorderVariantIdsCount : ((_sqCfg.cachedPreorderVariantIds &&
_sqCfg.cachedPreorderVariantIds.preorder_variant_ids) || []).length;
_sqCfg.preordersConfigured = !!(_sqPlanEnabled && _sqPreCount);
} catch (e) { }
try {
var _sqc = window._RestockRocketConfig;
var _sqOn = !(_sqc.cachedSettings && _sqc.cachedSettings.block_accelerated_checkout === false);
var _sqPre = (_sqc.cachedPreorderVariantIds &&
_sqc.cachedPreorderVariantIds.preorder_variant_ids) || [];
var _sqAlways = [];
var _sqAlwaysPlanIds = []e) {
window._RestockRocketConfig.appVersion = '';
}
const SETTINGS_CACHE_DURATION = 15 * 60 * 1000;
const LIQUID_CACHE_MAX_AGE = 15 * 60;
const liquidRenderedAt = window._RestockRocketConfig.liquidRenderedAt;
if (!liquidRenderedAt || typeof liquidRenderedAt !== 'number' || isNaN(liquidRenderedAt)) {
console.debug('STOQ - Invalid or missing liquidRenderedAt timestamp, assuming fresh');
window._RestockRocketConfig.isLiquidCacheFresh = true;
window._RestockRocketConfig.liquidCacheAge = null;
} else {
const now = Math.floor(Date.now() / 1000);
const liquidCacheAge = now - liquidRenderedAt;
window._RestockRocketConfig.liquidCacheAge = Math.max(0, liquidCacheAge);
if (liquidCacheAge < _sqPlans.forEach(function (pl) {
if (!_sqPlan && _sqForVariant(pl) && !pl.markets_enabled) { _sqPlan = pl; }
});
}
Shopify?.analytics?.publish?.('stoq_accelerated_checkout_clicked', {
variant_id: variantId,
product_id: (_sqTrack.product && _sqTrack.product.id) || '',
channel: channel,
market_id: _sqTrack.marketId || '',
country_code: _sqTrack.countryIsoCode || '',
page_type: _sqTrack.pageType || '',
cart_token: _sqTrack.cartToken || '',
page_url: (window.location && window.location.origin + window.location.pathname) || '',
properties: {
is_preorder_variant: (function () {
var vid = Number(variantId);
var has = function (a) { return Array.isArray(a) && a.indexOf(vid) !== -1; };
return has(_sqTrack.preorderVariantIds) ||
has(_sqTrack.cachedPreorderVariantIds &&
'STOQ - Inventory data loaded, 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 plans:', error);
});
}
});
}
function storefrontGraphql(query, variables) {
const cfg = window._RestockRocketConfig;
let token = cfg.storefrontAccessToken || null;
if (!token && typeof cfg.sk === 'string' && cfg.sk !== '') {
try { token = atob(cfg.sk).split('').reverse().join('') || null; } catch (e) { token = null; }
}
if (!token || cfg.disableStorefrontApi === true) {
return Promise.reject(new Error('Storefror.message);
});
}
function refreshShopConfig(source) {
const cfg = window._RestockRocketConfig;
const viaEmbed = function() { return fetchEmbedConfig(source.endpoint, source.apply); };
const flagOn = !!cfg.readFlags && cfg.readFlags[source.flag] === true;
if (!flagOn) { return viaEmbed(); }
return fetchStorefrontShopMetafield(source.metafieldKey)
.then(function(value) {
if (!source.isValid(value)) { throw new Error(source.metafieldKey + ' metafield is not a valid ' + source.endpoint + ' payload'); }
source.apply(value);
console.debug('STOQ - refreshed ' + source.endpoint + ' from the Storefront API');
})
.catch(function(error) {
console.debug('STOQ - Storefront ' + source.endpoint + ' read failed, using embed:', error.message);
return viaEmbed();
});
}
function refreshIntegrations() {
const cfg = window._RestockRocketConfig;
return refreshShopConfig({
endpoint: 'integrations',
metafieldKey: 'integration.configuration || {}).product_heart_auto !== false;
const loadWishlistHearts = function() {
if (wishlistHeartsRequested || !(wishlistImageHeart || document.querySelector(wishlistHeartTarget))) return;
wishlistHeartsRequested = true;
createRestockRocketScript(window._RestockRocketConfig.scriptHost + 'restockrocket-wishlist-hearts.js');
};
loadWishlistHearts();
document.addEventListener('shopify:section:load', loadWishlistHearts);
}
if (document.querySelector('[data-stoq-wishlist-page]')) {
createRestockRocketScript(window._RestockRocketConfig.scriptHost + 'restockrocket-wishlist-page.js');
}
try {
if (localStorage.getItem('stoq_wl_host') !== window._RestockRocketConfig.scriptHost) localStorage.setItem('stoq_wl_host', window._RestockRocketConfig.scriptHost);
} catch (e) {}
try {
const guestWishlist = window._RestockRocketConfig.customer && !localStora
Price, low to high
Close
Alphabetically, Z-A
- Date, old to new
- Date, new to old window._RestockRocketConfig = window._RestockRocketConfig || {} window._RestockRocket = window._RestockRocket || {} window._Stoq = window._RestockRocket window._StoqConfig = window._RestockRocketConfig try { window._RestockRocket.inlineRanAt = performance.now(); } catch (e) { } 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 = "collection"; window._RestockRocketConfig.liquidRenderedAt = 1796200742;window._RestockRocketConfig.marketId = 13777305826;window._RestockRocketConfig.countryName = "United States"; window._RestockRocketConfig.countryIsoCode = "US";window._RestockRocketConfig.defaultCountryIsoCode = "GB";window._RestockRocketConfig.languageIsoCode = "en"; if (!window._RestockRocketConfig.cartToken) { try { const m = document.cookie.match(/(?:^|;\s*)cart=([^;]+)/); if (m && m[1]) window._RestockRocketConfig.cartToken = decodeURIComponent(m[1]); } catch (e) { } } window._RestockRocketConfig.cachedSettings = {"id":38500,"shop_id":38436,"currency":"GBP","created_at":"2025-07-26T09:13:57.337Z","updated_at":"2026-10-01T04:48:15.444Z","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 \u0026 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_custom_domain_enabled":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":"Preorders must be purchased separately from regular items. Please complete your current order first, or clear your cart to continue.","storefront_error_heading":"Error","default_locale":"en","collection_page_button_text_color":"#FFFFFF","collection_page_button_background_color":"#202223","show_button_if_any_out_of_stock":false,"show_button_if_any_variant_out_of_stock_collection":false,"show_button_on_index":false,"insert_button_after_selector_collection":".product-grid-item__info","insert_button_after_selector_index":".product-grid-item__info","push_enabled":false,"push_allowed":false,"storefront_form_push_label":"Push","storefront_form_push_description":"Click 'Allow' to be notified via push notification","storefront_form_push_error":"Permission rejected! Please review notification settings and try again","storefront_font_family":"OpenSans","insert_button_after_selector_collection_type":"afterend","show_channel_selector":false,"storefront_form_empty_error":"Please fill in one or more of the options above","storefront_form_push_input":"Send notification to your browser","insert_button_after_selector_page":".product-grid-item__info","show_button_on_page":false,"insert_button_after_selector_search":".grid","show_button_on_search":false,"app_proxy_path_prefix":"\/apps\/restockrocket-production","collection_link_selector":".product-grid-item__title","index_link_selector":".product-grid-item__title","page_link_selector":".product-grid-item__title","search_link_selector":".product-grid-item__title","collection_check_link_visibility":true,"collection_buttons_container":".grid","index_buttons_container":".carousel.grid--mobile .flickity-viewport","page_buttons_container":".grid","search_buttons_container":".grid","extension_enable_url_variant_detection":true,"extension_enable_value_variant_detection":true,"extension_value_variant_selector":"[name='id']","resubscribe_text":"This product is out of stock. Get notified when it's restocked again by entering your details below!","preorder_enabled":true,"preorder_buy_button_selector":"","preorder_add_to_cart_button_selector":".product__su
- 198 products
- Close Filters
- Filters
- Clear all
- Sort by
- Featured
- Most relevant Best selling
- Alphabetically, A-Z
| Nigeria (NGN₦) | |
| North Macedonia (MKDден) | |
| Poland (PLNzł) | |
| Portugal (EUR€) | |
| Romania (RONLei) | |
| Rwanda (RWFFRw) | |
| São Tomé & Príncipe (STDDb) | |
| Senegal (XOFFr) | |
| Seychelles (GBP£) | |
| Sierra Leone (SLLLe) | |
| Slovenia (EUR€) | |
| Somalia (GBP£) | |
| South Sudan (GBP£) | |
| Spain (EUR€) | |
| Sudan (GBP£) |
Procaliber 9.6 Gen 3
– ProjektRide
Tanzania (TZSSh)
Switzerland (CHFCHF)
-
Togo (XOFFr)Tunisia (GBP£)

Sierra Leone (SLLLe)
Size Chart Rider Height
{"@context":"http:\/\/schema.org\/","@id":"\/products\/slash-8-gen-6-41668#product","@type":"ProductGroup","brand":{"@type":"Brand","name":"Trek"},"category":"Mountain Bikes","description":"The Slash 8 is an enduro mountain bike that's built for pressing the send button again and again. It's built on a high-pivot platform with 170 mm for front and rear travel that boosts traction for punchy climb stages and keeps stability a priority when you point it straight down. A mixed set-up with a 29˝ front and 27.5˝ rear wheel keep handling playful, and it comes equipped with a Shimano XT drivetrain for clean shifts no matter where you ride.\nTechnologyHigh-pivot suspension - The Slash's high main pivot allows the axle to move rearward as the suspension compresses, so the back wheel moves with the force from bumps and gets out of the way faster. On the trail, it feels ultra-smooth while maintaining more momentum with insane traction.\nSpecification\n\nFrame\nAlpha Platinum Aluminium, high main pivot, idler pulley, internal storage, angle-adjust headset, adjustable leverage rate, integrated frame protection, internal routing, alloy rocker link, ISCG 05, Active Braking Pivot, UDH, 148x12 mm thru axle, 170 mm travel Alpha Platinum Aluminum, high mai\n\n\nFrame Material\nALUMINIUM\n\n\nRim Size\n29\n\n\nFork\nFox\n\n\nFork\nFox Rhythm 36, Float EVOL air spring, GRIP damper, tapered steerer, 44 mm offset, Boost110, 15 mm Kabolt-X axle, 170 mm travel Fox Rhythm 36, Float EVOL air spring, GRIP damper, tapered steerer, 44mm offset, Boost11\n\n\nRearsuspension\nFox\n\n\nSuspension Rear\nFox Performance Float X, 2-position damper, 230 mm x 65 mm\n\n\nWheels\nBontrager Line Comp 30\n\n\nTires\nBontrager XR5 Team Issue, Tubeless Ready, Inner Strength casing, aramid bead, 60 tpi, 29x2.50\" \/\/ Bontrager XR5 Team Issue, Tubeless Ready, Inner Strength casing, aramid bead, 60 tpi, 27.5 x 2.50\"\n\n\nShifter\nShimano\n\n\nDerailleur Rear\nShimano XT M8100, long cage\n\n\nCrank\nShimano Deore M6120, 30T ring, 55 mm chain line, 165 mm length\n\n\nBottom Bracket\nShimano BB-MT501 BSA\n\n\nCassette\nShimano XT M8100, 10-51, 12-speed\n\n\nChain\nShimano SLX M7100, 12-speed\n\n\nBrake\nShimano\n\n\nBrakeset\nShimano 4-piston hydraulic disc, M6100 lever, M6120 calliper \/\/ Shimano 4-piston hydraulic disc, M6100 lever, M6120 calliper Shimano 4-piston hydraulic disc, M6100 lever, M6120 caliper \/\/ Shimano 4-piston hydraulic disc, M6100 lever, M6120 cali\n\n\nBrake Rotor\nShimano RT66, 6-bolt, 203 mm \/\/ Shimano RT66, 6-bolt, 203 mm\n\n\nSaddle\nBontrager Arvada, hollow chromoly rails, 138 mm width\n\n\nSeatpost\nBontrager Line Dropper, 170 mm travel, MaxFlow, internal routing, 34.9 mm, 450 mm length\n\n\nHandlebar\nBontrager Line, alloy, 35 mm, 27.5 mm rise, 820 mm width\n\n\nStem\nBontrager Elite, 35 mm, 0-degree, 35 mm length\n\n\nGrips\nBontrager XR Trail Pro, alloy lock-on\n\n\nFenders\nTrek 27.5\" custom fender\n\n\nSize Chart Rider Height\nRider Height - 177.0 - 188.0\n\n\nSize Chart Rider Inseam\nInseam - 84.0 - 89.0\n\n","hasVariant":[{"@id":"\/products\/slash-8-gen-6-41668?variant=58205551559039#variant","@type":"Product","gtin":"768682149317","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/Slash8-24-41668-A-Primary_ee572e70-675c-4888-b90a-d1e636a306da.jpg?v=1787065678\u0026width=1920","name":"Slash 8 Gen 6 - L","offers":{"@id":"\/products\/slash-8-gen-6-41668?variant=58205551559039#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3300.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/slash-8-gen-6-41668?variant=58205551559039"},"sku":"5302813"},{"@id":"\/products\/slash-8-gen-6-41668?variant=58205551591807#variant","@type":"Product","gtin":"768682149416","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/Slash8-24-41668-A-Primary_ee572e70-675c-4888-b90a-d1e636a306da.jpg?v=1787065678\u0026width=1920","name":"Slash 8 Gen 6 - ML","offers":{"@id":"\/products\/slash-8-gen-6-41668?variant=58205551591807#offer","@type":"Offer","availability":"http:\/\/schema.org\/OutOfStock","price":"3300.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/slash-8-gen-6-41668?variant=58205551591807"},"sku":"5302812"},{"@id":"\/products\/slash-8-gen-6-41668?variant=58205551624575#variant","@type":"Product","gtin":"768682149256","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/Slash8-24-41668-A-Primary_ee572e70-675c-4888-b90a-d1e636a306da.jpg?v=1787065678\u0026width=1920","name":"Slash 8 Gen 6 - XL","offers":{"@id":"\/products\/slash-8-gen-6-41668?variant=58205551624575#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3300.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/slash-8-gen-6-41668?variant=58205551624575"},"sku":"5302814"}],"name":"Slash 8 Gen 6","productGroupID":"15846745440639","url":"https:\/\/projektride.co.uk\/products\/slash-8-gen-6-41668"}
South Sudan (GBP£)
Please get in touch with a member of the team either by phone (
ProjektRide Bike Shop Edinburgh
Sweden (SEKkr)
ProjektRide Bike Shop Edinburgh
Tunisia (GBP£)
Recently viewed
United States (GBP£)










er_button_colors_enabled":true,"markets_enabled":false,"shopify_market_ids":[],"use_shopify_selling_plan":true,"use_simplified_shipping_text":true,"payment_options":[{"billing_type":"no_remaining_balance","billing_checkout_charge_type":"percentage","billing_checkout_charge_amount":null,"billing_checkout_charge_percentage":"100.0","billing_at":"2025-07-26T09:20:38.472Z","billing_after_n_intervals":7,"billing_after_interval_type":"day","pricing_type":"no_discount","pricing_amount":null,"pricing_percentage":null,"billing_title":"Full payment","billing_description":null,"discount_text":"Save {{ discount }}","shopify_selling_plan_id":713071886719,"is_default":true,"type":"full","translations":{}}],"require_preorder_acknowledgement":false,"preorder_acknowledgement_text":"I acknowledge and agree to the preorder terms and conditions for this product.","disable_button_until_acknowledged":false,"acknowledgement_line_item_property_enabled":false,"acknowledgement_line_item_property_text":"Preorder Terms Accepted","preord
rCountForMarket = {58205376446847 : null,58205376479615 : null,58205376512383 : null,58205376545151 : null,58205376577919 : null,58205376610687 : null,};
window._RestockRocketConfig.variantsPreorderMaxCount = {58205376446847 : parseInt(null),58205376479615 : parseInt(null),58205376512383 : parseInt(null),58205376545151 : parseInt(null),58205376577919 : parseInt(null),58205376610687 : parseInt(null),};
window._RestockRocketConfig.variantsPreorderMaxCountForMarket = {58205376446847 : null,58205376479615 : null,58205376512383 : null,58205376545151 : null,58205376577919 : null,58205376610687 : null,};
window._RestockRocketConfig.variantsShippingText = {58205376446847 : "",58205376479615 : "",58205376512383 : "",58205376545151 : "",58205376577919 : "",58205376610687 : "",};
window._RestockRocketConfig.variantsShippingTextForMarket = {58205376446847 : null,58205376479615 : null,58205376512383 : null,58205376545151 : null,58205376577919 : null,58205376610687 : null,};window._RestockRocketConfig.selec
= 0);
});
} else {
_sqArm = (_sqc.integrations || []).some(function (i) {
return i && i.type === 'featured_product' && i.enabled &&
Array.isArray(i.page_types) && i.page_types.indexOf(_sqc.pageType) !== -1;
});
}
}
if (_sqArm && document.documentElement) {
_sqc.acceleratedGateArmed = true;
document.documentElement.classList.add('stoq-buy-now-pending');
setTimeout(function () {
document.documentElement.classList.remove('stoq-buy-now-pending');
}, 6000);
}
} catch (e) { }
window._RestockRocketConfig.scriptUrlProduct = 'https://cdn.shopify.com/extensions/01a21958-a965-7f60-9004-37c9997a4eda/restockrocket-1-650/assets/restockrocket-product.js'
window._RestockRocketConfig.scriptUrlCollection = 'https://cdn.shopify.com/extensions/01a21958-a965-7f60-9004-37c9997a4eda/restockrocket-1-650/assets/restockrocket-collection.js'
window._RestockRocketConfig.scriptUrlCollectionFull = 'https://cdn.shopify.com/extensi
= 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;
}
if (settings.multi_language_enabled) {
if (!settings.translations) {
console.debug('STOQ - multi-language enabled but no translation data in cache, fetching fresh');
return null;
}
if (window._RestockRocketConfig.normalizedLocale &
.closest('.shopify-payment-button, shopify-payment-terms');
if (!host) return;
var channel = host.matches && host.matches('shopify-payment-terms')
? 'shop_pay_installments' : 'buy_now';
var form = host.closest('form');
var vidEl = form && form.querySelector('[name="id"]');
var variantId = (vidEl && vidEl.value) || _sqTrack.selected_variant_id || '';
var _sqVidNum = Number(variantId);
var _sqPlan = null;
var _sqPlans = Array.isArray(_sqTrack.sellingPlans) ? _sqTrack.sellingPlans : [];
var _sqMktId = Number(_sqTrack.marketId);
var _sqOffersOn = !!(_sqTrack.readFlags && _sqTrack.readFlags.enable_storefront_plan_offers === true);
var _sqAlloc = _sqOffersOn
? ((_sqTrack.offerAllocations && _sqTrack.offerAllocations[_sqVidNum]) ||
(_sqTrack.variantSellingPlanIds && _sqTrack.variantSellingPlanIds[_sqVidNum]))
: null;
var _sqPlanIds = function (pl)
lassList.contains('stoq-buy-now-pending')),
blocked: (function () {
try {
var rr = window._RestockRocket;
return !!(rr && typeof rr.willBlockAcceleratedClick === 'function' &&
rr.willBlockAcceleratedClick(e));
} catch (err) { return false; }
})(),
},
});
} catch (err) { }
}, true);
}
} catch (e) { }
function applyTranslations(settings) {
try {
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) {
console.debug('STOQ - No matching locale for translations. Available:', Object.keys(translations || {}));
const storefrontRead = window._RestockRocketConfig.readFlags?.enable_storefront_settings_read === true
? Promise.race([
fetchStorefrontSettings(),
new Promise(function(_, reject) { setTimeout(function() { reject(new Error('timed out')); }, 1500); })
]).catch(function(error) {
console.debug('STOQ - Storefront settings read failed, using setting.json:', error.message);
})
: Promise.resolve();
storefrontRead
.then(function(settings) {
return settings || 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 (cachedSettings) {
console.de
Forms|setupAddToCartForm|teardownAddToCartForm|addDiscountedPrice|removeDiscountedPrice)\b/.test(settings.js_config || '');
const preorderCollectionScriptUrl = preorderUiOnPage
? window._RestockRocketConfig.scriptUrlCollectionFull
: window._RestockRocketConfig.scriptUrlCollection;
const collectionScriptUrl = usePreorderBuild
? preorderCollectionScriptUrl
: window._RestockRocketConfig.scriptUrlCollectionBis;
const productScriptUrl = usePreorderBuild
? window._RestockRocketConfig.scriptUrlProduct
: window._RestockRocketConfig.scriptUrlProductBis;
const collectionPageTypes = ['collection', 'index', 'search', 'page'];
if(collectionPageTypes.indexOf(pageType) !== -1 && (settings[`show_button_on_${pageType}`] || settings[`preorder_${pageType}_enabled`])) {
createRestockRocketScript(collectionScriptUrl);
} else if(pageType === 'product') {
createRestockRocketScript(productScriptUrl);
} else if(hijackIntegratio








