people are viewing this right now
Product was out of stock.
${function(){
const variantData = data.variant || {"id":"c9224778-1c42-4aaf-adf1-6b6e95e5ed81","product_id":"5b27d48e-6157-46a1-b10a-182e4078b435","title":"TAN","weight_unit":"kg","inventory_quantity":0,"sku":"CL15-0040-TAN","barcode":"","position":1,"option1":"TAN","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9d347fa5eacb874ef6592a3b4bbe4765.jpg","path":"9d347fa5eacb874ef6592a3b4bbe4765.jpg","width":720,"height":720,"alt":"X300U-A Ultra Led Light, LED Flashlight 300 lumens 2.4 hours - HaikeWargame","aspect_ratio":1},"wholesale_price":[{"price":32.21,"min_quantity":1}],"weight":"0","compare_at_price":"65","price":"32.21","retail_price":"65","available":true,"url":"\/products\/x300u-a-ultra-led-light-led-flashlight-300-lumens-2-4-hours?variant=c9224778-1c42-4aaf-adf1-6b6e95e5ed81","available_quantity":999999999,"options":[{"name":"Color","value":"TAN"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 499;
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 `
`;
}()}
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('7');
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 `
`;
}()}