${function() {
const variantData = data.variant || {"id":"3a9fa3a9-d0cb-409c-a32a-fef03c66fc72","product_id":"5a8ff4ff-0b69-4c90-84a9-9f3f389e6dfd","title":"S","weight_unit":"kg","inventory_quantity":1000,"sku":"SQ-240410-01-S","barcode":"","position":1,"option1":"S","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ef45ab5ce387753cefbefa606ba57d84.jpeg","path":"ef45ab5ce387753cefbefa606ba57d84.jpeg","width":900,"height":1344,"alt":"","aspect_ratio":0.6696428571428571},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"27.99","retail_price":"0","available":true,"url":"\/products\/mens-hawaiian-shirts-funny-colorful-cocks-print-short-sleeve-shirt9564184a-48c1-45c4-9d46-7036506fbbca?variant=3a9fa3a9-d0cb-409c-a32a-fef03c66fc72","available_quantity":999999999,"options":[{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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.