${function() {
const variantData = data.variant || {"id":"0b95a78d-fca3-44b4-8e50-bfb7bfb9b1eb","product_id":"9474fbfe-14ff-4cea-bc96-876718191b87","title":"Purple Light","weight_unit":"kg","inventory_quantity":9999,"sku":"OG1801PL","barcode":"","position":1,"option1":"Purple Light","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2ae610f43c76eb1dea50fadd6de3d137.jpeg","path":"2ae610f43c76eb1dea50fadd6de3d137.jpeg","width":700,"height":700,"alt":"1902A Flashlight Rechargeable Lantern 4 Lighting Mode","aspect_ratio":1},"wholesale_price":[{"price":10.23,"min_quantity":1}],"weight":"0.18","compare_at_price":"0","price":"10.23","retail_price":"0","available":true,"url":"\/products\/1902a-flashlight-rechargeable-lantern-4-lighting-mode?variant=0b95a78d-fca3-44b4-8e50-bfb7bfb9b1eb","available_quantity":9999,"options":[{"name":"Color","value":"Purple Light"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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.
Sku : OG1801PL
Weight : 0.18kg
${function(){
const variantData = data.variant || {"id":"0b95a78d-fca3-44b4-8e50-bfb7bfb9b1eb","product_id":"9474fbfe-14ff-4cea-bc96-876718191b87","title":"Purple Light","weight_unit":"kg","inventory_quantity":9999,"sku":"OG1801PL","barcode":"","position":1,"option1":"Purple Light","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2ae610f43c76eb1dea50fadd6de3d137.jpeg","path":"2ae610f43c76eb1dea50fadd6de3d137.jpeg","width":700,"height":700,"alt":"1902A Flashlight Rechargeable Lantern 4 Lighting Mode","aspect_ratio":1},"wholesale_price":[{"price":10.23,"min_quantity":1}],"weight":"0.18","compare_at_price":"0","price":"10.23","retail_price":"0","available":true,"url":"\/products\/1902a-flashlight-rechargeable-lantern-4-lighting-mode?variant=0b95a78d-fca3-44b4-8e50-bfb7bfb9b1eb","available_quantity":9999,"options":[{"name":"Color","value":"Purple Light"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('7');
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 `
`;
}()}
people are viewing this right now