PLUS LOFTS Water Bottle Chest Bag Outdoor Sports Chest Bag
${function() {
const variantData = data.variant || {"id":"207b2232-9630-4733-8997-a239f80e2307","product_id":"1ad34bb5-6fe0-4379-a813-454ec21ca58e","title":"1 Style","weight_unit":"g","inventory_quantity":934,"sku":"","barcode":"","position":1,"option1":"1 Style","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ea525665e081e654a1ca92e8193493b6.png","path":"ea525665e081e654a1ca92e8193493b6.png","width":212,"height":323,"alt":"","aspect_ratio":0.6563467492260062},"wholesale_price":[{"price":21,"min_quantity":1}],"weight":"450","compare_at_price":"32.3","price":"21","retail_price":"32.3","available":true,"url":"\/products\/plus-lofts-water-bottle-chest-bag-outdoor-sports-chest-bag-e9qq?variant=207b2232-9630-4733-8997-a239f80e2307","available_quantity":999999999,"options":[{"name":"style","value":"1 Style"}],"off_ratio":35,"flashsale_info":[],"sales":696};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
1 Style
${function(){
const optName = "style";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$21.00
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"207b2232-9630-4733-8997-a239f80e2307","product_id":"1ad34bb5-6fe0-4379-a813-454ec21ca58e","title":"1 Style","weight_unit":"g","inventory_quantity":934,"sku":"","barcode":"","position":1,"option1":"1 Style","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ea525665e081e654a1ca92e8193493b6.png","path":"ea525665e081e654a1ca92e8193493b6.png","width":212,"height":323,"alt":"","aspect_ratio":0.6563467492260062},"wholesale_price":[{"price":21,"min_quantity":1}],"weight":"450","compare_at_price":"32.3","price":"21","retail_price":"32.3","available":true,"url":"\/products\/plus-lofts-water-bottle-chest-bag-outdoor-sports-chest-bag-e9qq?variant=207b2232-9630-4733-8997-a239f80e2307","available_quantity":999999999,"options":[{"name":"style","value":"1 Style"}],"off_ratio":35,"flashsale_info":[],"sales":696};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.