${function() {
const variantData = data.variant || {"id":"f46c5a57-a225-469a-9013-be3e5fe75b9b","product_id":"b3b8d646-ab73-48f1-a844-d830b2da7a23","title":"black-M","weight_unit":"kg","inventory_quantity":1000,"sku":"x099-240412-17-R2VEZYRAQ5-black-M","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bb17962e8e93bf21ed7cf1cb4fd34c1c.jpeg","path":"bb17962e8e93bf21ed7cf1cb4fd34c1c.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"300","compare_at_price":"29.99","price":"29.99","retail_price":"29.99","available":true,"url":"\/products\/mens-casual-long-sleeve-pocket-loose-shirt?variant=f46c5a57-a225-469a-9013-be3e5fe75b9b","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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.