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 (
    3544, 4566, 5958, 5767, 4878, 2196, 3502, 
    3988, 5884, 3537, 4451, 2240, 5957, 
    10873, 2920, 8395, 2186, 2180, 2347, 
    6459, 2287, 10213, 3056, 3414
  ) 
  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.00206

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "18.61"
    },
    "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": 28,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (3544,4566,5958,5767,4878,2196,3502,3988,5884,3537,4451,2240,5957,10873,2920,8395,2186,2180,2347,6459,2287,10213,3056,3414))",
        "cost_info": {
          "read_cost": "18.05",
          "eval_cost": "0.56",
          "prefix_cost": "18.61",
          "data_read_per_join": "134"
        },
        "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
2180 29000.00000000
2186 53500.00000000
2196 26000.00000000
2240 540000.00000000
2287 36000.00000000
2347 114000.00000000
2920 15000.00000000
3056 20000.00000000
3414 65000.00000000
3502 425000.00000000
3537 22000.00000000
3544 3850000.00000000
3988 990000.00000000
4451 264000.00000000
4566 1425000.00000000
4878 259000.00000000
5767 1957500.00000000
5884 16000.00000000
5957 15000.00000000
5958 98000.00000000
6459 3700000.00000000
8395 108000.00000000
10213 33000.00000000
10873 70000.00000000