${function() {
const variantData = data.variant || {"id":"ee22aad0-9b2c-4776-9e15-834392532c17","product_id":"e6747d7e-fcf2-4353-91a8-e316eacf4abb","title":"Black","weight_unit":"kg","inventory_quantity":24,"sku":"","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/91d87d4e7e80a5be81d5e9dd47bf171f.jpeg","path":"91d87d4e7e80a5be81d5e9dd47bf171f.jpeg","width":1298,"height":1500,"alt":"","aspect_ratio":0.8653333333333333},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0","compare_at_price":"19.99","price":"49.99","retail_price":"19.99","available":true,"url":"\/products\/wireless-earbuds-2024-bluetooth-headphones-5-3-hifi-stereo-ear-buds-with-enc-noise-cancelling-mics-40h-bluetooth-earbuds-with-dual-led-display-charging-case-ip7-waterproof-earphones-for-android-ios?variant=ee22aad0-9b2c-4776-9e15-834392532c17","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function() {
const minDays = parseInt('5');
const maxDays = parseInt('8');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}";
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 `
`;
}()}
${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":"ee22aad0-9b2c-4776-9e15-834392532c17","product_id":"e6747d7e-fcf2-4353-91a8-e316eacf4abb","title":"Black","weight_unit":"kg","inventory_quantity":24,"sku":"","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/91d87d4e7e80a5be81d5e9dd47bf171f.jpeg","path":"91d87d4e7e80a5be81d5e9dd47bf171f.jpeg","width":1298,"height":1500,"alt":"","aspect_ratio":0.8653333333333333},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0","compare_at_price":"19.99","price":"49.99","retail_price":"19.99","available":true,"url":"\/products\/wireless-earbuds-2024-bluetooth-headphones-5-3-hifi-stereo-ear-buds-with-enc-noise-cancelling-mics-40h-bluetooth-earbuds-with-dual-led-display-charging-case-ip7-waterproof-earphones-for-android-ios?variant=ee22aad0-9b2c-4776-9e15-834392532c17","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}