${function() {
const variantData = data.variant || {"id":"a3ca4d9b-ea7f-4192-b87d-55cd7f6758eb","product_id":"7c04ea32-cb8b-4e3c-986a-217f5385c3b1","title":"As shown-One-Size","weight_unit":"kg","inventory_quantity":993,"sku":"WER57589-ASSONE","barcode":"","position":1,"option1":"As shown","option2":"One-Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/949fad215fbb14ea496e804158f9b97b.jpeg","path":"949fad215fbb14ea496e804158f9b97b.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":5.99,"min_quantity":1}],"weight":"0","compare_at_price":"8.99","price":"5.99","retail_price":"8.99","available":true,"url":"\/products\/womens-cross-earrings?variant=a3ca4d9b-ea7f-4192-b87d-55cd7f6758eb","available_quantity":999999999,"options":[{"name":"Color","value":"As shown"},{"name":"Size","value":"One-Size"}],"off_ratio":33,"flashsale_info":[],"sales":7};
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 `
`;
}()}