${function() {
const variantData = data.variant || {"id":"10c6f558-3aa5-421c-9978-6ea6bfacb97b","product_id":"77cacd34-e72c-40ae-a331-387e30d53679","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230428444-black-S","barcode":"","position":7,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/26c5466927fd4a93230f23dcf3cb5d41.jpeg","path":"26c5466927fd4a93230f23dcf3cb5d41.jpeg","width":800,"height":800,"alt":"Cotton Linen Loose Casual Cropped Pants","aspect_ratio":1},"wholesale_price":[{"price":33.57,"min_quantity":1}],"weight":"0.3","compare_at_price":"42","price":"33.57","retail_price":"42","available":true,"url":"\/products\/cotton-linen-loose-casual-cropped-pants?variant=10c6f558-3aa5-421c-9978-6ea6bfacb97b","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":20,"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.