Palm Tree Print Slouchy Two-Piece Set
${function() {
const variantData = data.variant || {"id":"d2328088-7b6a-4f3d-b3f4-926982feb046","product_id":"6789de21-d7e1-4660-be24-4966d115c38b","title":"white-S","weight_unit":"kg","inventory_quantity":0,"sku":"662308294123-white-S","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/52b90e03c953b1fb21b682d609b56072.jpeg","path":"52b90e03c953b1fb21b682d609b56072.jpeg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"74.75","price":"49.99","retail_price":"74.75","available":true,"url":"\/products\/palm-tree-print-slouchy-two-piece-set?variant=d2328088-7b6a-4f3d-b3f4-926982feb046","available_quantity":999999999,"options":[{"name":"Color","value":"white"},{"name":"Size","value":"S"}],"off_ratio":33,"flashsale_info":[],"sales":5};
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.