${function() {
const variantData = data.variant || {"id":"324e54e1-ee59-4865-a85c-e2f38e51020f","product_id":"c5cf88b4-94e4-460e-abee-24f83e1df771","title":"Blue peace","weight_unit":"kg","inventory_quantity":10,"sku":"","barcode":"","position":1,"option1":"Blue peace","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/123f9eb6233cfc1846a737bfefd79c04.jpeg","path":"123f9eb6233cfc1846a737bfefd79c04.jpeg","width":500,"height":500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":7.5,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"7.5","retail_price":"0","available":true,"url":"\/products\/hand-woven-cloth-plant-dyeing-retro-key-bag-chinese-style-gifts-embroidered-cotton-key-bag-earphone-bag?variant=324e54e1-ee59-4865-a85c-e2f38e51020f","available_quantity":999999999,"options":[{"name":"Color classification","value":"Blue peace"}],"off_ratio":0,"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":"324e54e1-ee59-4865-a85c-e2f38e51020f","product_id":"c5cf88b4-94e4-460e-abee-24f83e1df771","title":"Blue peace","weight_unit":"kg","inventory_quantity":10,"sku":"","barcode":"","position":1,"option1":"Blue peace","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/123f9eb6233cfc1846a737bfefd79c04.jpeg","path":"123f9eb6233cfc1846a737bfefd79c04.jpeg","width":500,"height":500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":7.5,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"7.5","retail_price":"0","available":true,"url":"\/products\/hand-woven-cloth-plant-dyeing-retro-key-bag-chinese-style-gifts-embroidered-cotton-key-bag-earphone-bag?variant=324e54e1-ee59-4865-a85c-e2f38e51020f","available_quantity":999999999,"options":[{"name":"Color classification","value":"Blue peace"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}