${function() {
const variantData = data.variant || {"id":"fc5ac8de-b99a-4b07-b05a-267fc895d95b","product_id":"429cce7f-fe56-45a7-baaf-d01365214893","title":"White-M","weight_unit":"kg","inventory_quantity":1000,"sku":"CP10420613153L01","barcode":"","position":1,"option1":"White","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/70233941f7452563e0c52d417fcf8be5.jpeg","path":"70233941f7452563e0c52d417fcf8be5.jpeg","width":965,"height":1378,"alt":"","aspect_ratio":0.7002902757619739},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"16.99","retail_price":"33.99","available":true,"url":"\/products\/rainbow-print-sleeveless-t-shirt?variant=fc5ac8de-b99a-4b07-b05a-267fc895d95b","available_quantity":999999999,"options":[{"name":"color","value":"White"},{"name":"size","value":"M"}],"off_ratio":50,"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.