${function() {
const variantData = data.variant || {"id":"c24426ed-86bb-47a8-92ac-b6a998fec943","product_id":"79baeab0-352e-4452-b5f6-ea8e5ed17951","title":"As-shown","weight_unit":"kg","inventory_quantity":4808,"sku":"FXHE2208231456-As-shown","barcode":"","position":1,"option1":"As-shown","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b3ddb185c078e3c858fdbd50fe746b48.jpeg","path":"b3ddb185c078e3c858fdbd50fe746b48.jpeg","width":750,"height":750,"alt":"Vintage Pearl Ear Cuff","aspect_ratio":1},"wholesale_price":[{"price":6.61,"min_quantity":1}],"weight":"0","compare_at_price":"10.03","price":"6.61","retail_price":"10.03","available":true,"url":"\/products\/vintage-pearl-ear-cuff?variant=c24426ed-86bb-47a8-92ac-b6a998fec943","available_quantity":999999999,"options":[{"name":"color","value":"As-shown"}],"off_ratio":34,"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.