${function() {
const variantData = data.variant || {"id":"07a51ad5-a836-4757-9a0d-e33485a6f11d","product_id":"c3180227-2aef-44ac-af7e-631b262795ee","title":"Black-25","weight_unit":"kg","inventory_quantity":998,"sku":"D3635FE9DE5D4F0BB84D9C66D799651A","barcode":"","position":1,"option1":"Black","option2":"25","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d9a307d324c41a14438ab49b397537f0.jpeg","path":"d9a307d324c41a14438ab49b397537f0.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":36.7,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"36.7","retail_price":"0","available":true,"url":"\/products\/slim-pencil-pants-vintage-high-waist-jeans-full-length-pants-loose-cowboy-pants?variant=07a51ad5-a836-4757-9a0d-e33485a6f11d","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"25"}],"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":"07a51ad5-a836-4757-9a0d-e33485a6f11d","product_id":"c3180227-2aef-44ac-af7e-631b262795ee","title":"Black-25","weight_unit":"kg","inventory_quantity":998,"sku":"D3635FE9DE5D4F0BB84D9C66D799651A","barcode":"","position":1,"option1":"Black","option2":"25","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d9a307d324c41a14438ab49b397537f0.jpeg","path":"d9a307d324c41a14438ab49b397537f0.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":36.7,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"36.7","retail_price":"0","available":true,"url":"\/products\/slim-pencil-pants-vintage-high-waist-jeans-full-length-pants-loose-cowboy-pants?variant=07a51ad5-a836-4757-9a0d-e33485a6f11d","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"25"}],"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 `
`;
}()}