${function() {
const variantData = data.variant || {"id":"e4ae8d0b-ed1c-468f-a359-46c624992d0a","product_id":"09f266bc-d9dd-4218-b6f4-d5efea9452c1","title":"Purple-S","weight_unit":"kg","inventory_quantity":1000,"sku":"221124-A04-Purple-S","barcode":"","position":1,"option1":"Purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2f03f488d1cb830c8e934732170ed037.jpg","path":"2f03f488d1cb830c8e934732170ed037.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"49.99","retail_price":"0","available":true,"url":"\/products\/womens-vintage-collar-long-sleeve-jacket?variant=e4ae8d0b-ed1c-468f-a359-46c624992d0a","available_quantity":999999999,"options":[{"name":"Color","value":"Purple"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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.