KuKirin Bundle – G4 (Speed) + G2 Max (Range) | Save €60, Ride Limitless
${function() {
const variantData = data.variant || {"id":"df33e0f9-0f19-4be2-a7ef-260c12a9ce76","product_id":"0da51cfc-0a8e-4ad4-92ae-8806dfd4dce5","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":1538,"min_quantity":1}],"weight":"0","compare_at_price":"2198","price":"1538","retail_price":"2198","available":true,"url":"\/products\/kukirin-g4-g2-max-electric-scooter-bundle?variant=df33e0f9-0f19-4be2-a7ef-260c12a9ce76","available_quantity":999999999,"options":[],"off_ratio":30,"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('')}
`;
}()}
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}
`;
}()}