${function() {
const variantData = data.variant || {"id":"4a22d777-de90-4fb6-975a-bad572869ae0","product_id":"e2b28c22-8715-4af6-b4a2-6cf9b2ee9f09","title":"white-M","weight_unit":"kg","inventory_quantity":0,"sku":"662305111097-white-M","barcode":"","position":5,"option1":"white","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c40df4017965f9ed56698580f1da532b.jpeg","path":"c40df4017965f9ed56698580f1da532b.jpeg","width":800,"height":800,"alt":"Cotton linen V-neck half-sleeve dress","aspect_ratio":1},"wholesale_price":[{"price":41.82,"min_quantity":1}],"weight":"0.25","compare_at_price":"53","price":"41.82","retail_price":"53","available":true,"url":"\/products\/cotton-linen-v-neck-half-sleeve-dress?variant=4a22d777-de90-4fb6-975a-bad572869ae0","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"M"}],"off_ratio":21,"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.