${function() {
const variantData = data.variant || {"id":"61dfc3a9-ab3f-4c5b-b0e2-93f742a29e0d","product_id":"1e58c076-bb33-429e-886b-85b2458bcd59","title":"black-2XL","weight_unit":"kg","inventory_quantity":0,"sku":"66210918606-black-2XL","barcode":"","position":1,"option1":"black","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/691a901fede49d5a8a3cb97c8388177e.jpeg","path":"691a901fede49d5a8a3cb97c8388177e.jpeg","width":1228,"height":1228,"alt":"Two-piece leisure set with elastic drawstring","aspect_ratio":1},"wholesale_price":[{"price":43.2,"min_quantity":1}],"weight":"0","compare_at_price":"52.05","price":"43.2","retail_price":"52.05","available":true,"url":"\/products\/two-piece-leisure-set-with-elastic-drawstring?variant=61dfc3a9-ab3f-4c5b-b0e2-93f742a29e0d","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"2XL"}],"off_ratio":17,"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.