KUGOO G-Booster Accessories - Charging Port
${function() {
const variantData = data.variant || {"id":"af9858c0-e472-4db1-b8e8-fb41bb145327","product_id":"328b2c29-c4e1-446a-95f8-dd9fda3df38a","title":"New single hole","weight_unit":"kg","inventory_quantity":0,"sku":"\u65b0\u6b3e\u5355\u5b54","barcode":"","position":1,"option1":"New single hole","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/faad2152a38c5050e613ef6851fafdb7.jpg","path":"faad2152a38c5050e613ef6851fafdb7.jpg","width":1280,"height":1707,"alt":"KUGOO G-Booster Accessories - Charging Port","aspect_ratio":0.7498535442296427},"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"25","retail_price":"0","available":true,"url":"\/products\/kugoo-g-booster-accessories-charging-port?variant=af9858c0-e472-4db1-b8e8-fb41bb145327","available_quantity":999999999,"options":[{"name":"style","value":"New single hole"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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}
`
}()}
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}
`;
}()}