${function() {
const variantData = data.variant || {"id":"5e7fb31d-261d-46e5-8758-b4b30a40990c","product_id":"7ca9b007-725d-4f95-a82d-06f3fcc3d145","title":"Black-M","weight_unit":"kg","inventory_quantity":5,"sku":"","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ca5abe64b09e19fea759bacea202081c.jpeg","path":"ca5abe64b09e19fea759bacea202081c.jpeg","width":1336,"height":1500,"alt":"","aspect_ratio":0.8906666666666667},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.03","compare_at_price":"29.73","price":"49.99","retail_price":"29.73","available":true,"url":"\/products\/tagry-bluetooth-headphones-true-wireless-earbuds-60h-playback-led-power-display-earphones-with-wireless-charging-case-ipx5-waterproof-in-ear-earbuds-with-mic-for-tv-smart-phone-laptop-computer-sports?variant=5e7fb31d-261d-46e5-8758-b4b30a40990c","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"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 `
`;
}()}
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}
`
}()}
Size
: M
${function(){
const optName = "Size";
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":"5e7fb31d-261d-46e5-8758-b4b30a40990c","product_id":"7ca9b007-725d-4f95-a82d-06f3fcc3d145","title":"Black-M","weight_unit":"kg","inventory_quantity":5,"sku":"","barcode":"","position":1,"option1":"Black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ca5abe64b09e19fea759bacea202081c.jpeg","path":"ca5abe64b09e19fea759bacea202081c.jpeg","width":1336,"height":1500,"alt":"","aspect_ratio":0.8906666666666667},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.03","compare_at_price":"29.73","price":"49.99","retail_price":"29.73","available":true,"url":"\/products\/tagry-bluetooth-headphones-true-wireless-earbuds-60h-playback-led-power-display-earphones-with-wireless-charging-case-ipx5-waterproof-in-ear-earbuds-with-mic-for-tv-smart-phone-laptop-computer-sports?variant=5e7fb31d-261d-46e5-8758-b4b30a40990c","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}