${function() {
const variantData = data.variant || {"id":"0d583b4f-2692-4650-9a5e-358b25c528a6","product_id":"0be91d67-f1e8-41eb-867a-fddcd1a1af34","title":"Black","weight_unit":"kg","inventory_quantity":971,"sku":"ZBSH051010055_1","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/939f0e2f7dd9be1146003575b738fec5.jpg","path":"939f0e2f7dd9be1146003575b738fec5.jpg","width":720,"height":720,"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-blood-glucose-measurement-watch-3339433?variant=0d583b4f-2692-4650-9a5e-358b25c528a6","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"off_ratio":42,"flashsale_info":[],"sales":17};
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.