${function() {
const variantData = data.variant || {"id":"443e9584-d4bc-4959-9742-4921348c5c77","product_id":"8170b737-240b-48e9-a9f6-f870ab38c41d","title":"white-M","weight_unit":"kg","inventory_quantity":0,"sku":"66230510971-white-M","barcode":"","position":1,"option1":"white","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/44231385a92a70fe20b40844b3f8f8a9.jpeg","path":"44231385a92a70fe20b40844b3f8f8a9.jpeg","width":800,"height":800,"alt":"Cotton Linen Lace Casual Pants","aspect_ratio":1},"wholesale_price":[{"price":44.35,"min_quantity":1}],"weight":"0.3","compare_at_price":"52","price":"44.35","retail_price":"52","available":true,"url":"\/products\/cotton-linen-lace-casual-pants?variant=443e9584-d4bc-4959-9742-4921348c5c77","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"M"}],"off_ratio":15,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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.