${function() {
const variantData = data.variant || {"id":"c741f911-26cf-47a9-bf1a-9e128c9d87e2","product_id":"46962a5b-a6cf-4f93-b274-830e549a36c8","title":"1-China-18M","weight_unit":"g","inventory_quantity":300,"sku":"58525879-1-china-18m","barcode":"","position":1,"option1":"1","option2":"China","option3":"18M","note":"","image":{"src":"\/\/img.staticdj.com\/fa66351d907dbbd50829e7f2c57b6766.jpeg","path":"fa66351d907dbbd50829e7f2c57b6766.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"50.47","price":"25.99","retail_price":"50.47","available":true,"url":"\/products\/fashion-baby-boy-girl-clothes-set-tshirt-wide-bottom-pant-2pcs-summer-child-tracksuit-outfit-short-sleeve-baby-clothes-1-10y?variant=c741f911-26cf-47a9-bf1a-9e128c9d87e2","available_quantity":300,"options":[{"name":"Color","value":"1"},{"name":"Ships From","value":"China"},{"name":"Kid Size","value":"18M"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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}
`
}()}
${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.
30 Days returns, 100% Money Back Guarantee
7*24h Service at: support@mqtime.com
people are viewing this right now
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('12');
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 `
`;
}()}
${function() {
const postageFreeAmount = 35;
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 `
`;
}()}