${function() {
const variantData = data.variant || {"id":"3e27d35e-26f4-48e2-9dec-0747ffbbb8ab","product_id":"089ec294-49de-4f28-98a0-91ee7700a3d8","title":"Silver","weight_unit":"kg","inventory_quantity":0,"sku":"Lin211203861-Silver","barcode":"","position":2,"option1":"Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/dcd87ec94a98048c14b59d3c37021d25.jpeg","path":"dcd87ec94a98048c14b59d3c37021d25.jpeg","width":800,"height":800,"alt":"Vintage Square Checkerboard Necklace","aspect_ratio":1},"wholesale_price":[{"price":29.72,"min_quantity":1}],"weight":"0","compare_at_price":"55.04","price":"29.72","retail_price":"55.04","available":true,"url":"\/products\/vintage-square-checkerboard-necklace-kpd0?variant=3e27d35e-26f4-48e2-9dec-0747ffbbb8ab","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"}],"off_ratio":46,"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.