Summer vacation style printed two-piece set
${function() {
const variantData = data.variant || {"id":"82cdaaf7-1dc0-48d7-a926-54b7e98b6ef4","product_id":"e40710ba-6c09-42be-a40d-d0c1be8da595","title":"Warm yellow-1-S","weight_unit":"kg","inventory_quantity":0,"sku":"662402061496-Warm yellow-1-S","barcode":"","position":1,"option1":"Warm yellow-1","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9d9e9a1e3010e37a09766820562da5a4.jpeg","path":"9d9e9a1e3010e37a09766820562da5a4.jpeg","width":500,"height":750,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":45.79,"min_quantity":1}],"weight":"400","compare_at_price":"68","price":"45.79","retail_price":"68","available":true,"url":"\/products\/summer-vacation-style-printed-two-piece-set-ctvl?variant=82cdaaf7-1dc0-48d7-a926-54b7e98b6ef4","available_quantity":999999999,"options":[{"name":"Color","value":"Warm yellow-1"},{"name":"Size","value":"S"}],"off_ratio":33,"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.