Enve
Product Details
District+ 6 Lowstep is a comfortable, dependable electric bike that makes getting around your city simple, fast and fun. It has low-maintenance internal gearing, a Bosch motor and controller and features Trek's user-friendly Removable Integrated Battery (RIB) system that fully encases the battery in the frame, yet doesn't require tools for removal. Plus, it comes with road-smoothing suspension and all the utility features you need like mudguards, integrated lights and a rear rack.
To measure your height, stand up straight, barefoot, with your back, heels, shoulders and head all touching a wall. While looking straight ahead, place a book or straight edge on your head and slowly push it against the wall. Your straight edge should be parallel with the floor. Mark the spot where the bottom of the book is touching the wall. The distance from the marked spot to the floor is your height.Brakes
What is your inside leg?Complete Brakes
How to measure: Stand barefoot with your back straight and against a wall. Tuck a ruler or something that extends to the floor between your legs. Using both hands, and keeping it level, pull the ruler up into your crotch as if you were sitting on the saddle. Measure the distance from the top edge of the ruler to the ground to find your inside leg measurement. Your inside leg is very important to your fina
a wall. While looking straight ahead, place a book or straight edge on your head and slowly push it against the wall. Your straight edge should be parallel with the floor. Mark the spot where the bottom of the book is touching the wall. The distance from the marked spot to the floor is your height.\u003c\/p\u003e\n\u003cp\u003eWhat is your inside leg?\u003cbr\u003eHow to measure: Stand barefoot with your back straight and against a wall. Tuck a ruler or something that extends to the floor between your legs. Using both hands, and keeping it level, pull the ruler up into your crotch as if you were sitting on the saddle. Measure the distance from the top edge of the ruler to the ground to find your inside leg measurement. Your inside leg is very important to your final bike size so please measure carefully.\u003c\/p\u003e\n\u003ctable data-v-3ac87600=\"\" data-v-4052fbf6=\"\" class=\"trek-table trek-table--hstripe trek-table--borderless trek-table--centered trek-table--small trek-table--sticky-headers trek-tableBike Packing
450671330,"position":3,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DistrictPlus6Lowstep_21_33014_A_Alt9.webp?v=1728388676"},"aspect_ratio":1.333,"height":1080,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/DistrictPlus6Lowstep_21_33014_A_Alt9.webp?v=1728388676","width":1440}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eDistrict+ 6 Lowstep is a comfortable, dependable electric bike that makes getting around your city simple, fast and fun. It has low-maintenance internal gearing, a Bosch motor and controller and features Trek's user-friendly Removable Integrated Battery (RIB) system that fully encases the battery in the frame, yet doesn't require tools for removal. Plus, it comes with road-smoothing suspension and all the utility features you need like mudguards, integrated lights and a rear rack.\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eIt's right for you if...\u003cBags and Transportation
pendable, low-maintenance city e-bike built with Trek's sleek and easy-to-use Removable Integrated Battery (RIB) system, thoughtful details that make daily riding stress-free, and a high-quality Bosch motor and controller.\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eHow tall are you?\u003cbr\u003eTo measure your height, stand up straight, barefoot, with your back, heels, shoulders and head all touching a wall. While looking straight ahead, place a book or straight edge on your head and slowly push it against the wall. Your straight edge should be parallel with the floor. Mark the spot where the bottom of the book is touching the wall. The distance from the marked spot to the floor is your height.\u003c\/p\u003e\n\u003cp\u003eWhat is your inside leg?\u003cbr\u003eHow to measure: Stand barefoot with your back straight and against a wall. Tuck a ruler or something that extends to the floor between your legs. Using both hands, and keeping it level, pull the ruler up into your crotch as if you wer
Phone Holders
Bells
Rider Care
Cleaners, Degreasers and Lubrication
Rider Care
If the item is showing in stock, we aim to post the product within 24 hours. Please allow 5 working days to receive the item.
Postage is free on orders over £50. Orders under £50, our postage charge is £3.99.
82 Newington Road, EH91QN, Edinburgh.
This kit is equipped to treat most minor injuries and includes a loop on the back of the pack allowing you to attach it either to a belt or on the outside of a rucksackKit includes:General: 1 x Primary Care Leaflet, 1 x Tweezers, 1 x Scissors (5.5cm Blade), 6 x Safety Pins
a class="product__media product__media--featured"
href="/products/surly-erc"
title="Hire Genesis Tour De Fer (Flat Handlebars)"
aria-label="Hire Genesis Tour De Fer (Flat Handlebars)"
style="background-image: url(//projektride.co.uk/cdn/shop/files/Genesis_Broadway_1_600x.jpg?v=1761140804)">
Add to cart<
span class="visually-hidden">Hire Genesis Tour De Fer (Flat Handlebars)
Notify me when this product is available:>
The tech you get
<
The final word
Submit
window.appBlockPlacements ||= [];
if (window.klarnaAppBlocksManager) {
window.klarnaAppBlocksManager.push({
productVariants: [{"id":46044399894754,"title":"Small \/ Black","option1":"Small","option2":"Black","option3":null,"sku":"5294573","requires_shipping":true,"taxable":true,"featured_image":{"id":42310230311138,"product_id":8734587257058,"position":1,"created_at":"2024-10-11T09:56:18+01:00","updated_at":"2024-10-11T09:56:19+01:00","alt":null,"width":1440,"height":1080,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979","variant_ids":[46044399894754,46044399960290,46044400025826]},"available":false,"name":"Trek Allant+ Lowstep Gen 2 - Small \/ Black","public_title":"Small \/ Black","options":["Small","Black"],"price":370000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":34798420918498,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979"}},"requires_selling_plan":false,"sell_plan_allocations":[]},{"id":46044399960290,"title":"Medium \/ Black","option1":"Medium","option2":"Black","option3":null,"sku":"5294574","requires_shipping":true,"taxable":true,"featured_image":{"id":42310230311138,"product_id":8734587257058,"position":1,"created_at":"2024-10-11T09:56:18+01:00","updated_at":"2024-10-11T09:56:19+01:00","alt":null,"width":1440,"height":1080,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979","variant_ids":[46044399894754,46044399960290,46044400025826]},"available":false,"name":"Trek Allant+ Lowstep Gen 2 - Medium \/ Black","public_title":"Medium \/ Black","options":["Medium","Black"],"price":370000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":34798420918498,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979"}},"requires_selling_plan":f
You’re looking for an e-bike with equal parts performance, comfort and sleek looks. You also want the connection and customisation of Bosch’s smart system, including activity tracking, navigation and Bluetooth connectivity.
Row--template--16831240536290__f0311d59-64f2-4e56-9090-3c1d25778355 .icons-row__icon {
width: 70px;
}The tech you get
A sleek hydroformed aluminium frame with a lowstep design that makes it easier to hop on and off, a fully-integrated 625 Wh Bosch smart system battery, a powerful Bosch smart system CX (250 W, 85 Nm) drive unit that helps you sustain speeds of up to 20 mph (25 km/h in Europe) and a Bosch smart system LED remote with a Purion 200 display. Plus, a suspension fork with lockout, a 10-speed Shimano CUES drivetrain, hydraulic disc brakes, an integrated front and rear lighting system, mudguards and a rear rack.
The final word
Sizingimg src="//projektride.co.uk/cdn/shop/files/bike_490f99ba-a097-4bd4-9ba6-e1e4b7c61178_512x512.png?v=1690612629" alt="" class="icons-row__image">
The Allant+ 7 is a sophisticated e-bike equipped with the powerful Bosch smart system, a fully-integrated battery, a suspension fork that soaks up bumps, useful features for daily riding and a quality parts group chosen for reliability and durability over the long haul.
1. Choose BikeHow tall are you?
Choose your preferred bike from our collection of in-house custom-builds and add to your basket. Bikes can also be hired in store.
To measure your height, stand up straight, barefoot, with your back, heels, shoulders and head all touching a wall. While looking straight ahead, place a book or straight edge on your head and slowly push it against the wall. Your straight edge should be parallel with the floor. Mark the spot where the bottom of the book is touching the wall. The distance from the marked spot to the floor is your height.
size-table
What is your inside leg?
img src="//projektride.co.uk/cdn/shop/files/equipment_512x512.png?v=1690612532" alt="" class="icons-row__image">
How to measure: Stand barefoot with your back straight and against a wall. Tuck a ruler or something that extends to the floor between your legs. Using both hands, and keeping it level, pull the ruler up into your crotch as if you were sitting on the saddle. Measure the distance from the top edge of the ruler to the ground to find your inside leg measurement. Your inside leg is very important to your final bike size so please measure carefully.
2. Choose Equipment (Optional)
SizeChoose any optional free equipment - shown in the hire section - and add it to your basket so it's ready for you when you pick up your bike. This can also be done in store.
3. Pay Online or In-Store
Checkout the hire items in your basket and pay with all major credit cards, PayPal or Klarna. Payments can be made in store without going through the online shop. Please call the shop to book out in-person.Size
Wait for one of the team to confirm your booking. This is separate from the payment confirmation. A confirmation email will be sent within 24 hours, during shop opening times.
29" - 30"Collect your bike in store alongside all optional equipment. Please bring a form of identification (Driver's licence or Passport) to complete the booking.
If you are looking for a custom bike for your tour,
please get in touch
33" - 34". We can do full custom-builds at a higher rental rate.
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Trek Allant+ Lowstep Gen 2",
"url": "https:\/\/projektride.co.uk\/products\/trek-allant-lowstep-gen-2","image": [
"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary_1440x.webp?v=1728636979"
],"description": "The Allant+ 7 Lowstep is an award-winning e-bike built for riders and commuters who want a stylish, durable e-bike with the added road-smoothing benefits of a suspension fork. The powerful and connected Bosch smart system, quality parts and a wealth of thoughtful design details make this electric bike a smart solution for getting around town every day.\nIt's right for you if...\nYou’re looking for an e-bike with equal parts performance, comfort and sleek looks. You also want the connection and customisation of Bosch’s smart system, including activity tracking, navigation and Bluetooth connectivity.\nThe tech you get\nA sleek hydroformed aluminium frame with a lowstep design that makes it easier to hop on and off, a fully-integrated 625 Wh Bosch smart system battery, a powerful Bosch smart system CX (250 W, 85 Nm) drive unit that helps you sustain speeds of up to 20 mph (25 km\/h in Europe) and a Bosch smart system LED remote with a Purion 200 display. Plus, a suspension fork with lockout, a 10-speed Shimano CUES drivetrain, hydraulic disc brakes, an integrated front and rear lighting system, mudguards and a rear rack.\nThe final word\nThe Allant+ 7 is a sophisticated e-bike equipped with the powerful Bosch smart system, a fully-integrated battery, a suspension fork that soaks up bumps, useful features for daily riding and a quality parts group chosen for reliability and durability over the long haul.\nHow tall are you?\nTo measure your height, stand up straight, barefoot, with your back, heels, shoulders and head all touching a wall. While looking straight ahead, place a book or straight edge on your head and slowly push it against the wall. Your straight edge should be parallel with the floor. Mark the spot where the bottom of the book is touching the wall. The distance from the marked spot to the floor is your height.\nWhat is your inside leg?\nHow to measure: Stand barefoot with your back straight and against a wall. Tuck a ruler or something that extends to the floor between your legs. Using both hands, and keeping it level, pull the ruler up into your crotch as if you were sitting on the saddle. Measure the distance from the top edge of the ruler to the ground to find your inside leg measurement. Your inside leg is very important to your final bike size so please measure carefully.\n\n\n\n\n\n\n\nSize\nRider Height\nInseam\n\n\n\n\nS\n\n155 - 165 cm\n5'1\" - 5'5\"\n\n\n72 - 78 cm\n28\" - 31\"\n\n\n\nM\n\n165 - 175 cm\n5'5\" - 5'9\"\n\n\n77 - 83 cm\n30\" - 33\"\n\n\n\nL\n\n175 - 186 cm\n5'9\" - 6'1\"\n\n\n82 - 88 cm\n32\" - 35\"\n\n\n\n\n\n\n\n\n\n","sku": "5294576","brand": {
"@type": "Thing",
"name": "Trek"
},"gtin8": "","offers": [{
"@type" : "Offer","sku": "5294573","availability" : "http://schema.org/InStock",
"price" : 3700.0,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/trek-allant-lowstep-gen-2?variant=46044399894754"
},
{
"@type" : "Offer","sku": "5294576","availability" : "http://schema.org/InStock",
"price" : 3700.0,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/trek-allant-lowstep-gen-2?variant=46044399927522"
},
{
"@type" : "Offer","sku": "5294574","availability" : "http://schema.org/InStock",
"price" : 3700.0,
"priceCurrency" : "GBP",
"url" : "https:\/\/projektride.co.uk\/products\/trek-allant-lowstep-gen-2?variant=46044399960290"
},
{
"@type" : "Offer","sku": "529457
Can I ProjektRide keep my belongings safe whilst I travel with the bike?
We are happy to keep your belongings safe, including suitcases etc. whilst you are out in one of our rental bikes.
At what time do I need to return the bike?
You must return your bike before the shop closes on your return date. Please review our working hours
here
. Failure to do so in time may result in additional charges. Please see our
Bike Hire Terms & Conditions
for more information. If you are returning your bike on a Sunday, please add a note to your order with your number and your ETA return date so we can arrange your drop off out-of-hours.
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-11-11T14:27:02.312Z","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":{},"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,"storSaddle rail height min (w/short mast)
efront_form_promotion_consent_label":"Notify me about other news, sales, discounts & offers too","show_button_on_collection":false,"sms_default_country":"us","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_head
ing":"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_search":null,"show_button_on_search":f
alse,"app_proxy_path_prefix":"/apps/restockrocket-production","collection_link_selector":"","index_link_selector":"","page_link_selector":"","search_link_selector":"","collection_check_link_visibility":true,"collection_buttons_container":null,"index_buttons_container":null,"page_buttons_container":null,"search_buttons_container":null,"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":null,"preorder_add_to_cart_button_selector":"","preorder_badge_selector":"","preorder_button_out_of_stock_text":"Out of stock","preorder_button_add_to_cart_text":"Add to cart","preorder_form_selector":"form[action*=\"/cart/add\"]","preorder_collection_enabled":false,"preorder_collection_form_selector":"form[action*=\"/cart/add\"]","preorder_collection_add_to_cart_bu
03010,45069622968546,45069750730978,45069750763746,45353010921698,45353010954466,45353010987234,45353018261730,45353018294498,45353018327266,55569712382335,55569712447871,55569712480639,55569933074815,55570550194559,55570550227327,55604008976767,55638316908927,55638316941695,55638316974463,56220814999935,56220815032703,56270279606655,56270279639423,56270279672191,56314171064703,56314171097471,56398983725439,56398983758207,56398983790975,56399322251647],"updated_at":"2025-12-13T22:17:11Z","market_locations_enabled":false,"market_id":382140642,"preorder_location_filter_enabled":false,"preorder_location_filter_ids":[],"collection_id":null};window._RestockRocketConfig.cachedInStockVariantIds = { in_stock_variant_ids: [] };window._RestockRocketConfig.cachedOutOfStockVariantIds = { out_of_stock_variant_ids: [] };window._RestockRocketConfig.cachedVariantPreorderLimits = {"variant_preorder_limits":{},"updated_at":"2025-12-13T21:55:38Z","shopify_market_id":382140642,"market_locations_enabled":false};
window._RestoSaddle rail height min (w/tall mast)ckRocketConfig.cachedVariantPreorderLimitsMarketKey = "variant_preorder_limits_for_market_382140642";window._RestockRocketConfig.cachedVariantShippingTexts = {"variant_shipping_texts":{},"updated_at":"2025-12-13T21:55:38Z","shopify_market_id":382140642,"market_locations_enabled":false};
window._RestockRocketConfig.cachedVariantShippingTextsMarketKey = "variant_shipping_texts_for_market_382140642";window._RestockRocketConfig.sellingPlans = [{"shopify_selling_plan_group_id":98590196095,"shopify_selling_plan_id":713071886719,"enabled":true,"variant_ids":[55569933140351,55569712382335,55569712415103,55569712480639,55569933173119,55570017616255,55569933074815,55570017550719,55569712447871,55569933107583,55570017583487],"product_variants_source":"custom","name":"Preorder","preorder_button_text":"Preorder","preorder_button_description":"Note: This is a preorder. Items will ship based on the estimated delivery date.","preorder_button_description_background_color":"#ebebeb","preorder_button_description_text_color"
:"#000000","preorder_button_description_border_radius":10,"preorder_button_description_show_quantity_limit":false,"preorder_button_description_quantity_limit_suffix":" units available for preorder","preorder_button_description_shipping_text_prefix":"Shipping: ","delivery_exact_time":null,"delivery_after_n_intervals":null,"delivery_at":"2025-07-26T09:20:18.169Z","delivery_type":"asap","quantity_limit_text":"{{ quantity }} units available for preorder","preorder_button_description_show_shipping":true,"preorder_button_description_icons_enabled":true,"preorder_shipping_text":"Shipping: {{ date }}","shipping_applies_to_all_products":true,"shipping_text":"Estimated to ship within 2 months","payment_type":"full","billing_checkout_charge_type":"percentage","billing_checkout_charge_amount":null,"billing_checkout_charge_percentage":"100.0","pricing_type":"no_discount","pricing_amount":null,"pricing_percentage":null,"discount_text":"Save {{ discount }}","billing_title":"Full payment","billing_description":null,"enable_b
illing_widget":false,"inventory_provider":"stoq","preorder_badge_enabled":false,"preorder_badge_text":"Preorder","preorder_badge_text_color":"#FFFFFF","preorder_badge_background_color":"#000000","preorder_discounted_price_enabled":null,"payment_line_item_property_enabled":false,"shipping_line_item_property_enabled":true,"custom_line_item_property_text":null,"preorder_button_text_color":"#ffffff","preorder_button_background_color":"#565557","preorder_button_colors_enabled":true,"markets_enabled":false,"market_id":13779632354,"shopify_market_ids":[],"use_shopify_selling_plan":true,"use_simplified_shipping_text":false,"translations":{},"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.","preorder_min_quantity":null,"preorder_max_quantity":null,"countdown_timer_enabled":false,"countdown_timer_insert_selector":null,"countdown_timer_insert_selector_type":"afterend","countdown_timer_style":"text","countdown_timer_text_color":"#000000","countdown_timer_background_color":"#f5f5f5","countdown_timer_border_radius":8,"countdown_timer_format":"DHMS","countdown_timer_use_schedule_dates":true,"countdown_timer_custom_start_date":null,"countdown_timer_custom_end_date":null,"countdown_timer_starts_text":null,"countdown_timer_ends_text":null,"updated_at":"2025-08-19T10:05:43.042Z","allow_mixed_cart":true}];window._RestockRocketConfig.integrations = [{"id":"15c94526-b6b8-4de1-9bc1-23b1ca5Saddle rail height max (w/tall mast)2ddb0","shop_id":38436,"enabled":true,"page_types":["product","collection","index","search","page","cart","list-collections","article","blog"],"configuration":{"toastDuration":10000,"toastPosition":"bottom-right","enableXHRHijack":true,"enableFetchHijack":true,"quantityLimitDisabled":false},"type":"hijack","css_config":null,"js_config":null,"created_at":"2025-07-26T09:16:04.076Z","updated_at":"2025-07-26T09:16:04.076Z"}];window._RestockRocketConfig.obfuscateInventoryQuantity = false;window._RestockRocketConfig.product = {"id":8734587257058,"title":"Trek Allant+ Lowstep Gen 2","handle":"trek-allant-lowstep-gen-2","description":"\u003cp\u003eThe Allant+ 7 Lowstep is an award-winning e-bike built for riders and commuters who want a stylish, durable e-bike with the added road-smoothing benefits of a suspension fork. The powerful and connected Bosch smart system, quality parts and a wealth of thoughtful design details make this electric bike a smart solution for getting around town every day.\u003c\/p\u003e\n\u003
cp\u003e\u003cstrong\u003eIt's right for you if...\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eYou’re looking for an e-bike with equal parts performance, comfort and sleek looks. You also want the connection and customisation of Bosch’s smart system, including activity tracking, navigation and Bluetooth connectivity.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eThe tech you get\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eA sleek hydroformed aluminium frame with a lowstep design that makes it easier to hop on and off, a fully-integrated 625 Wh Bosch smart system battery, a powerful Bosch smart system CX (250 W, 85 Nm) drive unit that helps you sustain speeds of up to 20 mph (25 km\/h in Europe) and a Bosch smart system LED remote with a Purion 200 display. Plus, a suspension fork with lockout, a 10-speed Shimano CUES drivetrain, hydraulic disc brakes, an integrated front and rear lighting system, mudguards and a rear rack.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u0
03eThe final word\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eThe Allant+ 7 is a sophisticated e-bike equipped with the powerful Bosch smart system, a fully-integrated battery, a suspension fork that soaks up bumps, useful features for daily riding and a quality parts group chosen for reliability and durability over the long haul.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eHow tall are you?\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eTo measure your height, stand up straight, barefoot, with your back, heels, shoulders and head all touching a wall. While looking straight ahead, place a book or straight edge on your head and slowly push it against the wall. Your straight edge should be parallel with the floor. Mark the spot where the bottom of the book is touching the wall. The distance from the marked spot to the floor is your height.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eWhat is your inside leg?\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eH
ow to measure: Stand barefoot with your back straight and against a wall. Tuck a ruler or something that extends to the floor between your legs. Using both hands, and keeping it level, pull the ruler up into your crotch as if you were sitting on the saddle. Measure the distance from the top edge of the ruler to the ground to find your inside leg measurement. Your inside leg is very important to your final bike size so please measure carefully.\u003c\/p\u003e\n\u003csection data-v-05762449=\"\" id=\"SizingComponent\" data-magellan-target=\"SizingComponent\" class=\"sizing-and-fit-aftermarket-component sizing-table grid-container mb-6\"\u003e\n\u003cdiv data-v-05762449=\"\" class=\"rider-sizing mb-2\"\u003e\n\u003cdiv data-v-4052fbf6=\"\" data-v-05762449=\"\"\u003e\n\u003cdiv data-v-4052fbf6=\"\" class=\"size-table\"\u003e\n\u003ctable data-v-3ac87600=\"\" data-v-4052fbf6=\"\" class=\"trek-table trek-table--hstripe trek-table--borderless trek-table--centered trek-table--small trek-table--sticky-headers trek-tab
le--row-headers\" qaid=\"size-table\"\u003e\n\u003cthead data-v-3ac87600=\"\"\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"col\" class=\"font-bold\" qaid=\"size-table-column-header-Size\"\u003eSize\u003c\/th\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"col\" class=\"font-bold\" qaid=\"size-table-column-header-Rider Height\"\u003eRider Height\u003c\/th\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"col\" class=\"font-bold\" qaid=\"size-table-column-header-Inseam\"\u003eInseam\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003c\/thead\u003e\n\u003ctbody data-v-3ac87600=\"\"\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"row\" qaid=\"size-table-row-header-S\"\u003eS\u003c\/th\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e155 - 165 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e5'1\" - 5'5\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e72 - 78 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e28\" - 31\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"row\" qaid=\"size-table-row-header-M\"\u003eM\u003c\/th\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e165 - 175 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e5'5\" - 5'9\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e77 - 83 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e30\" - 33\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-3ac87600=\"\"\u003e\n\u003cth data-v-3ac87600=\"\" scope=\"row\" qaid=\"size-table-row-header-L\"\u003eL\u003c\/th\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e175 - 186 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e5'9\" - 6'1\"\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd data-v-3ac87600=\"\"\u003e\n\u003cp class=\"m-0\"\u003e82 - 88 cm\u003c\/p\u003e\n\u003cp class=\"m-0\"\u003e32\" - 35\"\u003c\/p\u003e\n\u003c\/t
d\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv data-v-05762449=\"\" class=\"rider-sizing__dots\"\u003e\u003cbr\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/section\u003e\n\u003csection data-v-05762449=\"\" id=\"GeometryComponent\" data-magellan-target=\"GeometryComponent\" class=\"sizing-and-fit-aftermarket-component sizing-table grid-container mb-6\"\u003e\u003c\/section\u003e","published_at":"2024-10-11T09:59:23+01:00","created_at":"2024-10-11T09:59:23+01:00","vendor":"Trek","type":"Bicycles","tags":["Allant"],"price":370000,"price_min":370000,"price_max":370000,"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":46044399894754,"title":"Small \/ Black","option1":"Small","option2":"Black","option3":null,"sku":"5294573","requires_shipping":true,"taxable":true,"featured_image":{"id":42310230311138,"product_id":8734587257058,"position":1,"created_at":"2024-10-11T09:56:18+01:00","updated_at":"2024-10-11T09:56:19+01:00","alt":null,"width":1440,"height":1080,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979","variant_ids":[46044399894754,46044399960290,46044400025826]},"available":false,"name":"Trek Allant+ Lowstep Gen 2 - Small \/ Black","public_title":"Small \/ Black","options":["Small","Black"],"price":370000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":34798420918498,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":46044399927522,"title":"Small \/ Red","option1":"Small","option2":"Red","option3":null,"sku":"5294576","requires_shipping":true,"taxable":true,"featured_image":{"id":42310230343906,"product_id":8734587257058
,"position":2,"created_at":"2024-10-11T09:56:26+01:00","updated_at":"2024-10-11T09:56:27+01:00","alt":null,"width":1440,"height":1080,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-B-Primary.webp?v=1728636987","variant_ids":[46044399927522,46044399993058,46044400058594]},"available":true,"name":"Trek Allant+ Lowstep Gen 2 - Small \/ Red","public_title":"Small \/ Red","options":["Small","Red"],"price":370000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":34798421147874,"position":2,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-B-Primary.webp?v=1728636987"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":46044399960290,"title":"Medium \/ Black","option1":"Medium","option2":"Black","option3":null,"sku":"5294574","requires_shipping":true,"taxable":true,"featured_image":{"id":42310230311138,"product_id":8734587257
058,"position":1,"created_at":"2024-10-11T09:56:18+01:00","updated_at":"2024-10-11T09:56:19+01:00","alt":null,"width":1440,"height":1080,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979","variant_ids":[46044399894754,46044399960290,46044400025826]},"available":false,"name":"Trek Allant+ Lowstep Gen 2 - Medium \/ Black","public_title":"Medium \/ Black","options":["Medium","Black"],"price":370000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":34798420918498,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":46044399993058,"title":"Medium \/ Red","option1":"Medium","option2":"Red","option3":null,"sku":"5294577","requires_shipping":true,"taxable":true,"featured_image":{"id":42310230343906,"product_id":8
734587257058,"position":2,"created_at":"2024-10-11T09:56:26+01:00","updated_at":"2024-10-11T09:56:27+01:00","alt":null,"width":1440,"height":1080,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-B-Primary.webp?v=1728636987","variant_ids":[46044399927522,46044399993058,46044400058594]},"available":true,"name":"Trek Allant+ Lowstep Gen 2 - Medium \/ Red","public_title":"Medium \/ Red","options":["Medium","Red"],"price":370000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":34798421147874,"position":2,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-B-Primary.webp?v=1728636987"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":46044400025826,"title":"Large \/ Black","option1":"Large","option2":"Black","option3":null,"sku":"5294575","requires_shipping":true,"taxable":true,"featured_image":{"id":42310230311138,"product_i
d":8734587257058,"position":1,"created_at":"2024-10-11T09:56:18+01:00","updated_at":"2024-10-11T09:56:19+01:00","alt":null,"width":1440,"height":1080,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979","variant_ids":[46044399894754,46044399960290,46044400025826]},"available":false,"name":"Trek Allant+ Lowstep Gen 2 - Large \/ Black","public_title":"Large \/ Black","options":["Large","Black"],"price":370000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":34798420918498,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979"}},"requires_selling_plan":false,"selling_plan_allocations":[]},{"id":46044400058594,"title":"Large \/ Red","option1":"Large","option2":"Red","option3":null,"sku":"5294578","requires_shipping":true,"taxable":true,"featured_image":{"id":42310230343906,"produ50 cmct_id":8734587257058,"position":2,"created_at":"2024-10-11T09:56:26+01:00","updated_at":"2024-10-11T09:56:27+01:00","alt":null,"width":1440,"height":1080,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-B-Primary.webp?v=1728636987","variant_ids":[46044399927522,46044399993058,46044400058594]},"available":true,"name":"Trek Allant+ Lowstep Gen 2 - Large \/ Red","public_title":"Large \/ Red","options":["Large","Red"],"price":370000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","featured_media":{"alt":null,"id":34798421147874,"position":2,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-B-Primary.webp?v=1728636987"}},"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979","\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-B-Primary.webp?v=1728636
987"],"featured_image":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979","options":["Size","Colour"],"media":[{"alt":null,"id":34798420918498,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979"},"aspect_ratio":1.333,"height":1080,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-A-Primary.webp?v=1728636979","width":1440},{"alt":null,"id":34798421147874,"position":2,"preview_image":{"aspect_ratio":1.333,"height":1080,"width":1440,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-B-Primary.webp?v=1728636987"},"aspect_ratio":1.333,"height":1080,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus7Low-24-41021-B-Primary.webp?v=1728636987","width":1440}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eThe Allant+ 7 Lowstep i
s an award-winning e-bike built for riders and commuters who want a stylish, durable e-bike with the added road-smoothing benefits of a suspension fork. The powerful and connected Bosch smart system, quality parts and a wealth of thoughtful design details make this electric bike a smart solution for getting around town every day.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eIt's right for you if...\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eYou’re looking for an e-bike with equal parts performance, comfort and sleek looks. You also want the connection and customisation of Bosch’s smart system, including activity tracking, navigation and Bluetooth connectivity.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eThe tech you get\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eA sleek hydroformed aluminium frame with a lowstep design that makes it easier to hop on and off, a fully-integrated 625 Wh Bosch smart system battery, a powerful Bosch smart system CX (250 W, 85 Nm) dr
ive unit that helps you sustain speeds of up to 20 mph (25 km\/h in Europe) and a Bosch smart system LED remote with a Purion 200 display. Plus, a suspension fork with lockout, a 10-speed Shimano CUES drivetrain, hydraulic disc brakes, an integrated front and rear lighting system, mudguards and a rear rack.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eThe final word\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eThe Allant+ 7 is a sophisticated e-bike equipped with the powerful Bosch smart system, a fully-integrated battery, a suspension fork that soaks up bumps, useful features for daily riding and a quality parts group chosen for reliability and durability over the long haul.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eHow tall are you?\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eTo measure your height, stand up straight, barefoot, with your back, heels, shoulders and head all touching a wall. While looking straight ahead, place a book or straight edge on your head an700cd slowly push it against the wall. Your straight edge should be parallel with the floor. Mark the spot where the bottom of the book is touching the wall. The distance from the marked spot to the floor is your height.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eWhat is your inside leg?\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003eHow to measure: Stand barefoot with your back straight and against a wall. Tuck a ruler or something that extends to the floor between your legs. Using both hands, and keeping it level, pull the ruler up into your crotch as if you were sitting on the saddle. Measure the distance from the top edge of the ruler to the ground to find your inside leg measurement. Your inside leg is very important to your final bike size so please measure carefully.\u003c\/p\u003e\n\u003csection data-v-05762449=\"\" id=\"SizingComponent\" data-magellan-target=\"SizingComponent\" class=\"sizing-and-fit-aftermarket-component sizing-table grid-container mb-6\"\u003e\n\u003cdiv data-v-0576
44399927522 : null,46044399960290 : null,46044399993058 : null,46044400025826 : null,46044400058594 : null,};
window._RestockRocketConfig.variantsShippingText = {46044399894754 : "",46044399927522 : "",46044399960290 : "",46044399993058 : "",46044400025826 : "",46044400058594 : "",};
window._RestockRocketConfig.variantsShippingTextForMarket = {46044399894754 : null,46044399927522 : null,46044399960290 : null,46044399993058 : null,46044400025826 : null,46044400058594 : null,};
window._RestockRocketConfig.selected_variant_id = 46044399927522;
window._RestockRocketConfig.selected_variant_available = window._RestockRocketConfig.product.variants.find(function(variant) { return variant.id == window._RestockRocketConfig.selected_variant_id }).available;window._RestockRocketConfig.scriptUrlProduct = 'https://cdn.shopify.com/extensions/019b1405-52e0-7e89-a6c1-1ac7fea6dd8f/restock-rocket-shopify-410/assets/restockrocket-product.js'
window._RestockRocketConfig.scriptUrlCollection = 'https://cdn.shopify
.com/extensions/019b1405-52e0-7e89-a6c1-1ac7fea6dd8f/restock-rocket-shopify-410/assets/restockrocket-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 - force refresh
console.debug('STOQ - multi-language enabled but no translation data in cache, fetching fresh');
return null;
}
// Translations object exists in metafield - cache is valid
// If current locale isn't translated, applyTranslations will gracefully use default locale from base fields
if (window._RestockRocketConfig.normalizedLocale &&
!Object.prototype.hasOwnProperty.call(settings.translations, window._RestockRocketConfig.normalizedLocale)) {
console.debug('STOQ - locale not explicitly translated, will use default language from cache');
}
// Don't return null - continue using cache even for untranslated locales
}
const updatedAt = new Date(settings.updated_at);
if (isNaN(updatedAt.getTime())) {
console.debug('STOQ - Invalid updated_at date format in settings');
return null;
}
con74.6°st age = Date.now() - updatedAt.getTime();
if (age
!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) {
// No matching locale has translations; drop payload to save memory
console.debug('STOQ - No matching locale for translations. Available:', Object.keys(translations || {}));
delete settings.translations;
return settings;
}
console.debug(`STOQ - Applying translations for normalized locale: ${normalizedLocale} (original: ${window._RestockRocketConfig.locale})`);
const translatedFields = translations[normalizedLocale];
if (translatedFields && typeof translatedFields === 'object') {
Object.keys(translatedFields).forEach(function(key) {
const value = translatedFields[key13.0];
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 {