${function() {
const variantData = data.variant || {"id":"cba8c4c2-e475-439a-98c6-5b69bba0f3b0","product_id":"afafc13b-9cee-44e3-852d-38486bfd42dc","title":"(Customized) Gold Pendant 24Inch Necklace","weight_unit":"kg","inventory_quantity":491,"sku":"621963189520-\uff08\u5b9a\u5236\uff09\u91d1\u8272\u540a\u5760+24inch\u9ebb\u82b1\u94fe-NPT1460-621963189520","barcode":"","position":1,"option1":"(Customized) Gold Pendant 24Inch Necklace","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9851338cc0acb5d887c9408b0829e349.jpeg","path":"9851338cc0acb5d887c9408b0829e349.jpeg","width":1001,"height":1001,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":46.13,"min_quantity":1}],"weight":"0.08","compare_at_price":"0","price":"46.13","retail_price":"0","available":true,"url":"\/products\/zircon-wings-photo-couple-necklace-diy-commemorative-diamond-silver-pendant-necklace-tv0b?variant=cba8c4c2-e475-439a-98c6-5b69bba0f3b0","available_quantity":999999999,"options":[{"name":"Color","value":"(Customized) Gold Pendant 24Inch Necklace"}],"off_ratio":0,"flashsale_info":[],"sales":33};
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 variantData = data.variant || {"id":"cba8c4c2-e475-439a-98c6-5b69bba0f3b0","product_id":"afafc13b-9cee-44e3-852d-38486bfd42dc","title":"(Customized) Gold Pendant 24Inch Necklace","weight_unit":"kg","inventory_quantity":491,"sku":"621963189520-\uff08\u5b9a\u5236\uff09\u91d1\u8272\u540a\u5760+24inch\u9ebb\u82b1\u94fe-NPT1460-621963189520","barcode":"","position":1,"option1":"(Customized) Gold Pendant 24Inch Necklace","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9851338cc0acb5d887c9408b0829e349.jpeg","path":"9851338cc0acb5d887c9408b0829e349.jpeg","width":1001,"height":1001,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":46.13,"min_quantity":1}],"weight":"0.08","compare_at_price":"0","price":"46.13","retail_price":"0","available":true,"url":"\/products\/zircon-wings-photo-couple-necklace-diy-commemorative-diamond-silver-pendant-necklace-tv0b?variant=cba8c4c2-e475-439a-98c6-5b69bba0f3b0","available_quantity":999999999,"options":[{"name":"Color","value":"(Customized) Gold Pendant 24Inch Necklace"}],"off_ratio":0,"flashsale_info":[],"sales":33};
return `
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 99;
const custom_text = "STANDARD SHIPPING: $9.90, Free over $99.00";
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 `
`;
}()}
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('15');
const customText = "SHIPPING TIME: 7-15 Working Days \n";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + '')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + '');
return `
`;
}()}