${function() {
const variantData = data.variant || {"id":"d0d78532-f9c8-4372-8bee-3d4eb8fec362","product_id":"09f266bc-d9dd-4218-b6f4-d5efea9452c1","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"221124-A04-Green-S","barcode":"","position":9,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bf052915c2114c59c8acb74f01801bd9.jpg","path":"bf052915c2114c59c8acb74f01801bd9.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=d0d78532-f9c8-4372-8bee-3d4eb8fec362","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"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.