${function() {
const variantData = data.variant || {"id":"2c0c592d-d362-49b5-9bc2-6913be34d5da","product_id":"0eb443d2-121e-4f0f-b69b-8b61f3e7465a","title":"Black","weight_unit":"kg","inventory_quantity":3,"sku":"","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/070c5ff970ce628bce587d54de280716.jpeg","path":"070c5ff970ce628bce587d54de280716.jpeg","width":1476,"height":1500,"alt":"","aspect_ratio":0.984},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.16","compare_at_price":"33.99","price":"49.99","retail_price":"33.99","available":true,"url":"\/products\/bluetooth-headset-wireless-bluetooth-earpiece-with-500mah-charging-case-72-hours-talking-time-built-in-microphone-for-ios-android-cell-phone-hand-free-headphones-for-trucker-officeblue?variant=2c0c592d-d362-49b5-9bc2-6913be34d5da","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":"2c0c592d-d362-49b5-9bc2-6913be34d5da","product_id":"0eb443d2-121e-4f0f-b69b-8b61f3e7465a","title":"Black","weight_unit":"kg","inventory_quantity":3,"sku":"","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/070c5ff970ce628bce587d54de280716.jpeg","path":"070c5ff970ce628bce587d54de280716.jpeg","width":1476,"height":1500,"alt":"","aspect_ratio":0.984},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.16","compare_at_price":"33.99","price":"49.99","retail_price":"33.99","available":true,"url":"\/products\/bluetooth-headset-wireless-bluetooth-earpiece-with-500mah-charging-case-72-hours-talking-time-built-in-microphone-for-ios-android-cell-phone-hand-free-headphones-for-trucker-officeblue?variant=2c0c592d-d362-49b5-9bc2-6913be34d5da","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}