people are viewing this right now
Product was out of stock.
Sku : CL15-0071
Weight : 0.24kg
${function(){
const variantData = data.variant || {"id":"b9afa27c-dc65-4785-9c47-1c8cf8fe45fe","product_id":"eff0ccf1-ded5-4114-8104-23d297c12816","title":"","weight_unit":"kg","inventory_quantity":10000,"sku":"CL15-0071","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":27.47,"min_quantity":1}],"weight":"0.24","compare_at_price":"57","price":"27.47","retail_price":"57","available":true,"url":"\/products\/best-cheap-powerful-led-flashlight?variant=b9afa27c-dc65-4785-9c47-1c8cf8fe45fe","available_quantity":999999999,"options":[],"off_ratio":52,"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 `
`;
}()}