${function() {
const variantData = data.variant || {"id":"cbf4af11-9988-4556-a62b-f077a38090f0","product_id":"c827be98-1adb-4123-966d-32035d4f96e5","title":"grey-s","weight_unit":"kg","inventory_quantity":0,"sku":"20112107-grey-s","barcode":"","position":2,"option1":"grey","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/202bc26edde6f19dfd8923926c0686f0.jpeg","path":"202bc26edde6f19dfd8923926c0686f0.jpeg","width":529,"height":529,"alt":"Casual Long Sweater Dresses","aspect_ratio":1},"wholesale_price":[{"price":54.33,"min_quantity":1}],"weight":"0","compare_at_price":"102.51","price":"54.33","retail_price":"102.51","available":true,"url":"\/products\/casual-long-sweater-dresses-1dta?variant=cbf4af11-9988-4556-a62b-f077a38090f0","available_quantity":999999999,"options":[{"name":"color","value":"grey"},{"name":"size","value":"s"}],"off_ratio":47,"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.