${function() {
const variantData = data.variant || {"id":"4a39ed6e-3ae6-423e-af88-588a81b069e6","product_id":"f44067ff-fda7-4701-92fd-708c3799a292","title":"Pink-XS","weight_unit":"kg","inventory_quantity":999,"sku":"TTB7517","barcode":"","position":1,"option1":"Pink","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8d1bc0694a1aadcf18dd0604341dd20f.png","path":"8d1bc0694a1aadcf18dd0604341dd20f.png","width":673,"height":590,"alt":"","aspect_ratio":1.1406779661016948},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"32.99","retail_price":"0","available":true,"url":"\/products\/double-fabric-ins-style-retro-printed-swimsuit-conservative-one-piece-swimsuit-womens-large-size-polyester-printed-skirt?variant=4a39ed6e-3ae6-423e-af88-588a81b069e6","available_quantity":999999999,"options":[{"name":"color","value":"Pink"},{"name":"size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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":"4a39ed6e-3ae6-423e-af88-588a81b069e6","product_id":"f44067ff-fda7-4701-92fd-708c3799a292","title":"Pink-XS","weight_unit":"kg","inventory_quantity":999,"sku":"TTB7517","barcode":"","position":1,"option1":"Pink","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8d1bc0694a1aadcf18dd0604341dd20f.png","path":"8d1bc0694a1aadcf18dd0604341dd20f.png","width":673,"height":590,"alt":"","aspect_ratio":1.1406779661016948},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"32.99","retail_price":"0","available":true,"url":"\/products\/double-fabric-ins-style-retro-printed-swimsuit-conservative-one-piece-swimsuit-womens-large-size-polyester-printed-skirt?variant=4a39ed6e-3ae6-423e-af88-588a81b069e6","available_quantity":999999999,"options":[{"name":"color","value":"Pink"},{"name":"size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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 `
`;
}()}