${function() {
const variantData = data.variant || {"id":"ec05d0a1-7fea-4099-b4c0-8b3ad2d25f20","product_id":"386d70cc-d499-4118-9cbd-737d233bc4b6","title":"Gold Pendant 3mm24inch Stainless Steel Cuban Link Chain","weight_unit":"kg","inventory_quantity":1307,"sku":"649126056249-\u91d1\u8272\u540a\u5760+3mm24inch\u4e0d\u9508\u94a2\u53e4\u5df4\u94fe-NPT1666-649126056249","barcode":"","position":1,"option1":"Gold Pendant 3mm24inch Stainless Steel Cuban Link Chain","option2":"","option3":"","note":"","image":{"src":"\/\/img.fantaskycdn.com\/c0a70a8b226794fc8aee7dca20163553.jpeg","path":"c0a70a8b226794fc8aee7dca20163553.jpeg","width":1001,"height":1001,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.18,"min_quantity":1}],"weight":"0.08","compare_at_price":"39.28","price":"34.18","retail_price":"39.28","available":true,"url":"\/products\/cross-shaped-pendant-necklace-zircon-with-diamond-retro-hip-hop-mens-accessories?variant=ec05d0a1-7fea-4099-b4c0-8b3ad2d25f20","available_quantity":999999999,"options":[{"name":"Color","value":"Gold Pendant 3mm24inch Stainless Steel Cuban Link Chain"}],"off_ratio":13,"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":"ec05d0a1-7fea-4099-b4c0-8b3ad2d25f20","product_id":"386d70cc-d499-4118-9cbd-737d233bc4b6","title":"Gold Pendant 3mm24inch Stainless Steel Cuban Link Chain","weight_unit":"kg","inventory_quantity":1307,"sku":"649126056249-\u91d1\u8272\u540a\u5760+3mm24inch\u4e0d\u9508\u94a2\u53e4\u5df4\u94fe-NPT1666-649126056249","barcode":"","position":1,"option1":"Gold Pendant 3mm24inch Stainless Steel Cuban Link Chain","option2":"","option3":"","note":"","image":{"src":"\/\/img.fantaskycdn.com\/c0a70a8b226794fc8aee7dca20163553.jpeg","path":"c0a70a8b226794fc8aee7dca20163553.jpeg","width":1001,"height":1001,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.18,"min_quantity":1}],"weight":"0.08","compare_at_price":"39.28","price":"34.18","retail_price":"39.28","available":true,"url":"\/products\/cross-shaped-pendant-necklace-zircon-with-diamond-retro-hip-hop-mens-accessories?variant=ec05d0a1-7fea-4099-b4c0-8b3ad2d25f20","available_quantity":999999999,"options":[{"name":"Color","value":"Gold Pendant 3mm24inch Stainless Steel Cuban Link Chain"}],"off_ratio":13,"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 `
`;
}()}