${function() {
const variantData = data.variant || {"id":"f80d619d-900d-4219-8a87-2ea9baad5017","product_id":"7c0888b3-c553-4ed0-ac05-ce1729f8a4f1","title":"Black-S","weight_unit":"kg","inventory_quantity":999,"sku":"MS041035-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4aa00abbe53e6bf490cc6c97e5b3bc1f.jpeg","path":"4aa00abbe53e6bf490cc6c97e5b3bc1f.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"29.99","price":"26.99","retail_price":"29.99","available":true,"url":"\/products\/mens-simple-flamingo-palm-leaf-casual-print-shirt?variant=f80d619d-900d-4219-8a87-2ea9baad5017","available_quantity":999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":10,"flashsale_info":[],"sales":2};
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.