${function() {
const variantData = data.variant || {"id":"3aeaffe1-ee07-4e9c-8b10-055c4fe07177","product_id":"0f0aac22-94f4-4f60-a401-094252c1ac58","title":"White-S","weight_unit":"g","inventory_quantity":200,"sku":"47744619-white-s","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e69b0fd3b62da5a6b8e187840809888f.jpeg","path":"e69b0fd3b62da5a6b8e187840809888f.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":65.69,"min_quantity":1}],"weight":"0","compare_at_price":"72.99","price":"65.69","retail_price":"72.99","available":true,"url":"\/products\/mqtime-ruffle-cute-maternity-dresses-photography-long-pregnancy-shoot-maxi-gown-for-baby-shower-party-evening-pregnant-women-photo-prop?variant=3aeaffe1-ee07-4e9c-8b10-055c4fe07177","available_quantity":200,"options":[{"name":"Color","value":"White"},{"name":"Maternity Size","value":"S"}],"off_ratio":"10","flashsale_info":{"variant_id":"3aeaffe1-ee07-4e9c-8b10-055c4fe07177","product_id":"","quantity":0,"discount_id":"1407981d-ef87-4998-acf9-03bd90c394d2","limit_time":2472904,"limit_buy":-1,"user_limit_buy":-1,"discount_sales":0,"discount_sales_rate":"0","discount_stock":200,"ends_at":1698854399,"starts_at":1695710342,"allow_oversold":"uncheck","allocation_method":"none","price":"65.69","compare_at_price":"72.99","discount_price":"65.69","customary_saved_price":"7.3","customary_off_ratio":"10","discount_saved_price":"7.3","discount_off_ratio":"10","use_before_price":false,"before_price":"0","title":"","trunk_price":"0","total_price":"0","inventory_tracking":false,"inventory_policy":"","inventory_quantity":0,"discount_applications":null,"properties":"","color_setting_promotional_copy":""},"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}
`
}()}
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 `
`;
}()}