${function() {
const variantData = data.variant || {"id":"dfcb937b-ae21-43cc-8a05-6046e495d3f6","product_id":"b2df8a09-5a25-403e-925c-2849938fddaa","title":"yellow-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662305111147-yellow-one size","barcode":"","position":2,"option1":"yellow","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c2d0d29fc9b338f4fc80ef710442b74e.jpeg","path":"c2d0d29fc9b338f4fc80ef710442b74e.jpeg","width":800,"height":1000,"alt":"Simple Lightweight Cool Cotton Linen Cardigan","aspect_ratio":0.8},"wholesale_price":[{"price":48.75,"min_quantity":1}],"weight":"0.2","compare_at_price":"57","price":"48.75","retail_price":"57","available":true,"url":"\/products\/simple-lightweight-cool-cotton-linen-cardigan?variant=dfcb937b-ae21-43cc-8a05-6046e495d3f6","available_quantity":999999999,"options":[{"name":"color","value":"yellow"},{"name":"size","value":"one size"}],"off_ratio":14,"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.