${function() {
const variantData = data.variant || {"id":"bd6d54fa-8964-4308-9742-2f93235466cb","product_id":"a77c2be9-8b20-4073-a1b2-31655ccea03e","title":"black-M-China, Pack of 1","weight_unit":"g","inventory_quantity":1000,"sku":"51237583-black-m-china-pack-of-1","barcode":"","position":1,"option1":"black","option2":"M","option3":"China, Pack of 1","note":"","image":{"src":"\/\/img.staticdj.com\/35acea8a6238c4a290dea3dc0525b625.jpeg","path":"35acea8a6238c4a290dea3dc0525b625.jpeg","width":640,"height":594,"alt":"","aspect_ratio":1.0774410774410774},"wholesale_price":[{"price":160.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"160.99","retail_price":"0","available":true,"url":"\/products\/xituodai-2022-new-european-style-leisure-sports-suit-men-and-women-new-side-double-reflective-cotton-cardigan-two-piece-suit?variant=bd6d54fa-8964-4308-9742-2f93235466cb","available_quantity":1000,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"M"},{"name":"Ships From, Sale by Pack","value":"China, Pack of 1"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
🚚Global Fast logistics. 7-12 Days To US & UK
💲Secure payments. ✅30days Returns
${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.
${function() {
const postageFreeAmount = 34.99;
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('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 `
`;
}()}
7*24h Service at: support@xituodai.com