${function() {
const variantData = data.variant || {"id":"30b704bc-4a31-49b0-b48e-24c5e93d3353","product_id":"56320abc-f0f4-48f4-9dbb-dd73b1092f7e","title":"white-M","weight_unit":"kg","inventory_quantity":0,"sku":"662305101058-white-M","barcode":"","position":1,"option1":"white","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/584fbe08ee84e70e842a372fd2e9c072.jpeg","path":"584fbe08ee84e70e842a372fd2e9c072.jpeg","width":800,"height":800,"alt":"Simple Thin Printed Cotton Linen T-Shirt","aspect_ratio":1},"wholesale_price":[{"price":27.69,"min_quantity":1}],"weight":"1","compare_at_price":"38","price":"27.69","retail_price":"38","available":true,"url":"\/products\/simple-thin-printed-cotton-linen-t-shirt?variant=30b704bc-4a31-49b0-b48e-24c5e93d3353","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"M"}],"off_ratio":27,"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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.