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 (
    2906, 6689, 2908, 5405, 5404, 5527, 6686, 
    5403, 6688, 2909, 5528, 6690, 5526, 
    5402, 6687, 7510, 7509, 7705, 7745, 
    10428, 7704, 8866, 8868, 8864
  ) 
  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": "17.71"
    },
    "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": 26,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (2906,6689,2908,5405,5404,5527,6686,5403,6688,2909,5528,6690,5526,5402,6687,7510,7509,7705,7745,10428,7704,8866,8868,8864))",
        "cost_info": {
          "read_cost": "17.19",
          "eval_cost": "0.52",
          "prefix_cost": "17.71",
          "data_read_per_join": "124"
        },
        "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
2906 82000.00000000
2908 119000.00000000
2909 91000.00000000
5402 310000.00000000
5403 360000.00000000
5404 265000.00000000
5405 230000.00000000
5526 189000.00000000
5527 236250.00000000
5528 262500.00000000
6686 298000.00000000
6687 148000.00000000
6688 165000.00000000
6689 146000.00000000
6690 350000.00000000
7509 200000.00000000
7510 192000.00000000
7704 364000.00000000
7705 714000.00000000
7745 131000.00000000
8864 269000.00000000
8866 459000.00000000
8868 459000.00000000
10428 142000.00000000