DOBABIES-Round Neck Contrasting Stripes Casual Short Sleeved T-shirt 2024 Summer Pure Cotton Tee
${function() {
const variantData = data.variant || {"id":"7dc0a98d-e737-4fe7-b8aa-21f740edd5e8","product_id":"860b0cf9-c871-4b63-9e35-68e3845f72a6","title":"Red collar-XL","weight_unit":"g","inventory_quantity":100,"sku":"DOBABIES2024-05-2214:10#Red collar;5:100014065","barcode":"","position":1,"option1":"Red collar","option2":"XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/15438302cb77e58ec749b19abc597afc.jpeg","path":"15438302cb77e58ec749b19abc597afc.jpeg","width":1064,"height":1064,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":54.88,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"54.88","retail_price":"0","available":true,"url":"\/products\/dobabies-round-neck-contrasting-stripes-casual-short-sleeved-t-shirt-2024-summer-pure-cotton-tee?variant=7dc0a98d-e737-4fe7-b8aa-21f740edd5e8","available_quantity":999999999,"options":[{"name":"Color","value":"Red collar"},{"name":"Size","value":"XL"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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}
`
}()}
Product was out of stock.
Product is unavailable.
${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}
`;
}()}