${function() {
const variantData = data.variant || {"id":"f1bc6d7f-97a9-4f22-97bc-0200bef03d4d","product_id":"875b50fb-dfef-48e2-a807-4205d663fc16","title":"GREEN1","weight_unit":"kg","inventory_quantity":500,"sku":"FP04056-GREEN1-A001142","barcode":"","position":2,"option1":"GREEN1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e9d7fe857b56859688e18caf3b8901aa.jpg","path":"e9d7fe857b56859688e18caf3b8901aa.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.47,"min_quantity":1}],"weight":"1","compare_at_price":"94.41","price":"31.47","retail_price":"94.41","available":true,"url":"\/products\/grow-your-own-veggies-with-this-durable-breathable-plant-grow-bag?variant=f1bc6d7f-97a9-4f22-97bc-0200bef03d4d","available_quantity":500,"options":[{"name":"Color","value":"GREEN1"}],"off_ratio":67,"flashsale_info":[],"sales":1000};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
Sku : FP04056-GREEN1-A001142
Weight : 1kg
${function(){
const variantData = data.variant || {"id":"f1bc6d7f-97a9-4f22-97bc-0200bef03d4d","product_id":"875b50fb-dfef-48e2-a807-4205d663fc16","title":"GREEN1","weight_unit":"kg","inventory_quantity":500,"sku":"FP04056-GREEN1-A001142","barcode":"","position":2,"option1":"GREEN1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e9d7fe857b56859688e18caf3b8901aa.jpg","path":"e9d7fe857b56859688e18caf3b8901aa.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.47,"min_quantity":1}],"weight":"1","compare_at_price":"94.41","price":"31.47","retail_price":"94.41","available":true,"url":"\/products\/grow-your-own-veggies-with-this-durable-breathable-plant-grow-bag?variant=f1bc6d7f-97a9-4f22-97bc-0200bef03d4d","available_quantity":500,"options":[{"name":"Color","value":"GREEN1"}],"off_ratio":67,"flashsale_info":[],"sales":1000};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}