${function() {
const variantData = data.variant || {"id":"5cad1aa3-9d7a-49c4-9e53-545c54ce991c","product_id":"7cf48aed-59c1-4160-b2ad-a018b7ecf11a","title":"white-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230428462-white-S","barcode":"","position":11,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/602d64a854279d64d898e0f38b6d52ea.jpeg","path":"602d64a854279d64d898e0f38b6d52ea.jpeg","width":800,"height":800,"alt":"DresSummer Jacquard Cotton Linen Dress","aspect_ratio":1},"wholesale_price":[{"price":38.99,"min_quantity":1}],"weight":"0.45","compare_at_price":"47","price":"38.99","retail_price":"47","available":true,"url":"\/products\/summer-jacquard-cotton-linen-dres?variant=5cad1aa3-9d7a-49c4-9e53-545c54ce991c","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"S"}],"off_ratio":17,"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.