${function() {
const variantData = data.variant || {"id":"353e665b-e680-4782-94f6-9ba4d5129ec2","product_id":"1412cab0-073f-44c4-bf06-2d9640a6a884","title":"Orange","weight_unit":"kg","inventory_quantity":51884,"sku":"221027873-Orange","barcode":"","position":2,"option1":"Orange","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8c5998fc6f276096b7e3655f60910a1e.jpeg","path":"8c5998fc6f276096b7e3655f60910a1e.jpeg","width":1920,"height":1920,"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=353e665b-e680-4782-94f6-9ba4d5129ec2","available_quantity":999999999,"options":[{"name":"Color","value":"Orange"}],"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.