SELECT 
  cscart_product_prices.product_id, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  cscart_product_prices 
WHERE 
  cscart_product_prices.product_id IN (
    7950, 7961, 7963, 7976, 8043, 8629, 8701, 
    8739, 8748, 9041, 9232, 10331, 11136, 
    11193, 11352, 11458, 6545, 8576, 6684, 
    6856, 6161, 6189, 6257, 6287
  ) 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  cscart_product_prices.product_id

Query time 0.00091

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "22.21"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 36,
        "rows_produced_per_join": 7,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (7950,7961,7963,7976,8043,8629,8701,8739,8748,9041,9232,10331,11136,11193,11352,11458,6545,8576,6684,6856,6161,6189,6257,6287))",
        "cost_info": {
          "read_cost": "21.49",
          "eval_cost": "0.72",
          "prefix_cost": "22.21",
          "data_read_per_join": "172"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
6161 19000.00000000
6189 117500.00000000
6257 97500.00000000
6287 3234000.00000000
6545 69000.00000000
6684 438000.00000000
6856 65000.00000000
7950 23000.00000000
7961 23000.00000000
7963 25000.00000000
7976 186000.00000000
8043 608000.00000000
8576 19000.00000000
8629 46000.00000000
8701 284000.00000000
8739 67000.00000000
8748 55000.00000000
9041 16000.00000000
9232 15000.00000000
10331 943000.00000000
11136 273000.00000000
11193 330000.00000000
11352 388500.00000000
11458 312000.00000000