${function() {
const variantData = data.variant || {"id":"c17d240b-38e1-4422-8380-938ada3282f5","product_id":"600e220f-4082-4778-971d-c91aef01e707","title":"Purple","weight_unit":"kg","inventory_quantity":1000,"sku":"8051805-PURPLE","barcode":"","position":1,"option1":"Purple","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f1d565a00c7268a31725c09c2373448e.jpeg","path":"f1d565a00c7268a31725c09c2373448e.jpeg","width":650,"height":650,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"29.99","retail_price":"0","available":true,"url":"\/products\/device-3?variant=c17d240b-38e1-4422-8380-938ada3282f5","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"}],"off_ratio":0,"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.