JOYOR Motor (ALL)
${function() {
const variantData = data.variant || {"id":"bed3b88c-3ad4-472b-a4bb-e0c0b7f63c31","product_id":"62da8445-f126-4d49-9975-13c4f5d0d2f6","title":"Front motor-Bullet Plug-S10S -Z ","weight_unit":"kg","inventory_quantity":3999,"sku":"\u524d\u7f6e\u7535\u673a \u5b50\u5f39\u63a5\u53e3 S10S-Z","barcode":"","position":1,"option1":"Front motor","option2":"Bullet Plug","option3":"S10S -Z ","note":"","image":{"src":"\/\/img.staticdj.com\/3c153b9ce1fc9ff97eb2bc15844040c4.webp","path":"3c153b9ce1fc9ff97eb2bc15844040c4.webp","width":588,"height":527,"alt":"JOYOR Motor \uff08ALL\uff09","aspect_ratio":1.1157495256166983},"wholesale_price":[{"price":200.98,"min_quantity":1}],"weight":"0","compare_at_price":"220.99","price":"200.98","retail_price":"220.99","available":true,"url":"\/products\/motor-all?variant=bed3b88c-3ad4-472b-a4bb-e0c0b7f63c31","available_quantity":999999999,"options":[{"name":"style-1","value":"Front motor"},{"name":"style-2","value":"Bullet Plug"},{"name":"Model","value":"S10S -Z "}],"off_ratio":"9","flashsale_info":{"variant_id":"bed3b88c-3ad4-472b-a4bb-e0c0b7f63c31","product_id":"","quantity":0,"discount_id":"","limit_time":0,"limit_buy":0,"user_limit_buy":0,"discount_sales":0,"discount_sales_rate":"","discount_stock":0,"ends_at":0,"starts_at":0,"allow_oversold":"","allocation_method":"","price":"200.98","compare_at_price":"","discount_price":"200.98","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"9","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":11};
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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product does not exist