${function() {
const variantData = data.variant || {"id":"7cc5fbbc-47ca-454f-8ff0-9d21fc1b6eb1","product_id":"4a84a1e1-2a05-4db6-8a91-99f651cc4e1c","title":"Green","weight_unit":"kg","inventory_quantity":996,"sku":"PH56green","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/391c29fee8f665fe7000a18f90913af0.png","path":"391c29fee8f665fe7000a18f90913af0.png","width":1800,"height":1800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":88.99,"min_quantity":1}],"weight":"0","compare_at_price":"129.99","price":"88.99","retail_price":"129.99","available":true,"url":"\/products\/ph56-blood-sugar-blood-glucose-heart-rate-monitoring-outdoor-100-sports-mode-military-health-smart-watch-4464589?variant=7cc5fbbc-47ca-454f-8ff0-9d21fc1b6eb1","available_quantity":999999999,"options":[{"name":"Color","value":"Green"}],"off_ratio":32,"flashsale_info":[],"sales":4};
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.