Men's Trendy Printed Casual Tank Top
${function() {
const variantData = data.variant || {"id":"95e7a638-ac7e-498b-8fb1-0aab9b846921","product_id":"f0465299-64d8-47e8-a673-f53f941fdca4","title":"Green-M","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2044258847673","barcode":"","position":1,"option1":"Green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4d0d2ce75ed4b13789499b70dfaabdb4.jpeg","path":"4d0d2ce75ed4b13789499b70dfaabdb4.jpeg","width":2160,"height":2158,"alt":"","aspect_ratio":1.0009267840593141},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"15.99","retail_price":"0","available":true,"url":"\/products\/mens-trendy-printed-casual-tank-top-7145464?variant=95e7a638-ac7e-498b-8fb1-0aab9b846921","available_quantity":1000,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const variantData = data.variant || {"id":"95e7a638-ac7e-498b-8fb1-0aab9b846921","product_id":"f0465299-64d8-47e8-a673-f53f941fdca4","title":"Green-M","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2044258847673","barcode":"","position":1,"option1":"Green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4d0d2ce75ed4b13789499b70dfaabdb4.jpeg","path":"4d0d2ce75ed4b13789499b70dfaabdb4.jpeg","width":2160,"height":2158,"alt":"","aspect_ratio":1.0009267840593141},"wholesale_price":[{"price":15.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"15.99","retail_price":"0","available":true,"url":"\/products\/mens-trendy-printed-casual-tank-top-7145464?variant=95e7a638-ac7e-498b-8fb1-0aab9b846921","available_quantity":1000,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":1};
return `
`
}()}
${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 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 `
${tipText}
`;
}()}
${function() {
const postageFreeAmount = 60;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}