${function() {
const variantData = data.variant || {"id":"0341f3b7-b9a8-4610-8215-8a8746b2c377","product_id":"e2b28c22-8715-4af6-b4a2-6cf9b2ee9f09","title":"green-M","weight_unit":"kg","inventory_quantity":0,"sku":"662305111097-green-M","barcode":"","position":1,"option1":"green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e0dec4eb8de7d107ba1612b16d8ef111.jpeg","path":"e0dec4eb8de7d107ba1612b16d8ef111.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=0341f3b7-b9a8-4610-8215-8a8746b2c377","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"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.