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 (
    7602, 8696, 8916, 3862, 4273, 4472, 4597, 
    4658, 5103, 5339, 5350, 5647, 5812, 
    6245, 6456, 6493, 6676, 6713, 10344, 
    11121, 6857, 3854, 3949, 4609
  ) 
  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.00205

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.06"
    },
    "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": 29,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (7602,8696,8916,3862,4273,4472,4597,4658,5103,5339,5350,5647,5812,6245,6456,6493,6676,6713,10344,11121,6857,3854,3949,4609))",
        "cost_info": {
          "read_cost": "18.48",
          "eval_cost": "0.58",
          "prefix_cost": "19.06",
          "data_read_per_join": "139"
        },
        "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
3854 18000.00000000
3862 14000.00000000
3949 25000.00000000
4273 17000.00000000
4472 30000.00000000
4597 44000.00000000
4609 1500000.00000000
4658 5000.00000000
5103 35000.00000000
5339 17000.00000000
5350 20000.00000000
5647 108000.00000000
5812 40000.00000000
6245 380000.00000000
6456 975000.00000000
6493 1269000.00000000
6676 66500.00000000
6713 812000.00000000
6857 105000.00000000
7602 122000.00000000
8696 29000.00000000
8916 48000.00000000
10344 119000.00000000
11121 289500.00000000