${function() {
const variantData = data.variant || {"id":"fd6b586d-5a0f-42a5-928e-ff669104556f","product_id":"708ff4e8-940d-4400-bbb0-3e2406ff7308","title":"Green-M","weight_unit":"kg","inventory_quantity":992,"sku":"PH1-220612-44-Green-M","barcode":"","position":1,"option1":"Green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/291a16a018a816780c82611c064de4b6.jpeg","path":"291a16a018a816780c82611c064de4b6.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"40","price":"25.99","retail_price":"40","available":true,"url":"\/products\/mens-long-sleeve-button-cotton-and-linen-shirt?variant=fd6b586d-5a0f-42a5-928e-ff669104556f","available_quantity":992,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"M"}],"off_ratio":35,"flashsale_info":[],"sales":5};
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.