${function() {
const variantData = data.variant || {"id":"f43a4063-2766-45f2-a444-a203f3e1a891","product_id":"b7ca765a-61de-4c93-a633-e5c0682e0fe9","title":"Black Blue-Size 3XL 85 to 90 kg","weight_unit":"g","inventory_quantity":1060,"sku":"9665681-black-blue-size-3xl-85-to-90-kg","barcode":"","position":1,"option1":"Black Blue","option2":"Size 3XL 85 to 90 kg","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d01e7ea44ad0894b2b9bbf4632a45022.jpeg","path":"d01e7ea44ad0894b2b9bbf4632a45022.jpeg","width":498,"height":502,"alt":"","aspect_ratio":0.9920318725099602},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"35.99","retail_price":"0","available":true,"url":"\/products\/wjczt-men-39-s-t-shirt-2022-summer-slim-fitness-hooded-short-sleeved-tees-male-camisa-masculina-sportswer-t-shirt-slim-tshirt-homme-5xl?variant=f43a4063-2766-45f2-a444-a203f3e1a891","available_quantity":1060,"options":[{"name":"Color","value":"Black Blue"},{"name":"Size","value":"Size 3XL 85 to 90 kg"}],"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}
`
}()}
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