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 (
    10954, 11408, 6814, 6984, 7890, 10198, 
    6358, 6365, 6979, 6982, 7119, 7397, 
    7450, 7454, 7455, 7456, 7497, 7524, 
    7594, 7642, 7644, 7652, 7678, 7693
  ) 
  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.00133

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.51"
    },
    "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": 30,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (10954,11408,6814,6984,7890,10198,6358,6365,6979,6982,7119,7397,7450,7454,7455,7456,7497,7524,7594,7642,7644,7652,7678,7693))",
        "cost_info": {
          "read_cost": "18.91",
          "eval_cost": "0.60",
          "prefix_cost": "19.51",
          "data_read_per_join": "143"
        },
        "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
6358 256000.00000000
6365 205000.00000000
6814 44000.00000000
6979 5500.00000000
6982 22250.00000000
6984 14000.00000000
7119 23500.00000000
7397 1500.00000000
7450 1500.00000000
7454 1500.00000000
7455 1500.00000000
7456 1500.00000000
7497 454500.00000000
7524 38000.00000000
7594 16000.00000000
7642 227000.00000000
7644 40000.00000000
7652 109000.00000000
7678 322000.00000000
7693 96000.00000000
7890 190000.00000000
10198 630000.00000000
10954 15000.00000000
11408 391500.00000000