${function() {
const variantData = data.variant || {"id":"70512a32-6160-41b9-ba46-6747442f89f4","product_id":"d93904aa-535d-40a3-b9e0-612e7f2e1d70","title":"Blue-M","weight_unit":"kg","inventory_quantity":997,"sku":"13437548-Blue-M","barcode":"","position":1,"option1":"Blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/397b63ff683d52acfc58bf7b078f4afa.jpeg","path":"397b63ff683d52acfc58bf7b078f4afa.jpeg","width":450,"height":600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":21.5,"min_quantity":1}],"weight":"0","compare_at_price":"26.88","price":"21.5","retail_price":"26.88","available":true,"url":"\/products\/men-s-vintage-print-casual-breathable-short-sleeve-hawaiian-shirt-13437548?variant=70512a32-6160-41b9-ba46-6747442f89f4","available_quantity":997,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"M"}],"off_ratio":20,"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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.