${function() {
const variantData = data.variant || {"id":"0c4fd5df-d5d4-4fe5-a44c-3a377ec6f419","product_id":"421dc676-2890-4198-8f8b-49783649ebb8","title":"16 Color Remote Control Sunset LED Spotlight","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"16 Color Remote Control Sunset LED Spotlight","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8cbb918a0daddeed10c928d806bb4123.jpeg","path":"8cbb918a0daddeed10c928d806bb4123.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"22.99","retail_price":"39.99","available":true,"url":"\/products\/16-color-remote-control-sunset-led-spotlight-mini-creative-projection-ambient-light-for-home-decor-romantic-night-light-for-bedroom-coffee-store-live-wall-decoration?variant=0c4fd5df-d5d4-4fe5-a44c-3a377ec6f419","available_quantity":999999999,"options":[{"name":"Color","value":"16 Color Remote Control Sunset LED Spotlight"}],"off_ratio":43,"flashsale_info":[],"sales":2411};
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":"0c4fd5df-d5d4-4fe5-a44c-3a377ec6f419","product_id":"421dc676-2890-4198-8f8b-49783649ebb8","title":"16 Color Remote Control Sunset LED Spotlight","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"16 Color Remote Control Sunset LED Spotlight","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8cbb918a0daddeed10c928d806bb4123.jpeg","path":"8cbb918a0daddeed10c928d806bb4123.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"22.99","retail_price":"39.99","available":true,"url":"\/products\/16-color-remote-control-sunset-led-spotlight-mini-creative-projection-ambient-light-for-home-decor-romantic-night-light-for-bedroom-coffee-store-live-wall-decoration?variant=0c4fd5df-d5d4-4fe5-a44c-3a377ec6f419","available_quantity":999999999,"options":[{"name":"Color","value":"16 Color Remote Control Sunset LED Spotlight"}],"off_ratio":43,"flashsale_info":[],"sales":2411};
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 `
`;
}()}