JOYOR Controller (ALL)
${function() {
const variantData = data.variant || {"id":"971ac603-2414-47b3-9bd8-1c9c2b7c8ac2","product_id":"1726a510-f93e-4618-bec1-1f7f3e031100","title":"S10S-Z-Banana Plug","weight_unit":"kg","inventory_quantity":2992,"sku":"\u63a7\u5236\u566860V(\u8f6c\u5411\u706f\u6b3e)","barcode":"","position":1,"option1":"S10S-Z","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":80.98,"min_quantity":1}],"weight":"0","compare_at_price":"151.99","price":"80.98","retail_price":"151.99","available":true,"url":"\/products\/controller-all?variant=971ac603-2414-47b3-9bd8-1c9c2b7c8ac2","available_quantity":2992,"options":[{"name":"Controller","value":"S10S-Z"},{"name":"Plug","value":"Banana Plug"}],"off_ratio":"47","flashsale_info":{"variant_id":"971ac603-2414-47b3-9bd8-1c9c2b7c8ac2","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":"80.98","compare_at_price":"","discount_price":"80.98","customary_saved_price":"","customary_off_ratio":"","discount_saved_price":"","discount_off_ratio":"47","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":112};
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