${function() {
const variantData = data.variant || {"id":"6eec7b0f-848c-4d64-a79d-87171a69fb98","product_id":"003ced89-8b0f-4cf2-bb46-bbd95e3b4acd","title":"Green","weight_unit":"kg","inventory_quantity":998,"sku":"ZBSH052410064_3","barcode":"","position":3,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d216609369317d37a9caa9be23b54c8b.jpeg","path":"d216609369317d37a9caa9be23b54c8b.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":86.98,"min_quantity":1}],"weight":"0","compare_at_price":"150","price":"86.98","retail_price":"150","available":true,"url":"\/products\/painless-and-non-invasive-blood-glucose-monitoring-smartwatch-3339431?variant=6eec7b0f-848c-4d64-a79d-87171a69fb98","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"off_ratio":42,"flashsale_info":[],"sales":10};
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.