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 (
    7141, 7387, 7945, 9994, 7969, 7418, 7628, 
    7950, 7961, 7963, 7976, 8043, 9041, 
    9232, 6856, 7399, 8007, 8955, 9098, 
    9541, 9921, 9386, 6489, 7413
  ) 
  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.00113

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 (7141,7387,7945,9994,7969,7418,7628,7950,7961,7963,7976,8043,9041,9232,6856,7399,8007,8955,9098,9541,9921,9386,6489,7413))",
        "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
6489 207000.00000000
6856 65000.00000000
7141 25000.00000000
7387 9250.00000000
7399 1500.00000000
7413 16500.00000000
7418 11250.00000000
7628 130000.00000000
7945 25000.00000000
7950 23000.00000000
7961 23000.00000000
7963 25000.00000000
7969 218750.00000000
7976 186000.00000000
8007 248000.00000000
8043 608000.00000000
8955 24750.00000000
9041 16000.00000000
9098 15000.00000000
9232 15000.00000000
9386 5500.00000000
9541 8750.00000000
9921 3750.00000000
9994 100000.00000000