Two-piece fashion sports and leisure sweater
${function() {
const variantData = data.variant || {"id":"6a0720be-f4d0-4979-876f-bd36369d5d35","product_id":"505bae08-b46b-4312-9fc1-98cdc2f6f120","title":"blue-L","weight_unit":"kg","inventory_quantity":0,"sku":"662109091034-blue-L","barcode":"","position":1,"option1":"blue","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f1baec144d13ef76707d1879e1e8728a.jpeg","path":"f1baec144d13ef76707d1879e1e8728a.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.62,"min_quantity":1}],"weight":"0","compare_at_price":"37.03","price":"29.62","retail_price":"37.03","available":true,"url":"\/products\/two-piece-fashion-sports-and-leisure-sweater?variant=6a0720be-f4d0-4979-876f-bd36369d5d35","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"name":"size","value":"L"}],"off_ratio":20,"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.