Mtcytea Winter Knitted Hat For Women Acrylic Beanie Unisex Elastic Warm Hip Hop Cap Soft Baggy Bonnet шапка женская Wholesale
${function() {
const variantData = data.variant || {"id":"ea621be9-210c-4c12-99c7-483c8fccc1e7","product_id":"9edd99f7-2003-4147-8c76-99e5576079ee","title":"white","weight_unit":"lb","inventory_quantity":1000,"sku":"59156956-white","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/18039e06aa7dd06845d3f8f60d4003f3.jpeg","path":"18039e06aa7dd06845d3f8f60d4003f3.jpeg","width":734,"height":733,"alt":"","aspect_ratio":1.0013642564802183},"wholesale_price":[{"price":7.99,"min_quantity":1}],"weight":"0","compare_at_price":"7.99","price":"7.99","retail_price":"7.99","available":true,"url":"\/products\/mtcytea-winter-knitted-hat-for-women-acrylic-beanie-unisex-elastic-warm-hip-hop-cap-soft-baggy-bonnet-\u0448\u0430\u043f\u043a\u0430-\u0436\u0435\u043d\u0441\u043a\u0430\u044f-wholesale?variant=ea621be9-210c-4c12-99c7-483c8fccc1e7","available_quantity":999999999,"options":[{"name":"Color","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('15');
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 = 19.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 tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"ea621be9-210c-4c12-99c7-483c8fccc1e7","product_id":"9edd99f7-2003-4147-8c76-99e5576079ee","title":"white","weight_unit":"lb","inventory_quantity":1000,"sku":"59156956-white","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/18039e06aa7dd06845d3f8f60d4003f3.jpeg","path":"18039e06aa7dd06845d3f8f60d4003f3.jpeg","width":734,"height":733,"alt":"","aspect_ratio":1.0013642564802183},"wholesale_price":[{"price":7.99,"min_quantity":1}],"weight":"0","compare_at_price":"7.99","price":"7.99","retail_price":"7.99","available":true,"url":"\/products\/mtcytea-winter-knitted-hat-for-women-acrylic-beanie-unisex-elastic-warm-hip-hop-cap-soft-baggy-bonnet-\u0448\u0430\u043f\u043a\u0430-\u0436\u0435\u043d\u0441\u043a\u0430\u044f-wholesale?variant=ea621be9-210c-4c12-99c7-483c8fccc1e7","available_quantity":999999999,"options":[{"name":"Color","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}