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 (
    9632, 6989, 6995, 6997, 7142, 7171, 7172, 
    8122, 8146, 8164, 8693, 7132, 8114, 
    8135, 8138, 8127, 8132, 8136, 8167, 
    7795, 8137, 8688, 9732, 7710
  ) 
  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.00115

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 (9632,6989,6995,6997,7142,7171,7172,8122,8146,8164,8693,7132,8114,8135,8138,8127,8132,8136,8167,7795,8137,8688,9732,7710))",
        "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
6989 8250.00000000
6995 17000.00000000
6997 18000.00000000
7132 24750.00000000
7142 25000.00000000
7171 26500.00000000
7172 27000.00000000
7710 13000.00000000
7795 40750.00000000
8114 24750.00000000
8122 26750.00000000
8127 38250.00000000
8132 30000.00000000
8135 29000.00000000
8136 34750.00000000
8137 21750.00000000
8138 26000.00000000
8146 103000.00000000
8164 33000.00000000
8167 29000.00000000
8688 26500.00000000
8693 33000.00000000
9632 25000.00000000
9732 28000.00000000