${function() {
const variantData = data.variant || {"id":"d0d5ca6e-26d1-49f4-b6df-1723ceedd1c6","product_id":"b9349923-0762-43e7-9c0d-fa5a45151de3","title":"As picture suit-One Size","weight_unit":"g","inventory_quantity":100,"sku":"35825097-as-picture-suit-one-size","barcode":"","position":1,"option1":"As picture suit","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/38a5651f3c9dd8bbe58823ff1380f19d.jpeg","path":"38a5651f3c9dd8bbe58823ff1380f19d.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.39,"min_quantity":1}],"weight":"0","compare_at_price":"35.99","price":"32.39","retail_price":"35.99","available":true,"url":"\/products\/baby-shower-dress-for-women-pregnant-woman-sexy-chiffon-perspective-lace-fancy-shooting-photo-pregnancy-dress-maternity-dresses?variant=d0d5ca6e-26d1-49f4-b6df-1723ceedd1c6","available_quantity":100,"options":[{"name":"Color","value":"As picture suit"},{"name":"Maternity Size","value":"One Size"}],"off_ratio":"10","flashsale_info":{"variant_id":"d0d5ca6e-26d1-49f4-b6df-1723ceedd1c6","product_id":"","quantity":0,"discount_id":"1407981d-ef87-4998-acf9-03bd90c394d2","limit_time":2780353,"limit_buy":-1,"user_limit_buy":-1,"discount_sales":0,"discount_sales_rate":"0","discount_stock":100,"ends_at":1698854399,"starts_at":1695710342,"allow_oversold":"uncheck","allocation_method":"none","price":"32.39","compare_at_price":"35.99","discount_price":"32.39","customary_saved_price":"3.6","customary_off_ratio":"10","discount_saved_price":"3.6","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 `
`;
}()}