${function() {
const variantData = data.variant || {"id":"f29c0dc5-e7d1-4ca4-82d0-07954fd4954d","product_id":"92137614-fef3-4b4a-8967-e01cb907bfd2","title":"orange-M","weight_unit":"kg","inventory_quantity":0,"sku":"662305111067-orange-M","barcode":"","position":5,"option1":"orange","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d9b0ee81b57a9927ec292e056fa816b2.jpeg","path":"d9b0ee81b57a9927ec292e056fa816b2.jpeg","width":800,"height":1000,"alt":"Retro Contrast Color Cotton Linen Dress","aspect_ratio":0.8},"wholesale_price":[{"price":42.79,"min_quantity":1}],"weight":"0.3","compare_at_price":"52","price":"42.79","retail_price":"52","available":true,"url":"\/products\/retro-contrast-color-cotton-linen-dress?variant=f29c0dc5-e7d1-4ca4-82d0-07954fd4954d","available_quantity":999999999,"options":[{"name":"color","value":"orange"},{"name":"size","value":"M"}],"off_ratio":18,"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.