${function() {
const variantData = data.variant || {"id":"92314298-f3b1-4051-a2ac-d62eac6eab03","product_id":"8b8836d5-e24f-4a1d-b300-681a314cc625","title":"Khaki-S","weight_unit":"kg","inventory_quantity":1000,"sku":"TTB8870","barcode":"","position":7,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e02cb99ed20f844b8720dba051a533b5.jpeg","path":"e02cb99ed20f844b8720dba051a533b5.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.2,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"49.2","retail_price":"0","available":true,"url":"\/products\/knitted-sleeveless-long-dress-2022-summer-dress-womens-soft-casual-stretch-a-line-mesh-patchwork-striped-hem-dresses?variant=92314298-f3b1-4051-a2ac-d62eac6eab03","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"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 + '%'
: ``
)}
`;
}()}
Free Shipping on orders over $49.99
${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":"92314298-f3b1-4051-a2ac-d62eac6eab03","product_id":"8b8836d5-e24f-4a1d-b300-681a314cc625","title":"Khaki-S","weight_unit":"kg","inventory_quantity":1000,"sku":"TTB8870","barcode":"","position":7,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e02cb99ed20f844b8720dba051a533b5.jpeg","path":"e02cb99ed20f844b8720dba051a533b5.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":49.2,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"49.2","retail_price":"0","available":true,"url":"\/products\/knitted-sleeveless-long-dress-2022-summer-dress-womens-soft-casual-stretch-a-line-mesh-patchwork-striped-hem-dresses?variant=92314298-f3b1-4051-a2ac-d62eac6eab03","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('12');
const maxDays = parseInt('15');
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 `
`;
}()}