${function() {
const variantData = data.variant || {"id":"19d07745-d727-4b83-8fef-afd13f70b853","product_id":"4b6c3f0b-fae7-4c6f-9381-4fd535e46416","title":"purple-s","weight_unit":"kg","inventory_quantity":-3,"sku":"Lin21012703-purple-s","barcode":"","position":9,"option1":"purple","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b552dc4b27ab234eff367656cf66e2d5.jpeg","path":"b552dc4b27ab234eff367656cf66e2d5.jpeg","width":800,"height":800,"alt":"Mid-sleeve off-shoulder cotton and linen dress","aspect_ratio":1},"wholesale_price":[{"price":28.27,"min_quantity":1}],"weight":"0","compare_at_price":"48.41","price":"28.27","retail_price":"48.41","available":true,"url":"\/products\/mid-sleeve-off-shoulder-cotton-and-linen-dress?variant=19d07745-d727-4b83-8fef-afd13f70b853","available_quantity":999999999,"options":[{"name":"color","value":"purple"},{"name":"size","value":"s"}],"off_ratio":42,"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.