${function() {
const variantData = data.variant || {"id":"5642e771-565a-4aa7-8247-badd6c50ebbd","product_id":"f50230a2-d0dc-4066-a69a-83b8a3fee8a7","title":"Pumpkin - Drag five-Solar model","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Pumpkin - Drag five","option2":"Solar model","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/779df9b03ba34a3964aee41a865768cf.jpeg","path":"779df9b03ba34a3964aee41a865768cf.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"32.99","retail_price":"0","available":true,"url":"\/products\/room-decor-pumpkin-design-solar-powered-light-5-counts-set-outdoor-halloween-decoration-light-waterproof-light-for-garden-patio-yard-pathway?variant=5642e771-565a-4aa7-8247-badd6c50ebbd","available_quantity":999999999,"options":[{"name":"Select options","value":"Pumpkin - Drag five"},{"name":"style","value":"Solar model"}],"off_ratio":0,"flashsale_info":[],"sales":626101};
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}
`
}()}
${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":"5642e771-565a-4aa7-8247-badd6c50ebbd","product_id":"f50230a2-d0dc-4066-a69a-83b8a3fee8a7","title":"Pumpkin - Drag five-Solar model","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Pumpkin - Drag five","option2":"Solar model","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/779df9b03ba34a3964aee41a865768cf.jpeg","path":"779df9b03ba34a3964aee41a865768cf.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"32.99","retail_price":"0","available":true,"url":"\/products\/room-decor-pumpkin-design-solar-powered-light-5-counts-set-outdoor-halloween-decoration-light-waterproof-light-for-garden-patio-yard-pathway?variant=5642e771-565a-4aa7-8247-badd6c50ebbd","available_quantity":999999999,"options":[{"name":"Select options","value":"Pumpkin - Drag five"},{"name":"style","value":"Solar model"}],"off_ratio":0,"flashsale_info":[],"sales":626101};
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 `
`;
}()}