${function() {
const variantData = data.variant || {"id":"161fed4b-910d-4833-a52a-65bf83992953","product_id":"d707aad7-887c-489b-bd3c-966e48081ab4","title":"MLCT","weight_unit":"kg","inventory_quantity":5,"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\/baifenzhi-soybean-milk-powder-since-1989?variant=161fed4b-910d-4833-a52a-65bf83992953","available_quantity":5,"options":[{"name":"Taste","value":"MLCT"}],"off_ratio":0,"flashsale_info":[],"sales":45};
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":"161fed4b-910d-4833-a52a-65bf83992953","product_id":"d707aad7-887c-489b-bd3c-966e48081ab4","title":"MLCT","weight_unit":"kg","inventory_quantity":5,"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\/baifenzhi-soybean-milk-powder-since-1989?variant=161fed4b-910d-4833-a52a-65bf83992953","available_quantity":5,"options":[{"name":"Taste","value":"MLCT"}],"off_ratio":0,"flashsale_info":[],"sales":45};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}