Linen Round Neck Two-pieces Set
${function() {
const variantData = data.variant || {"id":"61869098-b572-4d5b-9294-4356740d2485","product_id":"2aaeb485-448d-4d6c-bcd1-57c3187b2bf1","title":"ivory-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21052024-ivory-s","barcode":"","position":2,"option1":"ivory","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eb9e5e51166c9c6ce8b0b403d0ce946d.jpeg","path":"eb9e5e51166c9c6ce8b0b403d0ce946d.jpeg","width":500,"height":750,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":40.4,"min_quantity":1}],"weight":"0","compare_at_price":"66.86","price":"40.4","retail_price":"66.86","available":true,"url":"\/products\/linen-round-neck-two-pieces-set?variant=61869098-b572-4d5b-9294-4356740d2485","available_quantity":999999999,"options":[{"name":"color","value":"ivory"},{"name":"size","value":"s"}],"off_ratio":40,"flashsale_info":[],"sales":150};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${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}
`
}()}
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('14');
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 `
${tipText}
`;
}()}
${function() {
const postageFreeAmount = 69;
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 `
`;
}()}
Product was out of stock.
Product is unavailable.
people are viewing this right now