JOYOR Controller (ALL)
${function() {
const variantData = data.variant || {"id":"0254f7bf-3220-460f-9586-fd3a3b85901a","product_id":"1726a510-f93e-4618-bec1-1f7f3e031100","title":"S5-Z \/S8-Z-Banana Plug","weight_unit":"kg","inventory_quantity":999999,"sku":"\u9999\u8549\u63a5\u53e3\u63a7\u5236\u5668S5-Z \/S8-Z","barcode":"","position":9,"option1":"S5-Z \/S8-Z","option2":"Banana Plug","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/34145e4564c3946ad29acf6cdadad43b.webp","path":"34145e4564c3946ad29acf6cdadad43b.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":"90.99","price":"59.98","retail_price":"90.99","available":true,"url":"\/products\/controller-all?variant=0254f7bf-3220-460f-9586-fd3a3b85901a","available_quantity":999999,"options":[{"name":"Controller","value":"S5-Z \/S8-Z"},{"name":"Plug","value":"Banana Plug"}],"off_ratio":"34","flashsale_info":{"variant_id":"0254f7bf-3220-460f-9586-fd3a3b85901a","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":"34","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":63};
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