${function() {
const variantData = data.variant || {"id":"5c7c0337-bc2e-40dc-84a8-e8abdbbe4f46","product_id":"85b68409-2355-4b25-9438-bf59f75ec55d","title":"white-M","weight_unit":"kg","inventory_quantity":0,"sku":"662305111101-white-M","barcode":"","position":5,"option1":"white","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9ff47e69605aa0d67f939402e0ae6556.jpeg","path":"9ff47e69605aa0d67f939402e0ae6556.jpeg","width":800,"height":1000,"alt":"Cotton Linen Round Neck Casual Dress","aspect_ratio":0.8},"wholesale_price":[{"price":39.89,"min_quantity":1}],"weight":"0.35","compare_at_price":"48","price":"39.89","retail_price":"48","available":true,"url":"\/products\/cotton-linen-round-neck-casual-dress?variant=5c7c0337-bc2e-40dc-84a8-e8abdbbe4f46","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"M"}],"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.