${function() {
const variantData = data.variant || {"id":"c0b7ede4-d2dc-4177-a13e-5275786ea049","product_id":"f50184f6-27e0-4961-9666-5ae454aa0b87","title":"MLCT ","weight_unit":"kg","inventory_quantity":4,"sku":"","barcode":"","position":1,"option1":"MLCT ","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"1000","compare_at_price":"20","price":"20","retail_price":"20","available":true,"url":"\/products\/soybean-milk-powder-since-1989-es9k?variant=c0b7ede4-d2dc-4177-a13e-5275786ea049","available_quantity":4,"options":[{"name":"Taste","value":"MLCT "}],"off_ratio":0,"flashsale_info":[],"sales":35};
const saveType = "percentage";
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":"c0b7ede4-d2dc-4177-a13e-5275786ea049","product_id":"f50184f6-27e0-4961-9666-5ae454aa0b87","title":"MLCT ","weight_unit":"kg","inventory_quantity":4,"sku":"","barcode":"","position":1,"option1":"MLCT ","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":20,"min_quantity":1}],"weight":"1000","compare_at_price":"20","price":"20","retail_price":"20","available":true,"url":"\/products\/soybean-milk-powder-since-1989-es9k?variant=c0b7ede4-d2dc-4177-a13e-5275786ea049","available_quantity":4,"options":[{"name":"Taste","value":"MLCT "}],"off_ratio":0,"flashsale_info":[],"sales":35};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}