${function() {
const variantData = data.variant || {"id":"6842732c-2f1f-47cc-9c8b-780ec51ad155","product_id":"16dce4b6-0311-49f3-9846-5b23ae171e67","title":"Gold-One-size","weight_unit":"kg","inventory_quantity":955,"sku":"JE6T02624264","barcode":"","position":1,"option1":"Gold","option2":"One-size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d36b9ac957a1da788ebb9b83aedac6c9.jpeg","path":"d36b9ac957a1da788ebb9b83aedac6c9.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":3.99,"min_quantity":1}],"weight":"0","compare_at_price":"5.75","price":"3.99","retail_price":"5.75","available":true,"url":"\/products\/womens-exaggerated-alloy-round-earrings-1?variant=6842732c-2f1f-47cc-9c8b-780ec51ad155","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"},{"name":"Size","value":"One-size"}],"off_ratio":31,"flashsale_info":[],"sales":84};
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 `
`;
}()}