Mtcytea Handmade Sheep Baa Bucket Hat Lolita Sheep Cap with Ears Cute Girl Lambswool Material Black White Sheep Ear Hat Holiday Gift
${function() {
const variantData = data.variant || {"id":"71e52e01-417d-4a95-b49e-81d6370ea583","product_id":"b3d00b2d-29cb-46ed-bacd-7f9ae4cc8037","title":"White round Ear","weight_unit":"lb","inventory_quantity":1000,"sku":"92918826-white-round-ear","barcode":"","position":1,"option1":"White round Ear","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b67a1a69c9657065fe008542cfe0c271.jpeg","path":"b67a1a69c9657065fe008542cfe0c271.jpeg","width":1170,"height":1170,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"21.99","price":"21.99","retail_price":"21.99","available":true,"url":"\/products\/mtcytea-handmade-sheep-baa-bucket-hat-lolita-sheep-cap-with-ears-cute-girl-lambswool-material-black-white-sheep-ear-hat-holiday-gift?variant=71e52e01-417d-4a95-b49e-81d6370ea583","available_quantity":999999999,"options":[{"name":"Color","value":"White round Ear"}],"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":"71e52e01-417d-4a95-b49e-81d6370ea583","product_id":"b3d00b2d-29cb-46ed-bacd-7f9ae4cc8037","title":"White round Ear","weight_unit":"lb","inventory_quantity":1000,"sku":"92918826-white-round-ear","barcode":"","position":1,"option1":"White round Ear","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b67a1a69c9657065fe008542cfe0c271.jpeg","path":"b67a1a69c9657065fe008542cfe0c271.jpeg","width":1170,"height":1170,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"21.99","price":"21.99","retail_price":"21.99","available":true,"url":"\/products\/mtcytea-handmade-sheep-baa-bucket-hat-lolita-sheep-cap-with-ears-cute-girl-lambswool-material-black-white-sheep-ear-hat-holiday-gift?variant=71e52e01-417d-4a95-b49e-81d6370ea583","available_quantity":999999999,"options":[{"name":"Color","value":"White round Ear"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}