Off road racing motorcycle helmet bicycle speed drop DH full helmet rally off-road helmet
${function() {
const variantData = data.variant || {"id":"784b07f1-9bf5-4035-9f8d-232b600ae6dc","product_id":"690ce540-96de-4318-9543-3dbae0d34c9f","title":"11-M","weight_unit":"kg","inventory_quantity":10,"sku":"12000047159448858","barcode":"","position":1,"option1":"11","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b00e8111ff1906a026419e559d60d35e.jpeg","path":"b00e8111ff1906a026419e559d60d35e.jpeg","width":800,"height":800,"alt":"Off road racing motorcycle helmet bicycle speed drop DH full helmet rally off-road helmet iENYRID-EU","aspect_ratio":1},"wholesale_price":[{"price":89.01,"min_quantity":1}],"weight":"1.41","compare_at_price":"129","price":"89.01","retail_price":"129","available":true,"url":"\/products\/off-road-racing-motorcycle-helmet-bicycle-speed-drop-dh-full-helmet-rally-off-road-helmet-odhs?variant=784b07f1-9bf5-4035-9f8d-232b600ae6dc","available_quantity":999999999,"options":[{"name":"Color","value":"11"},{"name":"Size","value":"M"}],"off_ratio":31,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
const map = {
B: ``,
C: ``,
A: `
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`
}
const price_group_arr = ["B","C","A"];
const price_str_arr = price_group_arr.map(type => map[type]);
return `
-
${price_str_arr.join('')}
`;
}()}
${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 does not exist
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('7');
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}
`;
}()}