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 (
    7529, 10120, 6673, 6714, 7542, 7677, 
    8345, 8976, 6495, 6582, 6583, 6680, 
    6789, 6796, 7584, 10128, 6694, 6778, 
    6793, 7698, 8960, 9014, 10148, 10325
  ) 
  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.00090

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "18.16"
    },
    "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": 27,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (7529,10120,6673,6714,7542,7677,8345,8976,6495,6582,6583,6680,6789,6796,7584,10128,6694,6778,6793,7698,8960,9014,10148,10325))",
        "cost_info": {
          "read_cost": "17.62",
          "eval_cost": "0.54",
          "prefix_cost": "18.16",
          "data_read_per_join": "129"
        },
        "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
6495 874000.00000000
6582 1100000.00000000
6583 1100000.00000000
6673 53000.00000000
6680 159000.00000000
6694 76000.00000000
6714 219000.00000000
6778 95000.00000000
6789 84000.00000000
6793 114000.00000000
6796 70000.00000000
7529 183000.00000000
7542 218000.00000000
7584 86000.00000000
7677 73000.00000000
7698 218000.00000000
8345 1300000.00000000
8960 455000.00000000
8976 590000.00000000
9014 530000.00000000
10120 295000.00000000
10128 740000.00000000
10148 75000.00000000
10325 1610000.00000000