${function() {
const variantData = data.variant || {"id":"15bc847b-41d9-47c6-8a00-b5c9096e759b","product_id":"9227a9fb-eab9-4a6d-9097-6e3aedd4823f","title":"S","weight_unit":"kg","inventory_quantity":1000,"sku":"6C4C285EC47143B0AE31FE3168570C39","barcode":"","position":1,"option1":"S","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d3e13b80772cab9caf8f2b9d97a97d72.jpeg","path":"d3e13b80772cab9caf8f2b9d97a97d72.jpeg","width":1340,"height":1785,"alt":"","aspect_ratio":0.7507002801120448},"wholesale_price":[{"price":24.4,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.4","retail_price":"0","available":true,"url":"\/products\/swimsuit-new-ruffled-womens-split-swimsuit?variant=15bc847b-41d9-47c6-8a00-b5c9096e759b","available_quantity":999999999,"options":[{"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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"15bc847b-41d9-47c6-8a00-b5c9096e759b","product_id":"9227a9fb-eab9-4a6d-9097-6e3aedd4823f","title":"S","weight_unit":"kg","inventory_quantity":1000,"sku":"6C4C285EC47143B0AE31FE3168570C39","barcode":"","position":1,"option1":"S","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d3e13b80772cab9caf8f2b9d97a97d72.jpeg","path":"d3e13b80772cab9caf8f2b9d97a97d72.jpeg","width":1340,"height":1785,"alt":"","aspect_ratio":0.7507002801120448},"wholesale_price":[{"price":24.4,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.4","retail_price":"0","available":true,"url":"\/products\/swimsuit-new-ruffled-womens-split-swimsuit?variant=15bc847b-41d9-47c6-8a00-b5c9096e759b","available_quantity":999999999,"options":[{"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 `
`;
}()}