JOYOR Controller (ALL)
${function() {
const variantData = data.variant || {"id":"0a822485-7bef-4393-826d-c31afd1991e3","product_id":"1726a510-f93e-4618-bec1-1f7f3e031100","title":"S10S -Banana Plug","weight_unit":"kg","inventory_quantity":89,"sku":"\u9999\u8549\u63a5\u53e3\u63a7\u5236\u5668 S10S","barcode":"","position":1,"option1":"S10S ","option2":"Banana Plug","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ead04d2062c426e277e23748e9c7a535.webp","path":"ead04d2062c426e277e23748e9c7a535.webp","width":2000,"height":2000,"alt":"JOYOR Controller \uff08ALL\uff09","aspect_ratio":1},"wholesale_price":[{"price":59.98,"min_quantity":1}],"weight":"0","compare_at_price":"100.99","price":"59.98","retail_price":"100.99","available":true,"url":"\/products\/controller-all?variant=0a822485-7bef-4393-826d-c31afd1991e3","available_quantity":89,"options":[{"name":"Controller","value":"S10S "},{"name":"Plug","value":"Banana Plug"}],"off_ratio":"41","flashsale_info":{"variant_id":"0a822485-7bef-4393-826d-c31afd1991e3","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":"59.98","compare_at_price":"","discount_price":"59.98","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"41","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":48};
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