${function() {
const variantData = data.variant || {"id":"a50c667e-9dea-47d9-b9d9-d3e2d21e5466","product_id":"1412cab0-073f-44c4-bf06-2d9640a6a884","title":"White","weight_unit":"kg","inventory_quantity":53297,"sku":"221027873-White","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/536dd9e7e912398330a290e0e30da3a6.jpeg","path":"536dd9e7e912398330a290e0e30da3a6.jpeg","width":800,"height":800,"alt":"Twist Gentle Elegant Pullover Sweater Top","aspect_ratio":1},"wholesale_price":[{"price":51.17,"min_quantity":1}],"weight":"0.6","compare_at_price":"60.16","price":"51.17","retail_price":"60.16","available":true,"url":"\/products\/twist-gentle-elegant-pullover-sweater-top?variant=a50c667e-9dea-47d9-b9d9-d3e2d21e5466","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":15,"flashsale_info":[],"sales":18};
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}
`
}()}
Product was out of stock.
Product is unavailable.