${function() {
const variantData = data.variant || {"id":"409827be-49b2-4213-bb55-6a88749fc103","product_id":"2f794519-fc41-4a95-9dc1-bab559853e8b","title":"Brown","weight_unit":"kg","inventory_quantity":0,"sku":"20101013-brown","barcode":"","position":1,"option1":"Brown","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/83d72beb1409f756db3e5f89ccd72f48.jpeg","path":"83d72beb1409f756db3e5f89ccd72f48.jpeg","width":1200,"height":1600,"alt":"Vintage Bracelets","aspect_ratio":0.75},"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=409827be-49b2-4213-bb55-6a88749fc103","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"}],"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.