${function() {
const variantData = data.variant || {"id":"060abaed-5a2c-4cc0-a13b-56caf1df9397","product_id":"0a32d3b4-edb1-47b1-bb8f-ec25cbe1b9d8","title":"BLACK","weight_unit":"kg","inventory_quantity":29,"sku":"","barcode":"","position":1,"option1":"BLACK","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d512f39557d24ff1ebf19bd72767e6c2.jpeg","path":"d512f39557d24ff1ebf19bd72767e6c2.jpeg","width":975,"height":981,"alt":"","aspect_ratio":0.9938837920489296},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.29","compare_at_price":"21.59","price":"49.99","retail_price":"21.59","available":true,"url":"\/products\/zihnic-bluetooth-headphones-over-ear-foldable-wireless-and-wired-stereo-headset-micro-sd-tf-fm-for-cell-phone-pc-soft-earmuffs-light-weight-for-prolonged-wearing-black-blue?variant=060abaed-5a2c-4cc0-a13b-56caf1df9397","available_quantity":999999999,"options":[{"name":"Color","value":"BLACK"}],"off_ratio":0,"flashsale_info":[],"sales":136};
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 `
`;
}()}
Color
: BLACK
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"060abaed-5a2c-4cc0-a13b-56caf1df9397","product_id":"0a32d3b4-edb1-47b1-bb8f-ec25cbe1b9d8","title":"BLACK","weight_unit":"kg","inventory_quantity":29,"sku":"","barcode":"","position":1,"option1":"BLACK","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d512f39557d24ff1ebf19bd72767e6c2.jpeg","path":"d512f39557d24ff1ebf19bd72767e6c2.jpeg","width":975,"height":981,"alt":"","aspect_ratio":0.9938837920489296},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.29","compare_at_price":"21.59","price":"49.99","retail_price":"21.59","available":true,"url":"\/products\/zihnic-bluetooth-headphones-over-ear-foldable-wireless-and-wired-stereo-headset-micro-sd-tf-fm-for-cell-phone-pc-soft-earmuffs-light-weight-for-prolonged-wearing-black-blue?variant=060abaed-5a2c-4cc0-a13b-56caf1df9397","available_quantity":999999999,"options":[{"name":"Color","value":"BLACK"}],"off_ratio":0,"flashsale_info":[],"sales":136};
return `
`
}()}