${function() {
const variantData = data.variant || {"id":"0a00dc5d-21d6-4bef-849e-37d59a40ec1a","product_id":"17150a9f-c063-40c4-a934-05be0616b850","title":"Buy 1","weight_unit":"kg","inventory_quantity":1000,"sku":"A-1PCS","barcode":"","position":1,"option1":"Buy 1","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"29.99","retail_price":"49.99","available":true,"url":"\/products\/ten-thousand-people-hoarding-hundred-years-old-red-pine-nuts?variant=0a00dc5d-21d6-4bef-849e-37d59a40ec1a","available_quantity":999999999,"options":[{"name":"more buy more save","value":"Buy 1"}],"off_ratio":40,"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":"0a00dc5d-21d6-4bef-849e-37d59a40ec1a","product_id":"17150a9f-c063-40c4-a934-05be0616b850","title":"Buy 1","weight_unit":"kg","inventory_quantity":1000,"sku":"A-1PCS","barcode":"","position":1,"option1":"Buy 1","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"29.99","retail_price":"49.99","available":true,"url":"\/products\/ten-thousand-people-hoarding-hundred-years-old-red-pine-nuts?variant=0a00dc5d-21d6-4bef-849e-37d59a40ec1a","available_quantity":999999999,"options":[{"name":"more buy more save","value":"Buy 1"}],"off_ratio":40,"flashsale_info":[],"sales":0};
return `
Barcode : ${variantData && variantData.barcode}
`
}()}