${function() {
const variantData = data.variant || {"id":"e75783c7-3b52-401e-b429-1f4db6a82837","product_id":"af833762-27d0-48c7-9ff3-f7d61d5e2543","title":"Silver","weight_unit":"kg","inventory_quantity":998,"sku":"LN0113-26_1","barcode":"","position":1,"option1":"Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f0638251e263879cb06c221189cac6aa.jpeg","path":"f0638251e263879cb06c221189cac6aa.jpeg","width":455,"height":606,"alt":"","aspect_ratio":0.7508250825082509},"wholesale_price":[{"price":6.98,"min_quantity":1}],"weight":"0","compare_at_price":"12.89","price":"6.98","retail_price":"12.89","available":true,"url":"\/products\/inlaid-turquoise-antique-dyed-black-feather-necklace?variant=e75783c7-3b52-401e-b429-1f4db6a82837","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"}],"off_ratio":46,"flashsale_info":[],"sales":2};
const saveType = "amount";
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.
${function() {
const postageFreeAmount = 79;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}