Commuter All-Match String Top & Pants Two-Piece Set
${function() {
const variantData = data.variant || {"id":"6ad5fba9-0fcd-4707-86cf-4840b43b4e59","product_id":"fb1f5b87-4386-4c30-b58c-ae2a316da5be","title":"Apricot-XS","weight_unit":"kg","inventory_quantity":0,"sku":"MM24052914287-Apricot-XS","barcode":"","position":1,"option1":"Apricot","option2":"XS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1bede5b6f31eb952b05d52c6a63b08af.jpeg","path":"1bede5b6f31eb952b05d52c6a63b08af.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":49.37,"min_quantity":1}],"weight":"500","compare_at_price":"63.37","price":"49.37","retail_price":"63.37","available":true,"url":"\/products\/commuter-all-match-string-top-pants-two-piece-set?variant=6ad5fba9-0fcd-4707-86cf-4840b43b4e59","available_quantity":999999999,"options":[{"name":"color","value":"Apricot"},{"name":"size","value":"XS"}],"off_ratio":22,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const minDays = parseInt('8');
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 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}
`
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.