${function() {
const variantData = data.variant || {"id":"196eaee7-cafd-4715-a083-518aa194d5d8","product_id":"fb23b6c9-5f00-48af-b2ee-c99e465b3404","title":"BUY 1","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"BUY 1","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":24.88,"min_quantity":1}],"weight":"0","compare_at_price":"48.78","price":"24.88","retail_price":"48.78","available":true,"url":"\/products\/ginseng-polypeptide-anti-ageing-essence-the-secret-of-youth?variant=196eaee7-cafd-4715-a083-518aa194d5d8","available_quantity":999999999,"options":[{"name":"SIZE","value":"BUY 1"}],"off_ratio":49,"flashsale_info":[],"sales":0};
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.
${function(){
const variantData = data.variant || {"id":"196eaee7-cafd-4715-a083-518aa194d5d8","product_id":"fb23b6c9-5f00-48af-b2ee-c99e465b3404","title":"BUY 1","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"BUY 1","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":24.88,"min_quantity":1}],"weight":"0","compare_at_price":"48.78","price":"24.88","retail_price":"48.78","available":true,"url":"\/products\/ginseng-polypeptide-anti-ageing-essence-the-secret-of-youth?variant=196eaee7-cafd-4715-a083-518aa194d5d8","available_quantity":999999999,"options":[{"name":"SIZE","value":"BUY 1"}],"off_ratio":49,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}