${function() {
const variantData = data.variant || {"id":"3c3629b4-27d5-4ba2-bc66-aff72352654f","product_id":"4cdd7da2-f3b2-4284-b0aa-13c57e7fed9b","title":"Black","weight_unit":"kg","inventory_quantity":1,"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.01","compare_at_price":"33.98","price":"49.99","retail_price":"33.98","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-v5-1-hand-free-headphones-for-trucker-office-fypf?variant=3c3629b4-27d5-4ba2-bc66-aff72352654f","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":"3c3629b4-27d5-4ba2-bc66-aff72352654f","product_id":"4cdd7da2-f3b2-4284-b0aa-13c57e7fed9b","title":"Black","weight_unit":"kg","inventory_quantity":1,"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.01","compare_at_price":"33.98","price":"49.99","retail_price":"33.98","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-v5-1-hand-free-headphones-for-trucker-office-fypf?variant=3c3629b4-27d5-4ba2-bc66-aff72352654f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}