iENYRID Electric Scooter Shock Absorber
${function() {
const variantData = data.variant || {"id":"2aa6cc7b-76e6-4119-be4f-0b9cd1cd3ba3","product_id":"497c1144-067d-41db-a21f-b22316126978","title":"Former Shock Absorber","weight_unit":"kg","inventory_quantity":0,"sku":"\u524d\u51cf\u9707\u5668\u4e00\u5bf9","barcode":"","position":1,"option1":"Former Shock Absorber","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7fcd0df7a891ab0eb13f9e054617f281.webp","path":"7fcd0df7a891ab0eb13f9e054617f281.webp","width":1500,"height":1500,"alt":"iENYRID Electric Scooter Shock Absorber Ienyrid-eu","aspect_ratio":1},"wholesale_price":[{"price":29,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"29","retail_price":"0","available":true,"url":"\/products\/ienyrid-electric-scooter-shock-absorber?variant=2aa6cc7b-76e6-4119-be4f-0b9cd1cd3ba3","available_quantity":999999999,"options":[{"name":"Model","value":"Former Shock Absorber"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
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('')}
`;
}()}
Model:
Former Shock Absorber
${function(){
const optName = "Model";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
Buy now
Product was out of stock.
Product does not exist
${function() {
const minDays = parseInt('2');
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}
`;
}()}