${function() {
const variantData = data.variant || {"id":"9f7a51ae-c550-43a3-9f35-ac56d4e1c38c","product_id":"7cabb403-7c22-4f88-8bd6-67582aa7434f","title":"1-One Size","weight_unit":"g","inventory_quantity":98,"sku":"60599498-1-one-size","barcode":"","position":1,"option1":"1","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cf70ce4af3c4287adc6e89fd182d7e39.jpeg","path":"cf70ce4af3c4287adc6e89fd182d7e39.jpeg","width":1280,"height":1706,"alt":"","aspect_ratio":0.7502930832356389},"wholesale_price":[{"price":61.99,"min_quantity":1}],"weight":"0","compare_at_price":"122.06","price":"61.99","retail_price":"122.06","available":true,"url":"\/products\/2022-new-pure-desire-dress-for-pregnant-women-maternity-dresses-for-photo-shoot-photography-gown-for-women-baby-shower?variant=9f7a51ae-c550-43a3-9f35-ac56d4e1c38c","available_quantity":98,"options":[{"name":"Color","value":"1"},{"name":"Maternity Size","value":"One Size"}],"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}
`
}()}
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 `
`;
}()}