${function() {
const variantData = data.variant || {"id":"ec185b2b-c770-4d9d-9893-24d9f4875b3d","product_id":"8170b737-240b-48e9-a9f6-f870ab38c41d","title":"khaki-M","weight_unit":"kg","inventory_quantity":0,"sku":"66230510971-khaki-M","barcode":"","position":5,"option1":"khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/de2029b7da81a9413568f44e9289fb8e.jpeg","path":"de2029b7da81a9413568f44e9289fb8e.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=ec185b2b-c770-4d9d-9893-24d9f4875b3d","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"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.