${function() {
const variantData = data.variant || {"id":"4236c993-0b2f-4b79-9dab-33d72df42ed9","product_id":"d6372784-6720-4102-b0eb-9567a7ffdbf8","title":"VINTAGE INDIGO-Petite-XS","weight_unit":"kg","inventory_quantity":8,"sku":"TT7865","barcode":"","position":1,"option1":"VINTAGE INDIGO","option2":"Petite","option3":"XS","note":"","image":{"src":"\/\/img.staticdj.com\/da0e51f72013e23432cf3ff7738811e6.jpeg","path":"da0e51f72013e23432cf3ff7738811e6.jpeg","width":3578,"height":4472,"alt":"","aspect_ratio":0.8000894454382826},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.98","price":"39.99","retail_price":"79.98","available":true,"url":"\/products\/seamed-front-wide-leg-jeans?variant=4236c993-0b2f-4b79-9dab-33d72df42ed9","available_quantity":8,"options":[{"name":"Color","value":"VINTAGE INDIGO"},{"name":"Inseam","value":"Petite"},{"name":"Size","value":"XS"}],"off_ratio":50,"flashsale_info":[],"sales":3414};
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}
`
}()}
${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":"4236c993-0b2f-4b79-9dab-33d72df42ed9","product_id":"d6372784-6720-4102-b0eb-9567a7ffdbf8","title":"VINTAGE INDIGO-Petite-XS","weight_unit":"kg","inventory_quantity":8,"sku":"TT7865","barcode":"","position":1,"option1":"VINTAGE INDIGO","option2":"Petite","option3":"XS","note":"","image":{"src":"\/\/img.staticdj.com\/da0e51f72013e23432cf3ff7738811e6.jpeg","path":"da0e51f72013e23432cf3ff7738811e6.jpeg","width":3578,"height":4472,"alt":"","aspect_ratio":0.8000894454382826},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"79.98","price":"39.99","retail_price":"79.98","available":true,"url":"\/products\/seamed-front-wide-leg-jeans?variant=4236c993-0b2f-4b79-9dab-33d72df42ed9","available_quantity":8,"options":[{"name":"Color","value":"VINTAGE INDIGO"},{"name":"Inseam","value":"Petite"},{"name":"Size","value":"XS"}],"off_ratio":50,"flashsale_info":[],"sales":3414};
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 `
`;
}()}