Increase quantity
Product Details
The Ridgeback Vanteo is built to be a reliable, versatile bike - comfortable and adaptable around town and country.
The lightweight aluminium frame is paired to a chromoly fork, with mounts for mudguards and racks add versatility, allowing you to turn the bike into a load-lugger or wet-weather commuter. A spread of 24-gears from Shimano's reliable Acera groupset make tough climbs manageable, while still giving enough scope for high speed work on the flat.
Shimano hydraulic disc brakes also give assured and powerful stopping performance in all conditions, operated from a riser-handlebar that allows a more comfortable and upright position.<
label for="quantity--template--24610452406655__main">QuantityWeight - 15.1kg
>
< input type="number" name="quantity" id="quantity--template--24610452406655__main" value="1" min="1">
price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213866210,"position":1,"preview_image":{"aspect_ratio":1.538,"height":1390,"width":2138,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700243170,"title":"Small \/ Black","option1":"Small","option2":"Black","option3":null,"sku":"RB21021SM","requires_shipping":true,"taxable":true,"featured_image":{"id":39635359858914,"product_id":8147909640418,"position":3,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2208,"height":1392,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419","variant_ids":[44330700243170,44330700308706,44330700374242]},"available":true,"name":"Ridgeback Comet Open Frame - Small \/ Black","public_title":"Small \/ Black","options":["Small","Black"],"price":42500,"weight":0,"compare_at
_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213931746,"position":3,"preview_image":{"aspect_ratio":1.586,"height":1392,"width":2208,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700275938,"title":"Medium \/ Green","option1":"Medium","option2":"Green","option3":null,"sku":"RB21021MD","requires_shipping":true,"taxable":true,"featured_image":{"id":39635359793378,"product_id":8147909640418,"position":1,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2138,"height":1390,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","variant_ids":[44330700210402,44330700275938,44330700341474]},"available":true,"name":"Ridgeback Comet Open Frame - Medium \/ Green","public_title":"Medium \/ Green","options":["Medium","Green"],"price":42500,"weight":0,"comp
are_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213866210,"position":1,"preview_image":{"aspect_ratio":1.538,"height":1390,"width":2138,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700308706,"title":"Medium \/ Black","option1":"Medium","option2":"Black","option3":null,"sku":"RB21021MD","requires_shipping":true,"taxable":true,"featured_image":{"id":39635359858914,"product_id":8147909640418,"position":3,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2208,"height":1392,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419","variant_ids":[44330700243170,44330700308706,44330700374242]},"available":true,"name":"Ridgeback Comet Open Frame - Medium \/ Black","public_title":"Medium \/ Black","options":["Medium","Black"],"price":42500,"weight":0
,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213931746,"position":3,"preview_image":{"aspect_ratio":1.586,"height":1392,"width":2208,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700341474,"title":"Large \/ Green","option1":"Large","option2":"Green","option3":null,"sku":"RB21020LG","requires_shipping":true,"taxable":true,"featured_image":{"id":39635359793378,"product_id":8147909640418,"position":1,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2138,"height":1390,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","variant_ids":[44330700210402,44330700275938,44330700341474]},"available":true,"name":"Ridgeback Comet Open Frame - Large \/ Green","public_title":"Large \/ Green","options":["Large","Green"],"price":42500,"weight":
0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213866210,"position":1,"preview_image":{"aspect_ratio":1.538,"height":1390,"width":2138,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700374242,"title":"Large \/ Black","option1":"Large","option2":"Black","option3":null,"sku":"RB21021LG","requires_shipping":true,"taxable":true,"featured_image":{"id":39635359858914,"product_id":8147909640418,"position":3,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2208,"height":1392,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419","variant_ids":[44330700243170,44330700308706,44330700374242]},"available":true,"name":"Ridgeback Comet Open Frame - Large \/ Black","public_title":"Large \/ Black","options":["Large","Black"],"price":42500,"weight"
:0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213931746,"position":3,"preview_image":{"aspect_ratio":1.586,"height":1392,"width":2208,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],
templateName: 'product',
dataKey: 'top-strip-promotion-badge',
storefrontCurrency: 'GBP',
storefrontCountry: 'GB',
storefrontLanguage: 'en',
shopLocale: 'en',
shopDomain: 'projektride.co.uk',
variantPrice: '42500',
cartPrice: '0',
selector: 'shopify-osm-Ac2tTRTlRaTI0R3BZb__klarna_on_site_messaging_app_block_8gNReH',
topPadding: '0',
bottomPadding: '0',
});
} else {
window.appBlockPlacements.push({
productVariants: [{"id":44330700210402,"title":"Small \/ Green","option1":"Small","option2":"Green","option3":null,"sku":"RB21020SM","requir
ed_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2208,"height":1392,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419","variant_ids":[44330700243170,44330700308706,44330700374242]},"available":true,"name":"Ridgeback Comet Open Frame - Small \/ Black","public_title":"Small \/ Black","options":["Small","Black"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213931746,"position":3,"preview_image":{"aspect_ratio":1.586,"height":1392,"width":2208,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700275938,"title":"Medium \/ Green","option1":"Medium","option2":"Green","option3":null,"sku":"RB21021MD","requires_shipping":true,"taxable":true,"featured_image":{"id":39635359793378,"product_id":8147909640418,"position":1,"cr
eated_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2138,"height":1390,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","variant_ids":[44330700210402,44330700275938,44330700341474]},"available":true,"name":"Ridgeback Comet Open Frame - Medium \/ Green","public_title":"Medium \/ Green","options":["Medium","Green"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213866210,"position":1,"preview_image":{"aspect_ratio":1.538,"height":1390,"width":2138,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700308706,"title":"Medium \/ Black","option1":"Medium","option2":"Black","option3":null,"sku":"RB21021MD","requires_shipping":true,"taxable":true,"featured_image":{"id":39635359858914,"product_id":8147909640418,"position"
:3,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2208,"height":1392,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419","variant_ids":[44330700243170,44330700308706,44330700374242]},"available":true,"name":"Ridgeback Comet Open Frame - Medium \/ Black","public_title":"Medium \/ Black","options":["Medium","Black"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213931746,"position":3,"preview_image":{"aspect_ratio":1.586,"height":1392,"width":2208,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700341474,"title":"Large \/ Green","option1":"Large","option2":"Green","option3":null,"sku":"RB21020LG","requires_shipping":true,"taxable":true,"featured_image":{"id":39635359793378,"product_id":8147909640418,"posit
ion":1,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2138,"height":1390,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","variant_ids":[44330700210402,44330700275938,44330700341474]},"available":true,"name":"Ridgeback Comet Open Frame - Large \/ Green","public_title":"Large \/ Green","options":["Large","Green"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213866210,"position":1,"preview_image":{"aspect_ratio":1.538,"height":1390,"width":2138,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700374242,"title":"Large \/ Black","option1":"Large","option2":"Black","option3":null,"sku":"RB21021LG","requires_shipping":true,"taxable":true,"featured_image":{"id":39635359858914,"product_id":8147909640418,"posi
tion":3,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2208,"height":1392,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419","variant_ids":[44330700243170,44330700308706,44330700374242]},"available":true,"name":"Ridgeback Comet Open Frame - Large \/ Black","public_title":"Large \/ Black","options":["Large","Black"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213931746,"position":3,"preview_image":{"aspect_ratio":1.586,"height":1392,"width":2208,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.10.png?v=1693912419","\/\/projektride.co.uk\/cdn\/sh
op\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419","\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.36.png?v=1693912418"],"featured_image":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","options":["Size","Color"],"media":[{"alt":null,"id":32241213866210,"position":1,"preview_image":{"aspect_ratio":1.538,"height":1390,"width":2138,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419"},"aspect_ratio":1.538,"height":1390,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","width":2138},{"alt":null,"id":32241213898978,"position":2,"preview_image":{"aspect_ratio":1.514,"height":1388,"width":2102,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.10.png?v=1693912419"},"aspect_ratio":1.514,"height":1388,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.10.png?v=1693
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Ridgeback Comet Open Frame",
"url": "https:\/\/projektride.co.uk\/products\/ridgeback-comet-open-frame","image": [
"https:\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59_2138x.png?v=1693912419"
],"description": "\nThe cornerstone of our utility range the Comet combines reliability, comfort and quality in an easy to understand package that is perfect for the first-time buyer. Designed to provide everything you need in a bike, without any unnecessary distractions, the Comet takes the complications out of bike ownership and leaves you free to enjoy the ride.\nThe aluminium frame is built to last and enjoys our limited lifetime warranty, while a single chainring and guard make for a clean ride.\nSeven wide-ranging gears can be easily selected using the Shimano Revoshift twist shifter. This setup gives a perfect range for flatter environments and rolling hills and is very easy to use.\nYou?ll also ride in comfort because we have selected wide tyres, a comfort saddle with pressure relief channel and ergonomically-shaped dual density grips.\nPracticality is another area where the Comet really shines, with mounts for mudguards and racks.\nLooking for a similar bike, but for hillier terrain and with a wider range of gears? Be sure to take a look at the Ridgeback Motion.","sku": "RB21021SM","brand": {
"@type": "Thing",
"name": "ridgeback"
},"gtin8": "","offers": [{
"@type" : "Offer","sku": "RB21020SM","availability" : "http://schema.org/InStock",
"price" : 425.0,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/ridgeback-comet-open-frame?variant=44330700210402"
},
{
"@type" : "Offer","sku": "RB21021SM","availability" : "http://schema.org/InStock",
"price" : 425.0,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/ridgeback-comet-open-frame?variant=44330700243170"
},
{
"@type" : "Offer","sku": "RB21021MD","availability" : "http://schema.org/InStock",
"price" : 425.0,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/ridgeback-comet-open-frame?variant=44330700275938"
},
{
"@type" : "Offer","sku": "RB21021MD","availability" : "http://schema.org/InStock",
"price" : 425.0,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/ridgeback-comet-open-frame?variant=44330700308706"
},
{
"@type" : "Offer","sku": "RB21020LG","availability" : "http://schema.org/InStock",
"price" : 425.0,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/ridgeback-comet-open-frame?variant=44330700341474"
},
{
"@type" : "Offer","sku": "RB21021LG","availability" : "http://schema.org/InStock",
"price" : 425.0,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/ridgeback-comet-open-frame?variant=44330700374242"
}
]
}
<
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');">
FAQ
Please get in touch with a member of the team either by phone (
I'm looking to buy this product, when will it arrive and how much does postage cost?
82 Newington Road, EH91QN, Edinburgh.
Contact Us
Blog
Track Service Progress
SERVICES
INFORMATION
Mon - Fri: 09:00 - 18:30
Sat: 9:00 - 16:00
Sun: Closed
Email
window._RestockRocketConfig = window._RestockRocketConfig || {}
// Helper function to normalize locale format from hyphen to underscore (e.g., 'en-US' -> 'en_us')
// This matches the backend's Mobility.normalize_locale behavior
// Returns empty string if locale is empty or invalid (matches original behavior)
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 = 'product';window._RestockRocketConfig.marketId = 382140642;window._RestockRocketConfig.countryName = 'United Kingdom';
window._RestockRocketConfig.countryIsoCode = 'GB';window._RestockRocketConfig.cartInventoryQuantity = {};window._RestockRocketConfig.cachedSettings = {"id":38500,"shop_id":38436,"currency":"GBP","created_at":"2025-07-26T09:13:57.337Z","updated_at":"2025-12-28T14:44:23.508Z","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":fals
e,"storefront_form_promotion_consent_label":"Notify me about other news, sales, discounts & 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_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":"This item needs to be purchased separately. Please check out or clear your cart before adding
this item.","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":null,"insert_button_after_selector_index":null,"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":null,"show_button_on_page":false,"insert_button_after_selector_searre relief channel and ergonomically-shaped dual density grips.\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003ePracticality is another area where the Comet really shines, with mounts for mudguards and racks.\u003c\/p\u003e\n\u003cp data-mce-fragment=\"1\"\u003eLooking for a similar bike, but for hillier terrain and with a wider range of gears? Be sure to take a look at the Ridgeback Motion.\u003c\/p\u003e","published_at":"2025-01-11T09:54:22+00:00","created_at":"2023-09-05T12:13:36+01:00","vendor":"ridgeback","type":"Bicycles","tags":["Comet","spo-cs-disabled","spo-default","spo-disabled","spo-notify-me-disabled"],"price":42500,"price_min":42500,"price_max":42500,"available":true,"price_varies":false,"compare_at_price":49999,"compare_at_price_min":49999,"compare_at_price_max":49999,"compare_at_price_varies":false,"variants":[{"id":44330700210402,"title":"Small \/ Green","option1":"Small","option2":"Green","option3":null,"sku":"RB21020SM","requires_shipping":true,"taxable":true,"featured_image":{"id":3963
5359793378,"product_id":8147909640418,"position":1,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2138,"height":1390,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","variant_ids":[44330700210402,44330700275938,44330700341474]},"available":false,"name":"Ridgeback Comet Open Frame - Small \/ Green","public_title":"Small \/ Green","options":["Small","Green"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213866210,"position":1,"preview_image":{"aspect_ratio":1.538,"height":1390,"width":2138,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700243170,"title":"Small \/ Black","option1":"Small","option2":"Black","option3":null,"sku":"RB21021SM","requires_shipping":true,"taxable":true,"featured_image":{"id":39
635359858914,"product_id":8147909640418,"position":3,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2208,"height":1392,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419","variant_ids":[44330700243170,44330700308706,44330700374242]},"available":true,"name":"Ridgeback Comet Open Frame - Small \/ Black","public_title":"Small \/ Black","options":["Small","Black"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213931746,"position":3,"preview_image":{"aspect_ratio":1.586,"height":1392,"width":2208,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700275938,"title":"Medium \/ Green","option1":"Medium","option2":"Green","option3":null,"sku":"RB21021MD","requires_shipping":true,"taxable":true,"featured_image":{"id"
:39635359793378,"product_id":8147909640418,"position":1,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2138,"height":1390,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","variant_ids":[44330700210402,44330700275938,44330700341474]},"available":true,"name":"Ridgeback Comet Open Frame - Medium \/ Green","public_title":"Medium \/ Green","options":["Medium","Green"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213866210,"position":1,"preview_image":{"aspect_ratio":1.538,"height":1390,"width":2138,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700308706,"title":"Medium \/ Black","option1":"Medium","option2":"Black","option3":null,"sku":"RB21021MD","requires_shipping":true,"taxable":true,"featured_image"
:{"id":39635359858914,"product_id":8147909640418,"position":3,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2208,"height":1392,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419","variant_ids":[44330700243170,44330700308706,44330700374242]},"available":true,"name":"Ridgeback Comet Open Frame - Medium \/ Black","public_title":"Medium \/ Black","options":["Medium","Black"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213931746,"position":3,"preview_image":{"aspect_ratio":1.586,"height":1392,"width":2208,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.11.25.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700341474,"title":"Large \/ Green","option1":"Large","option2":"Green","option3":null,"sku":"RB21020LG","requires_shipping":true,"taxable":true,"featured_im
age":{"id":39635359793378,"product_id":8147909640418,"position":1,"created_at":"2023-09-05T12:13:36+01:00","updated_at":"2023-09-05T12:13:39+01:00","alt":null,"width":2138,"height":1390,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419","variant_ids":[44330700210402,44330700275938,44330700341474]},"available":true,"name":"Ridgeback Comet Open Frame - Large \/ Green","public_title":"Large \/ Green","options":["Large","Green"],"price":42500,"weight":0,"compare_at_price":49999,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":32241213866210,"position":1,"preview_image":{"aspect_ratio":1.538,"height":1390,"width":2138,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/Screenshot2023-09-05at12.10.59.png?v=1693912419"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":44330700374242,"title":"Large \/ Black","option1":"Large","option2":"Black","option3":null,"sku":"RB21021LG","requires_shipping":true,"taxable":true,"featured_i];
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-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(cachedSettings);
} else {
console.error('STOQ - failed to load settings:', error);
}
})
.catch(function(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);
} else if(window._RestockRocketConfig.pageType === 'search' && (settings.show_button_on_search || settings.preorder_search_enabled)) {
createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection);
} else if(window._RestockRocketConfig.pageType === 'page' && (settings.show_button_on_page || settings.preorder_page_enabled)) {
createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection);
} else if(window
._RestockRocketConfig.pageType === 'product') {
createRestockRocketScript(window._RestockRocketConfig.scriptUrlProduct);
} else if(hijackIntegration) {
createRestockRocketScript(window._RestockRocketConfig.scriptUrlCollection);
} else {
console.debug(`STOQ - no scripts enabled for ${window._RestockRocketConfig.pageType}`);
}
// Check and update cart selling plans after scripts are loaded
if (settings.preorder_enabled) {
updateCartSellingPlans();
}
// Dispatch custom event when app is loaded
const appLoadedEvent = new CustomEvent('stoq:loaded', {
detail: {
pageType: window._RestockRocketConfig.pageType,
enabled: settings.enable_app,
settings: settings
}
});
console.debug('STOQ - dispatching app loaded event');
window.dispatchEvent(appLoadedEvent);
}
}
function updateCartSellingPlans() {
// Wait for the API to be available with retries
const maxRetrie
s = 10;
const retryDelay = 500;
function attemptCartCheck(attempt = 1) {
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);
});
} else if (attempt