Rechargeable waterproof high-quality chest bag
${function() {
const variantData = data.variant || {"id":"b0d7da9b-5eeb-4d46-aac3-d904e3937284","product_id":"b838ba0f-309c-4f01-92f2-e7b2e137d5fb","title":"Brown","weight_unit":"kg","inventory_quantity":999,"sku":"x-\u4f18\u8d28\u80f8\u5305-\u68d5\u8272-1","barcode":"","position":1,"option1":"Brown","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a67bfc86a7c22d5687ff9bef72a2fd38.jpeg","path":"a67bfc86a7c22d5687ff9bef72a2fd38.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.98","price":"35.99","retail_price":"69.98","available":true,"url":"\/products\/rechargeable-waterproof-high-quality-chest-bagc608bfd9-ad4d-4f86-84c5-90bcdb647b77?variant=b0d7da9b-5eeb-4d46-aac3-d904e3937284","available_quantity":999,"options":[{"name":"Style","value":"Brown"}],"off_ratio":49,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Style:
Brown
${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
$35.99
${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":"b0d7da9b-5eeb-4d46-aac3-d904e3937284","product_id":"b838ba0f-309c-4f01-92f2-e7b2e137d5fb","title":"Brown","weight_unit":"kg","inventory_quantity":999,"sku":"x-\u4f18\u8d28\u80f8\u5305-\u68d5\u8272-1","barcode":"","position":1,"option1":"Brown","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a67bfc86a7c22d5687ff9bef72a2fd38.jpeg","path":"a67bfc86a7c22d5687ff9bef72a2fd38.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.98","price":"35.99","retail_price":"69.98","available":true,"url":"\/products\/rechargeable-waterproof-high-quality-chest-bagc608bfd9-ad4d-4f86-84c5-90bcdb647b77?variant=b0d7da9b-5eeb-4d46-aac3-d904e3937284","available_quantity":999,"options":[{"name":"Style","value":"Brown"}],"off_ratio":49,"flashsale_info":[],"sales":1};
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.
${function(){
const variantData = data.variant || {"id":"b0d7da9b-5eeb-4d46-aac3-d904e3937284","product_id":"b838ba0f-309c-4f01-92f2-e7b2e137d5fb","title":"Brown","weight_unit":"kg","inventory_quantity":999,"sku":"x-\u4f18\u8d28\u80f8\u5305-\u68d5\u8272-1","barcode":"","position":1,"option1":"Brown","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a67bfc86a7c22d5687ff9bef72a2fd38.jpeg","path":"a67bfc86a7c22d5687ff9bef72a2fd38.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.98","price":"35.99","retail_price":"69.98","available":true,"url":"\/products\/rechargeable-waterproof-high-quality-chest-bagc608bfd9-ad4d-4f86-84c5-90bcdb647b77?variant=b0d7da9b-5eeb-4d46-aac3-d904e3937284","available_quantity":999,"options":[{"name":"Style","value":"Brown"}],"off_ratio":49,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}