Shimano MT401 / MT420 hydraulic disc, 180 mm rotor
*Brake rotor
Size:WeightM, L, XLL - 24.60 kg / 54.24 lbs (with 545Wh battery) Shimano RT30, CentreLock, 203 mm
Weight limit
Size:This bike has a maximum total weight limit (combined weight of bicycle, rider and cargo) of 136 kg (300 lb).M, L, XL
Shimano EM300, CentreLock, 180 mm
Rotor size
Max brake rotor sizes: 180 mm front and rear
We reserve the right to make changes to the product information contained on this site at any time without notice, including with respect to equipment, specifications, models, colours, materials and pricing. Due to supply chain issues, compatible parts may be substituted at any time without notice. The prices shown are the manufacturer's suggested retail prices.
Bike and frame weights are based on pre-production painted frames at time of publication. Weights may vary in final production.
[]
Accessories
{"@context":"http:\/\/schema.org\/","@id":"\/products\/trek-allant-5#product","@type":"ProductGroup","brand":{"@type":"Brand","name":"Trek"},"category":"Electric Bikes","description":"The Allant+ 5 is the ultimate electric city bike for riders looking to accelerate their commute. The Bosch smart system offers more connectivity than ever before, so your smart phone can communicate with your bike to log distances and plan routes. It's available with your choice of battery size, ranging from 400- to 800-watt hours, so you can take control of your commute and cruise comfortably all the whole way home\n\n*Please note – spec applies to all sizes unless listed separately\n\n\nFrameset\n\n\n\n\n\n\n\nFrame\nHigh-performance hydroformed alloy, internal cable routing, external battery mount, post-mount disc, 135x5 mm QR\n\n\nFork\nSR Suntour NVX30, coil spring, preload adjuster, 100 mm QR, 60 mm travel\n\n\n\n\n\n\n\n\nWheels\n\n\n\n\n\n\n\nHub front\nShimano Tourney HB-QC300, centerlock\n\n\nHub rear\nShimano FH-QC300-HM, 32-hole, CentreLock, 8-\/9-\/10-\/11-speed, 135x5 mm QR\n\n\nRim\nBontrager Connection, double-wall, 32-hole, 20 mm width, Presta valve\n\n\nTyre\nBontrager E6 Hard-Case Lite, reflective strip, 27.5x2.40\"\n\n\n\n\n\n\n\n\nE-system\n\n\n\n\n\n\n\nCharger\nBosch standard 2A, 230V, smart system\n\n\nComputer\nBosch Purion 200\n\n\nMotor\nBosch Performance Line CX, 20 mph (25 km\/h in Europe)\n\n\n\n\n\n\n\n\nDrivetrain\n\n\n\n\n\n\n\nShifter\nShimano U4000, 9-speed\n\n\nRear derailleur\nShimano CUES U4000\n\n\n*Crank\n\nSize: MProWheel alloy, 170 mm length\n\n\n\n\nSize: L, XLProWheel alloy, 175 mm length\n\n\n\nChainring\nProWheel 40T narrow\/wide steel, w\/alloy guard\n\n\nCassette\nShimano LINKGLIDE LG300, 11-46, 9-speed\n\n\nChain\nShimano LG500, 9\/10\/11-speed\n\n\nPedal\nslip-proof pedals with reflectors\n\n\n\n\n\n\n\n\nComponents\n\n\n\n\n\n\n\nSaddle\nSelle Royal Vivo Moderate Ergo\n\n\n*Seatpost\n\nSize: MBontrager alloy, 31.6 mm, 12 mm offset, 330 mm length\n\n\n\nSize: L, XLBontrager alloy, 31.6 mm, 12 mm offset, 400 mm length\n\n\nHandlebar\nAlloy lowriser, 31.8 mm, 25 mm rise, 11-degree backsweep, 690 mm width\n\n\nGrips\nHerrmans Clik, ergonomic, lock-on\n\n\n*Stem\n\nSize: MBontrager Comp, 31.8 mm, Blendr compatible, 7-degree, 80 mm length\n\n\n\n\nSize: LBontrager Comp, 31.8 mm, Blendr compatible, 7-degree, 90 mm length\n\n\n\n\nSize: XLBontrager Comp, 31.8 mm, Blendr compatible, 7-degree, 100 mm length\n\n\n\nBrake\nShimano MT200 hydraulic disc\n\n\n*Brake rotor\n\nSize: M, L, XLShimano RT30, CentreLock, 180 mm\n\n\n\nSize: M, L, XLShimano EM300, CentreLock, 180 mm\n\n\n\n\n\n\n\n\nAccessories\n\n\n\n\n\n\n\n*Light\n\nSize: M, L, XLSpanninga SOLO for e-bike\n\n\n\n\nSize: M, L, XLHerrmans H-Black MR5-E, 140 Lumen, 40 Lux, LED, headlight\n\n\nKickstand\nPletscher Comp Flex 18\n\n\nCargo rack\nMIK-compatible alloy rear rack, maximum load 25 kg\n\n\n*Mudguard\n\nSize: M, L, XLSKS plastic, rear\n\n\n\n\nSize: M, L, XLSKS plastic, front1\n\n\n\n\n\n\n\n\n\nWeight\n\n\n\n\n\n\n\nWeight\nL - 24.60 kg \/ 54.24 lbs (with 545Wh battery)\n\n\nWeight limit\nThis bike has a maximum total weight limit (combined weight of bicycle, rider and cargo) of 136 kg (300 lb).\n\n\n\n\n\n\n\n\nWe reserve the right to make changes to the product information contained on this site at any time without notice, including with respect to equipment, specifications, models, colours, materials and pricing. Due to supply chain issues, compatible parts may be substituted at any time without notice. The prices shown are the manufacturer's suggested retail prices.\n\n\nBike and frame weights are based on pre-production painted frames at time of publication. Weights may vary in final production.\n\n","hasVariant":[{"@id":"\/products\/trek-allant-5?variant=45824374767842#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Black \/ Medium \/ 545WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824374767842#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3225.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824374767842"},"sku":"5313824"},{"@id":"\/products\/trek-allant-5?variant=45824374800610#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Black \/ Medium \/ 725WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824374800610#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3475.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824374800610"},"sku":"5313825"},{"@id":"\/products\/trek-allant-5?variant=45824374833378#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Black \/ Medium \/ 800WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824374833378#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3600.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824374833378"},"sku":"5313826"},{"@id":"\/products\/trek-allant-5?variant=45824374866146#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Black \/ Large \/ 545WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824374866146#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3000.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824374866146"},"sku":"5313827"},{"@id":"\/products\/trek-allant-5?variant=45824374898914#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Black \/ Large \/ 725WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824374898914#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3225.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824374898914"},"sku":"5313828"},{"@id":"\/products\/trek-allant-5?variant=45824374931682#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Black \/ Large \/ 800WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824374931682#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3475.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824374931682"},"sku":"5313829"},{"@id":"\/products\/trek-allant-5?variant=45824374964450#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Black \/ Extra Large \/ 545WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824374964450#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3600.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824374964450"},"sku":"5313830"},{"@id":"\/products\/trek-allant-5?variant=45824374997218#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Black \/ Extra Large \/ 725WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824374997218#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3000.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824374997218"},"sku":"5313831"},{"@id":"\/products\/trek-allant-5?variant=45824375029986#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Black \/ Extra Large \/ 800WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824375029986#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3225.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824375029986"},"sku":"5313832"},{"@id":"\/products\/trek-allant-5?variant=45824375062754#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Red \/ Medium \/ 545WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824375062754#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3475.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824375062754"},"sku":"5313833"},{"@id":"\/products\/trek-allant-5?variant=45824375095522#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Red \/ Medium \/ 725WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824375095522#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3600.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824375095522"},"sku":"5313834"},{"@id":"\/products\/trek-allant-5?variant=45824375128290#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Red \/ Medium \/ 800WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824375128290#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3000.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824375128290"},"sku":"5313835"},{"@id":"\/products\/trek-allant-5?variant=45824375161058#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Red \/ Large \/ 545WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824375161058#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3225.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824375161058"},"sku":"5313836"},{"@id":"\/products\/trek-allant-5?variant=45824375193826#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Red \/ Large \/ 725WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824375193826#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3475.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824375193826"},"sku":"5313837"},{"@id":"\/products\/trek-allant-5?variant=45824375226594#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Red \/ Large \/ 800WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824375226594#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3600.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824375226594"},"sku":"5313838"},{"@id":"\/products\/trek-allant-5?variant=45824375259362#variant","@type":"Product","image":"https:\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168\u0026width=1920","name":"Trek Allant+ 5 - Red \/ Extra Large \/ 545WH","offers":{"@id":"\/products\/trek-allant-5?variant=45824375259362#offer","@type":"Offer","availability":"http:\/\/schema.org\/InStock","price":"3000.00","priceCurrency":"GBP","url":"https:\/\/projektride.co.uk\/products\/trek-allant-5?variant=45824375259362"},"sku":"5313839"},{"@id":"\/products\/trek-allant-5?va
Buy, sell and ride in confidence on ProjektRide’s premium bikes
Quick Links
Weight limit
This bike has a maximum total weight limit (combined weight of bicycle, rider and cargo) of 136 kg (300 lb).
About Us
Contact Us
Refund policy
Service
Please get in touch with a member of the team either by phone (
01313745324
) or email (Servicing[email protected]
) where on of the team will be more than happy to help.
ProjektRide Bike Shop EdinburghBook a Service
Workshop Prices
Cycle to Work
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.
We also have a physical store, if you are local please pop in -Delivery & Returns
You May Also Like
await import("//projektride.co.uk/cdn/shopifycloud/shop-js/modules/v2/loader.shop-follow-button.en.esm.js");
Recently viewed
Country
GBP£
Åland Islands (EUR€)
Albania (ALLL)
Algeria (DZDد.ج)
Andorra (EUR€)
ata-v-05762449=\"\" data-v-5bd42f3c=\"\"\u003e\n\u003cdiv aria-expanded=\"true\" class=\"\" aria-describedby=\"pdl-collapse-content-6aalu\" aria-controls=\"pdl-collapse-content-6aalu\" role=\"tab\" data-v-5bd42f3c=\"\" qaid=\"\"\u003e\n\u003cdiv class=\"flex items-center flex-grow\" data-v-5bd42f3c=\"\"\u003eAccessories\u003c\/div\u003e\n\u003cbutton class=\"pdl-collapse-item__header is-active flex-row-reverse items-center\" type=\"button\" id=\"pdl-collapse-head-6aalu\" data-v-5bd42f3c=\"\" tabindex=\"0\"\u003e\u003csvg class=\"pdl-collapse-item__icon pdl-icon pdl-icon--size-24 is-active\" role=\"presentation\" aria-hidden=\"true\" fill=\"currentcolor\" height=\"24px\" width=\"24px\" viewbox=\"0 0 24 24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" data-v-5bd42f3c=\"\" data-v-1e7396ba=\"\" qaid=\"\"\u003e\u003cpath fill=\"none\" d=\"M0 0h24v24H0z\"\u003e\u003c\/path\u003e\u003cpath d=\"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\n\u003c\/div\u003
e\n\u003cdiv data-old-overflow=\"\" data-old-padding-bottom=\"\" data-old-padding-top=\"\" class=\"pdl-collapse-item__wrap\" aria-labelledby=\"pdl-collapse-head-6aalu\" role=\"tabpanel\" id=\"pdl-collapse-content-6aalu\" data-v-5bd42f3c=\"\"\u003e\n\u003cdiv class=\"pdl-collapse-item__content\" data-v-5bd42f3c=\"\"\u003e\n\u003ctable class=\"sprocket__table spec\" aria-label=\"Specifications\" data-v-05762449=\"\"\u003e\n\u003ctbody data-v-05762449=\"\"\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth scope=\"row\" rowspan=\"2\" data-v-05762449=\"\"\u003e*Light\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003e\n\u003cspan data-v-05762449=\"\"\u003eSize:\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003eM, L, XL\u003cbr data-v-05762449=\"\"\u003e\u003ca href=\"https:\/\/www.trekbikes.com\/gb\/en_GB\/p\/W504513\" data-v-05762449=\"\"\u003eSpanninga SOLO for e-bike\u003c\/a\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003ctd data-v-05762449=\"\"\u003e\n\u003cspan data-v-05762449=\"\"\u003eSize:\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003eM, L, XL\u003cbr data-v-05762449=\"\"\u003eHerrmans H-Black MR5-E, 140 Lumen, 40 Lux, LED, headlight\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth scope=\"row\" rowspan=\"1\" data-v-05762449=\"\"\u003eKickstand\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003ePletscher Comp Flex 18\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth scope=\"row\" rowspan=\"1\" data-v-05762449=\"\"\u003eCargo rack\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003e\u003ca href=\"https:\/\/www.trekbikes.com\/gb\/en_GB\/p\/W5284844\" data-v-05762449=\"\"\u003eMIK-compatible alloy rear rack, maximum load 25 kg\u003c\/a\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth scope=\"row\" rowspan=\"2\" data-v-05762449=\"\"\u003e*Mudguard\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003e\n\u003cspan data-v-05762449=\"\"\u003eSize:\u003c\/span\u003e\u
003cspan\u003e \u003c\/span\u003eM, L, XL\u003cbr data-v-05762449=\"\"\u003e\u003ca href=\"https:\/\/www.trekbikes.com\/gb\/en_GB\/p\/W1043753\" data-v-05762449=\"\"\u003eSKS plastic, rear\u003c\/a\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003ctd data-v-05762449=\"\"\u003e\n\u003cspan data-v-05762449=\"\"\u003eSize:\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003eM, L, XL\u003cbr data-v-05762449=\"\"\u003e\u003ca href=\"https:\/\/www.trekbikes.com\/gb\/en_GB\/p\/W1051529\" data-v-05762449=\"\"\u003eSKS plastic, front1\u003c\/a\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pdl-collapse-item is-active\" name=\"268\" id=\"pdl-collapse-item-1033qn\" data-v-05762449=\"\" data-v-5bd42f3c=\"\"\u003e\n\u003cdiv aria-expanded=\"true\" class=\"\" aria-describedby=\"pdl-collapse-content-1033qn\" aria-controls=\"pdl-collapse-content-1033qn\" role=\"tab\" data-v-5bd42f3c=\"\" qaid=\"\"\u003e\n\u003cdiv class=\"flex items-center flex-grow\" data-v-5bd42f3c=\"\"\u003eWeight\u003c\/div\u003e\n\u003cbutton class=\"pdl-collapse-item__header is-active flex-row-reverse items-center\" type=\"button\" id=\"pdl-collapse-head-1033qn\" data-v-5bd42f3c=\"\" tabindex=\"0\"\u003e\u003csvg class=\"pdl-collapse-item__icon pdl-icon pdl-icon--size-24 is-active\" role=\"presentation\" aria-hidden=\"true\" fill=\"currentcolor\" height=\"24px\" width=\"24px\" viewbox=\"0 0 24 24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" data-v-5bd42f3c=\"\" data-v-1e7396ba=\"\" qaid=\"\"\u003e\u003cpath fill=\"none\" d=\"M0 0h24v24H0z\"\u003e\u003c\/path\u003e\u003cpath d=\"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\n\u003c\/div\u003e\n\u003cdiv data-old-overflow=\"\" data-old-padding-bottom=\"\" data-old-padding-top=\"\" class=\"pdl-collapse-item__wrap\" aria-labelledby=\"pdl-collapse-head-1033qn\" role=\"tabpanel\" id=\"pdl-collapse-conte
nt-1033qn\" data-v-5bd42f3c=\"\"\u003e\n\u003cdiv class=\"pdl-collapse-item__content\" data-v-5bd42f3c=\"\"\u003e\n\u003ctable class=\"sprocket__table spec\" aria-label=\"Specifications\" data-v-05762449=\"\"\u003e\n\u003ctbody data-v-05762449=\"\"\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth scope=\"row\" data-v-05762449=\"\"\u003eWeight\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003eL - 24.60 kg \/ 54.24 lbs (with 545Wh battery)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth scope=\"row\" data-v-05762449=\"\"\u003eWeight limit\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003eThis bike has a maximum total weight limit (combined weight of bicycle, rider and cargo) of 136 kg (300 lb).\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"mb-1\"\u003e\n\u003cp\u003eWe reserve the right to make changes to the product information contained on this site at any time without notice, including with respect to equipment, specifications, models, colours, materials and pricing. Due to supply chain issues, compatible parts may be substituted at any time without notice. The prices shown are the manufacturer's suggested retail prices.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"mb-1\"\u003e\n\u003cp\u003eBike and frame weights are based on pre-production painted frames at time of publication. Weights may vary in final production.\u003c\/p\u003e\n\u003c\/div\u003e\n\u003c!----\u003e","published_at":"2024-10-10T15:19:12+01:00","created_at":"2024-08-17T19:27:55+01:00","vendor":"Trek","type":"bike","tags":["Allant"],"price":300000,"price_min":300000,"price_max":360000,"available":true,"price_varies":true,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":45824374767842,"title":"Black \/ Medium \/ 545WH","option1":"Black","option2":"Medium","option3":"545WH","sku":"5313824","requires_shi
pping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Black \/ Medium \/ 545WH","public_title":"Black \/ Medium \/ 545WH","options":["Black","Medium","545WH"],"price":322500,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824374800610,"title":"Black \/ Medium \/ 725WH","option1":"Black","option2":"Medium","option3":"725WH","sku":"5313825","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Black \/ Medium \/ 725WH","public_title":"Black \/ Medium \/ 725WH","options":["Black","Medium","725WH"],"price":347500,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824374833378,"title":"Black \/ Medium \/ 800WH","option1":"Black","option2":"Medium","option3":"800WH","sku":"5313826","requires_shipping":true,"taxable":true,"featured_i
mage":null,"available":true,"name":"Trek Allant+ 5 - Black \/ Medium \/ 800WH","public_title":"Black \/ Medium \/ 800WH","options":["Black","Medium","800WH"],"price":360000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824374866146,"title":"Black \/ Large \/ 545WH","option1":"Black","option2":"Large","option3":"545WH","sku":"5313827","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Black \/ Large \/ 545WH","public_title":"Black \/ Large \/ 545WH","options":["Black","Large","545WH"],"price":300000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824374898914,"title":"Black \/ Large \/ 725WH","option1":"Black","option2":"Large","option3":"725WH","sku":"5313828","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Alla
nt+ 5 - Black \/ Large \/ 725WH","public_title":"Black \/ Large \/ 725WH","options":["Black","Large","725WH"],"price":322500,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824374931682,"title":"Black \/ Large \/ 800WH","option1":"Black","option2":"Large","option3":"800WH","sku":"5313829","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Black \/ Large \/ 800WH","public_title":"Black \/ Large \/ 800WH","options":["Black","Large","800WH"],"price":347500,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824374964450,"title":"Black \/ Extra Large \/ 545WH","option1":"Black","option2":"Extra Large","option3":"545WH","sku":"5313830","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Black \/ Extra Large \/ 545WH","public_title":"Black \/ Extra Large \/ 545WH","options":["Black","Extra Large","545WH"],"price":360000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824374997218,"title":"Black \/ Extra Large \/ 725WH","option1":"Black","option2":"Extra Large","option3":"725WH","sku":"5313831","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Black \/ Extra Large \/ 725WH","public_title":"Black \/ Extra Large \/ 725WH","options":["Black","Extra Large","725WH"],"price":300000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375029986,"title":"Black \/ Extra Large \/ 800WH","option1":"Black","option2":"Extra Large","option3":"800WH","sku":"5313832","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Black \/ Extra L
arge \/ 800WH","public_title":"Black \/ Extra Large \/ 800WH","options":["Black","Extra Large","800WH"],"price":322500,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375062754,"title":"Red \/ Medium \/ 545WH","option1":"Red","option2":"Medium","option3":"545WH","sku":"5313833","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Red \/ Medium \/ 545WH","public_title":"Red \/ Medium \/ 545WH","options":["Red","Medium","545WH"],"price":347500,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375095522,"title":"Red \/ Medium \/ 725WH","option1":"Red","option2":"Medium","option3":"725WH","sku":"5313834","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Red \/ Medium \/ 725WH","public_title":"Red \/ Medium
\/ 725WH","options":["Red","Medium","725WH"],"price":360000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375128290,"title":"Red \/ Medium \/ 800WH","option1":"Red","option2":"Medium","option3":"800WH","sku":"5313835","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Red \/ Medium \/ 800WH","public_title":"Red \/ Medium \/ 800WH","options":["Red","Medium","800WH"],"price":300000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375161058,"title":"Red \/ Large \/ 545WH","option1":"Red","option2":"Large","option3":"545WH","sku":"5313836","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Red \/ Large \/ 545WH","public_title":"Red \/ Large \/ 545WH","options":["Red","Large","545WH"],"price":322500,"w
eight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375193826,"title":"Red \/ Large \/ 725WH","option1":"Red","option2":"Large","option3":"725WH","sku":"5313837","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Red \/ Large \/ 725WH","public_title":"Red \/ Large \/ 725WH","options":["Red","Large","725WH"],"price":347500,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375226594,"title":"Red \/ Large \/ 800WH","option1":"Red","option2":"Large","option3":"800WH","sku":"5313838","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Red \/ Large \/ 800WH","public_title":"Red \/ Large \/ 800WH","options":["Red","Large","800WH"],"price":360000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375259362,"title":"Red \/ Extra Large \/ 545WH","option1":"Red","option2":"Extra Large","option3":"545WH","sku":"5313839","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Red \/ Extra Large \/ 545WH","public_title":"Red \/ Extra Large \/ 545WH","options":["Red","Extra Large","545WH"],"price":300000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375292130,"title":"Red \/ Extra Large \/ 725WH","option1":"Red","option2":"Extra Large","option3":"725WH","sku":"5313840","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Red \/ Extra Large \/ 725WH","public_title":"Red \/ Extra Large \/ 725WH","options":["Red","Extra Large","725WH"],"price":322500,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":
"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":45824375324898,"title":"Red \/ Extra Large \/ 800WH","option1":"Red","option2":"Extra Large","option3":"800WH","sku":"5313841","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Trek Allant+ 5 - Red \/ Extra Large \/ 800WH","public_title":"Red \/ Extra Large \/ 800WH","options":["Red","Extra Large","800WH"],"price":347500,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168","\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-B-Primary.webp?v=1723919176"],"featured_image":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168","options":["Color","Size","Battery"],"media":[{"alt":null,"id":34472210202850,"position":1,"preview_image":{"aspect_ratio":1.333,"height":1440,"width":1920,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168"},"aspect_ratio":1.333,"height":1440,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-A-Primary.webp?v=1723919168","width":1920},{"alt":null,"id":34472210301154,"position":2,"preview_image":{"aspect_ratio":1.333,"height":1440,"width":1920,"src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-B-Primary.webp?v=1723919176"},"aspect_ratio":1.333,"height":1440,"media_type":"image","src":"\/\/projektride.co.uk\/cdn\/shop\/files\/AllantPlus5Men-24-40482-B-Primary.webp?v=1723919176","width":1920}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cmeta charset=\"utf-8\"\u003e\u003cspan\u003eThe Allant+ 5 is the ultimate electric city bike for riders looking to accelerate their commute. The Bosch smart system offers more connectivity than ever before, so your smart phone can communicate with your bike to log
distances and plan routes. It's available with your choice of battery size, ranging from 400- to 800-watt hours, so you can take control of your commute and cruise comfortably all the whole way home\u003c\/span\u003e\u003c\/p\u003e\n\u003cdiv class=\"pdl-collapse pdp-spec-collapse\" aria-multiselectable=\"true\" role=\"tablist\" qaid=\"pdp-spec-collapse\"\u003e\n\u003cp\u003e*Please note – spec applies to all sizes unless listed separately\u003c\/p\u003e\n\u003cdiv class=\"pdl-collapse-item is-active\" name=\"250\" id=\"pdl-collapse-item-030q2b\" data-v-05762449=\"\" data-v-5bd42f3c=\"\"\u003e\n\u003cdiv aria-expanded=\"true\" class=\"\" aria-describedby=\"pdl-collapse-content-030q2b\" aria-controls=\"pdl-collapse-content-030q2b\" role=\"tab\" data-v-5bd42f3c=\"\" qaid=\"\"\u003e\n\u003cdiv class=\"flex items-center flex-grow\" data-v-5bd42f3c=\"\"\u003eFrameset\u003c\/div\u003e\n\u003cbutton class=\"pdl-collapse-item__header is-active flex-row-reverse items-center\" type=\"button\" id=\"pdl-collapse-head-030q2b\" data-v-5bd42f3c=\"\" tabindex=\"0\"\u003e\u003csvg class=\"pdl-collapse-item__icon pdl-icon pdl-icon--size-24 is-active\" role=\"presentation\" aria-hidden=\"true\" fill=\"currentcolor\" height=\"24px\" width=\"24px\" viewbox=\"0 0 24 24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" data-v-5bd42f3c=\"\" data-v-1e7396ba=\"\" qaid=\"\"\u003e\u003cpath fill=\"none\" d=\"M0 0h24v24H0z\"\u003e\u003c\/path\u003e\u003cpath d=\"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"\u003e\u003c\/path\u003e\u003c\/svg\u003e\u003c\/button\u003e\n\u003c\/div\u003e\n\u003cdiv data-old-overflow=\"\" data-old-padding-bottom=\"\" data-old-padding-top=\"\" class=\"pdl-collapse-item__wrap\" aria-labelledby=\"pdl-collapse-head-030q2b\" role=\"tabpanel\" id=\"pdl-collapse-content-030q2b\" data-v-5bd42f3c=\"\"\u003e\n\u003cdiv class=\"pdl-collapse-item__content\" data-v-5bd42f3c=\"\"\u003e\n\u003ctable class=\"sprocket__table spec\" aria-label=\"Specifications\" data-v-05762449=\"\"\u003e\n\u003ctbody data-v-05762449=\"\"\u003e\n
\u003ctr data-v-05762449=\"\"\u003e\n\u003cth scope=\"row\" rowspan=\"1\" data-v-05762449=\"\"\u003eFrame\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003eHigh-performance hydroformed alloy, internal cable routing, external battery mount, post-mount disc, 135x5 mm QR\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr data-v-05762449=\"\"\u003e\n\u003cth scope=\"row\" rowspan=\"1\" data-v-05762449=\"\"\u003eFork\u003c\/th\u003e\n\u003ctd data-v-05762449=\"\"\u003eSR Suntour NVX30, coil spring, preload adjuster, 100 mm QR, 60 mm travel\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003cdiv class=\"pdl-collapse-item is-active\" name=\"253\" id=\"pdl-collapse-item-waia5pa\" data-v-05762449=\"\" data-v-5bd42f3c=\"\"\u003e\n\u003cdiv aria-expanded=\"true\" class=\"\" aria-describedby=\"pdl-collapse-content-waia5pa\" aria-controls=\"pdl-collapse-content-waia5pa\" role=\"tab\" data-v-5bd42f3c=\"\" qaid=\"\"\u003e\n\u003cdiv class=\"f
0) {
console.debug(`STOQ - Client clock appears ahead of server by ${Math.abs(Math.round(liquidCacheAge / 60))} minutes, assuming cache fresh`);
window._RestockRocketConfig.isLiquidCacheFresh = true;
} else if (liquidCacheAge
<
= LIQUID_CACHE_MAX_AGE) {
console.debug(`STOQ - Liquid cache is fresh (${Math.round(liquidCacheAge / 60)} minutes old)`);
window._RestockRocketConfig.isLiquidCacheFresh = true;
} else {
console.debug(`STOQ - Liquid cache is stale (${Math.round(liquidCacheAge / 60)} minutes old, max ${Math.round(LIQUID_CACHE_MAX_AGE / 60)} minutes)`);
window._RestockRocketConfig.isLiquidCacheFresh = false;
}
}
function checkSettingsExpiry(settings) {
try {
if (!settings || !settings.updated_at) {
console.debug('STOQ - Invalid settings data structure');
return null;
}
if (!settings.cache) {
console.debug('STOQ - settings caching disabled');
return null;
}
// Check if translations are enabled but missing from cache
// This handles the backfill period where DB has translations but metafield doesn't
if (settings.multi_language_enabled) {
if (!settings.translations) {
// Translations enabled but no
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;
}
const
age = Date.now() - updatedAt.getTime();
if (age
< SETTINGS_CACHE_DURATION) {
console.debug('STOQ - settings changed recently, skipping cache');
return null;
}
return settings;
} catch (error) {
console.debug('STOQ - Error checking settings cache:', error);
return null;
}
}
function createRestockRocketContainer() {
const restockRocketContainer = document.createElement('div');
restockRocketContainer.id = 'restock-rocket';
document.body.appendChild(restockRocketContainer);
}
function createRestockRocketScript(scriptUrl) {
const restockRocketScriptElement = document.createElement('script');
restockRocketScriptElement.setAttribute('defer', 'defer');
restockRocketScriptElement.src = scriptUrl;
document.body.appendChild(restockRocketScriptElement);
}
createRestockRocketContainer()
console.debug('STOQ - extension activated')
function applyTranslations(settings) {
try {
// Skip translation logic entirely if multi-language is not enabled
if (!settings ||
!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[key
];
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;
}
}
// Setup event listener for cart selling plan updates
// This must be called before any scripts are loaded to avoid race conditions
function setupCartSellingPlanUpdater(settings) {
// Setup listener regardless - updateCartSellingPlans has its own guards
// This ensures cleanup happens even when preorders are disabled globally
// Listen for stoq:inventory-data-loaded event dispatched by api.js
window.addEventListener('stoq:inventory-data-loaded', function(event) {
console.debug('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);
});
}
});
}
// 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.S
hopify.shop,
'ngrok-skip-browser-warning': 'skip'
};
if (window.Shopify?.theme?.role === 'main') {
headers['X-Shopify-Theme-Schema-Name'] = window.Shopify.theme.schema_name;
headers['X-Shopify-Theme-Schema-Version'] = window.Shopify.theme.schema_version;
headers['X-Shopify-Theme-Store-Id'] = window.Shopify.theme.theme_store_id;
}
fetch(
`${window._RestockRocketConfig.host}/api/v1/setting.json?translation_locale=${window._RestockRocketConfig.normalizedLocale}`,
{ headers }
)
.then(function(response) {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.json();
})
.then(function(settings) {
initializeScripts(settings);
})
.catch(function(error) {
// If request failed and we have cached settings (even if expired), use them as fallback
if (cachedSettings) {
console.debug('STOQ - using expired cached settings as fallback');
initializeScripts(cac
hedSettings);
} 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}`);
// Setup cart selling plan updater BEFORE loading any scripts to avoid race conditions
setupCartSellingPlanUpdater(settings);
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._RestockRocketCon