${function() {
const variantData = data.variant || {"id":"5bcd707f-2563-45f6-81d2-d3359f75a579","product_id":"560a50df-d491-4dfe-858c-6b489176ae16","title":"Green","weight_unit":"kg","inventory_quantity":1000,"sku":"LE72250710LVS","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/28e97dd4929820cccbc308055668565e.jpeg","path":"28e97dd4929820cccbc308055668565e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.98","price":"19.99","retail_price":"39.98","available":true,"url":"\/products\/faucet-2?variant=5bcd707f-2563-45f6-81d2-d3359f75a579","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"off_ratio":50,"flashsale_info":[],"sales":0};
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.