${function() {
const variantData = data.variant || {"id":"d442eddf-005b-467e-84c3-3b7f8800f8eb","product_id":"9812d13e-dad1-4f80-9cff-87a714283ce3","title":"Brown-M","weight_unit":"kg","inventory_quantity":998,"sku":"SYV004649_KH_M","barcode":"","position":11,"option1":"Brown","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cdb0edd80bf49c7ca6c782219be1a33b.jpeg","path":"cdb0edd80bf49c7ca6c782219be1a33b.jpeg","width":768,"height":1024,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"33.99","retail_price":"33.99","available":true,"url":"\/products\/casual-hooded-top-cotton-linen-set?variant=d442eddf-005b-467e-84c3-3b7f8800f8eb","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":25};
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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.