null Skip to main content

bc-package-builder-banner2.jpg

 
 
 
 
 
\r\n\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
 
\r\n
\r\n
 
\r\n
Back
\r\n
 
\r\n
 
\r\n
 
\r\n
 
\r\n
 
\r\n
 
\r\n
 
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n
Add Package To Cart
\r\n
\"\"
\r\n
 
\r\n
","image":null,"subcategories":[]} const productsOnPage = category?.products; const products = []; for (let i = 0; i < productsOnPage.length; i++) { const product = { productId: productsOnPage[i].id.toString(), sku: productsOnPage[i].sku, quantity: productsOnPage[i].quantity, name: productsOnPage[i].name, price: productsOnPage[i].price.without_tax.value, brand: productsOnPage[i].brand?.name, position: i + 1, url: productsOnPage[i].url, imageUrl: productsOnPage[i].image.data.replace("{:size}", "200x200"), }; products.push(product); } return { products, id: category?.id?.toString(), name: category?.name }; } function setCartToken() { fetch("/api/storefront/cart").then(response => response.json()).then(data => { if(data) { const cart = data[0]; fueledClient.setFrontendStorage(window.fueledConfig['frontendStorageUrl'], cart.id); } }); } })();