${function() {
const variantData = data.variant || {"id":"f7b1b5cf-3c74-4bcc-83fb-1a0db389e153","product_id":"16e965a1-0e58-4ce1-b8d3-048372f5900f","title":"Lake Blue-M","weight_unit":"kg","inventory_quantity":998,"sku":"SP220418S72Q-96352345","barcode":"","position":2,"option1":"Lake Blue","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d80b86d9f7808d5883a76395a3d49e53.jpeg","path":"d80b86d9f7808d5883a76395a3d49e53.jpeg","width":1140,"height":1500,"alt":"","aspect_ratio":0.76},"wholesale_price":[{"price":27.9,"min_quantity":1}],"weight":"0","compare_at_price":"27.9","price":"27.9","retail_price":"27.9","available":true,"url":"\/products\/mens-linen-loose-drawstring-hip-hop-lantern-pencil-pants-7182478?variant=f7b1b5cf-3c74-4bcc-83fb-1a0db389e153","available_quantity":998,"options":[{"name":"Color","value":"Lake Blue"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":58};
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.