${function() {
const variantData = data.variant || {"id":"f1c4b719-d6f0-4815-9f5c-124e32679fb8","product_id":"4b12889c-fd86-4b89-b9c5-7c0a7d892788","title":"Style1-3cmx8cm","weight_unit":"kg","inventory_quantity":1000,"sku":"X217-241226-02-X6J4NKV5EJ-Style1-3cmx8cm","barcode":"","position":1,"option1":"Style1","option2":"3cmx8cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e5eec7e20b88db8357ed236494433013.jpeg","path":"e5eec7e20b88db8357ed236494433013.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":5.99,"min_quantity":1}],"weight":"0.02","compare_at_price":"5.99","price":"5.99","retail_price":"5.99","available":true,"url":"\/products\/womens-bohemian-alloy-tassel-earrings?variant=f1c4b719-d6f0-4815-9f5c-124e32679fb8","available_quantity":999999999,"options":[{"name":"Style","value":"Style1"},{"name":"Size","value":"3cmx8cm"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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}
`
}()}
${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 `
`;
}()}