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 (
    9231, 9273, 9274, 9296, 9580, 9754, 9768, 
    9807, 9813, 9819, 9823, 9857, 9886, 
    9892, 9953, 9956, 10054, 10055, 7733, 
    7784, 7787, 7849, 7983, 8001
  ) 
  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.00071

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "16.81"
    },
    "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": 24,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (9231,9273,9274,9296,9580,9754,9768,9807,9813,9819,9823,9857,9886,9892,9953,9956,10054,10055,7733,7784,7787,7849,7983,8001))",
        "cost_info": {
          "read_cost": "16.33",
          "eval_cost": "0.48",
          "prefix_cost": "16.81",
          "data_read_per_join": "115"
        },
        "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
7733 105000.00000000
7784 45000.00000000
7787 33250.00000000
7849 75000.00000000
7983 96000.00000000
8001 85000.00000000
9231 232500.00000000
9273 30000.00000000
9274 30000.00000000
9296 22250.00000000
9580 88000.00000000
9754 48000.00000000
9768 84500.00000000
9807 150000.00000000
9813 18000.00000000
9819 140000.00000000
9823 95000.00000000
9857 70000.00000000
9886 88750.00000000
9892 39000.00000000
9953 22000.00000000
9956 20000.00000000
10054 61000.00000000
10055 65250.00000000