${function() {
const variantData = data.variant || {"id":"28cb0373-11c5-465e-916c-796b1547b9b6","product_id":"bab15d74-790c-40c3-b96f-d599cbaaaf47","title":"Black-S","weight_unit":"kg","inventory_quantity":999,"sku":"PH1-220523-08-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/21e1ec89c2873e2e5824a26b0aa668b6.jpeg","path":"21e1ec89c2873e2e5824a26b0aa668b6.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"29.99","price":"29.99","retail_price":"29.99","available":true,"url":"\/products\/mens-zipper-color-block-long-sleeve-polo-shirt?variant=28cb0373-11c5-465e-916c-796b1547b9b6","available_quantity":999,"options":[{"name":"Color","value":"Black"},{"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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.