${function() {
const variantData = data.variant || {"id":"5604c747-15af-480f-9008-9500122b5ea2","product_id":"f618ad74-428e-41a4-82a8-814e1fcdddae","title":"X3","weight_unit":"kg","inventory_quantity":-8,"sku":"","barcode":"","position":1,"option1":"X3","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/77629b9447f15efb124fb6dc4ac25848.webp","path":"77629b9447f15efb124fb6dc4ac25848.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.99","price":"22.99","retail_price":"69.99","available":true,"url":"\/products\/1pc-mini-camera-full-hd-mini-camera-security-protection-night-vision-cam-motion-detection-security-camcorders-built-in-battery-camera-micro-camcorder-sd-card-loop-recording?variant=5604c747-15af-480f-9008-9500122b5ea2","available_quantity":999999999,"options":[{"name":"Model:","value":"X3"}],"off_ratio":67,"flashsale_info":[],"sales":514654};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${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":"5604c747-15af-480f-9008-9500122b5ea2","product_id":"f618ad74-428e-41a4-82a8-814e1fcdddae","title":"X3","weight_unit":"kg","inventory_quantity":-8,"sku":"","barcode":"","position":1,"option1":"X3","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/77629b9447f15efb124fb6dc4ac25848.webp","path":"77629b9447f15efb124fb6dc4ac25848.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.99","price":"22.99","retail_price":"69.99","available":true,"url":"\/products\/1pc-mini-camera-full-hd-mini-camera-security-protection-night-vision-cam-motion-detection-security-camcorders-built-in-battery-camera-micro-camcorder-sd-card-loop-recording?variant=5604c747-15af-480f-9008-9500122b5ea2","available_quantity":999999999,"options":[{"name":"Model:","value":"X3"}],"off_ratio":67,"flashsale_info":[],"sales":514654};
return `
`
}()}
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('13');
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 `
`;
}()}