1/3/5Pcs Plastic Bag Matte Translucent Umbrella Storage Bag Reusable Portable Umbrella Drawstring Storage Cover Home Organizer
${function() {
const variantData = data.variant || {"id":"35f5d4d1-bad4-4578-850d-f4649ef8b56a","product_id":"ba1115a7-23a3-4502-bfe6-1d9162d4b79d","title":"5Pcs","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"5Pcs","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":1.55,"min_quantity":1}],"weight":"0","compare_at_price":"2.92","price":"1.55","retail_price":"2.92","available":true,"url":"\/products\/1-3-5pcs-plastic-bag-matte-translucent-umbrella-storage-bag-reusable-portable-umbrella-drawstring-storage-cover-home-organizer?variant=35f5d4d1-bad4-4578-850d-f4649ef8b56a","available_quantity":999999999,"options":[{"name":"Color","value":"5Pcs"}],"off_ratio":47,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${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":"35f5d4d1-bad4-4578-850d-f4649ef8b56a","product_id":"ba1115a7-23a3-4502-bfe6-1d9162d4b79d","title":"5Pcs","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"5Pcs","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":1.55,"min_quantity":1}],"weight":"0","compare_at_price":"2.92","price":"1.55","retail_price":"2.92","available":true,"url":"\/products\/1-3-5pcs-plastic-bag-matte-translucent-umbrella-storage-bag-reusable-portable-umbrella-drawstring-storage-cover-home-organizer?variant=35f5d4d1-bad4-4578-850d-f4649ef8b56a","available_quantity":999999999,"options":[{"name":"Color","value":"5Pcs"}],"off_ratio":47,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('15');
const maxDays = parseInt('30');
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 `
${tipText}
`;
}()}