${function() {
const variantData = data.variant || {"id":"a1b516d4-6b58-413b-8c96-7f1378ef1ae3","product_id":"64c86e40-55fd-4a7d-adba-8eb638fb44c9","title":"Multicolor, 6pcs\/set","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Multicolor, 6pcs\/set","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c97c8bb0c7559e636f0c47bc38d11a7e.jpeg","path":"c97c8bb0c7559e636f0c47bc38d11a7e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"16.99","retail_price":"39.99","available":true,"url":"\/products\/portable-1-4-hey-shank-aluminum-drill-screwadapter-tools-6-counts-drill-holder-set-withblack-carabiner-for-summer-gifts-2024?variant=a1b516d4-6b58-413b-8c96-7f1378ef1ae3","available_quantity":999999999,"options":[{"name":"Select options","value":"Multicolor, 6pcs\/set"}],"off_ratio":58,"flashsale_info":[],"sales":59115};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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":"a1b516d4-6b58-413b-8c96-7f1378ef1ae3","product_id":"64c86e40-55fd-4a7d-adba-8eb638fb44c9","title":"Multicolor, 6pcs\/set","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Multicolor, 6pcs\/set","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c97c8bb0c7559e636f0c47bc38d11a7e.jpeg","path":"c97c8bb0c7559e636f0c47bc38d11a7e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"16.99","retail_price":"39.99","available":true,"url":"\/products\/portable-1-4-hey-shank-aluminum-drill-screwadapter-tools-6-counts-drill-holder-set-withblack-carabiner-for-summer-gifts-2024?variant=a1b516d4-6b58-413b-8c96-7f1378ef1ae3","available_quantity":999999999,"options":[{"name":"Select options","value":"Multicolor, 6pcs\/set"}],"off_ratio":58,"flashsale_info":[],"sales":59115};
return `
`
}()}
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('13');
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 `
`;
}()}