${function() {
const variantData = data.variant || {"id":"de3d7209-09a9-4fcd-ac7d-7909cc6636d0","product_id":"c9afda35-e287-40a1-9e51-c0c010d6e36d","title":"Black-M","weight_unit":"kg","inventory_quantity":5,"sku":"","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/447ec17f82ba8e6257a7dc57f7e70430.jpeg","path":"447ec17f82ba8e6257a7dc57f7e70430.jpeg","width":1398,"height":1500,"alt":"","aspect_ratio":0.932},"wholesale_price":[{"price":29.9,"min_quantity":1}],"weight":"0.1","compare_at_price":"49.9","price":"29.9","retail_price":"49.9","available":true,"url":"\/products\/ear-buds-wireless-bluetooth-earbuds-bluetooth-5-3-headphones-with-4-enc-noise-cancelling-mic-powerful-bass-in-ear-earbuds-with-led-display-128h-ip7-waterproof-2024-new-earphones-for-ios-android?variant=de3d7209-09a9-4fcd-ac7d-7909cc6636d0","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":40,"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}
`
}()}
${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":"de3d7209-09a9-4fcd-ac7d-7909cc6636d0","product_id":"c9afda35-e287-40a1-9e51-c0c010d6e36d","title":"Black-M","weight_unit":"kg","inventory_quantity":5,"sku":"","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/447ec17f82ba8e6257a7dc57f7e70430.jpeg","path":"447ec17f82ba8e6257a7dc57f7e70430.jpeg","width":1398,"height":1500,"alt":"","aspect_ratio":0.932},"wholesale_price":[{"price":29.9,"min_quantity":1}],"weight":"0.1","compare_at_price":"49.9","price":"29.9","retail_price":"49.9","available":true,"url":"\/products\/ear-buds-wireless-bluetooth-earbuds-bluetooth-5-3-headphones-with-4-enc-noise-cancelling-mic-powerful-bass-in-ear-earbuds-with-led-display-128h-ip7-waterproof-2024-new-earphones-for-ios-android?variant=de3d7209-09a9-4fcd-ac7d-7909cc6636d0","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":40,"flashsale_info":[],"sales":0};
return `
`
}()}