${function() {
const variantData = data.variant || {"id":"4d29c23b-8ccc-46b5-9e8b-d3dcd8d66535","product_id":"2f794519-fc41-4a95-9dc1-bab559853e8b","title":"White","weight_unit":"kg","inventory_quantity":0,"sku":"20101013-white","barcode":"","position":3,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/23a035c201a97c9fb392c30eebf00e76.jpeg","path":"23a035c201a97c9fb392c30eebf00e76.jpeg","width":1600,"height":1200,"alt":"Vintage Bracelets","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":2.83,"min_quantity":1}],"weight":"0.02","compare_at_price":"3.32","price":"2.83","retail_price":"3.32","available":true,"url":"\/products\/vintage-bracelets?variant=4d29c23b-8ccc-46b5-9e8b-d3dcd8d66535","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"off_ratio":15,"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}
`
}()}
Product was out of stock.
Product is unavailable.