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 (
    7354, 7869, 3636, 7352, 4115, 3043, 7026, 
    7025, 7024, 7027, 6755, 6756, 6754, 
    5867, 5865, 5863, 5868, 5864, 5862, 
    5869, 6368, 6824, 5149, 6029
  ) 
  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.00092

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "17.71"
    },
    "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": 26,
        "rows_produced_per_join": 4,
        "filtered": "19.12",
        "index_condition": "(`dbggbern`.`cscart_product_prices`.`product_id` in (7354,7869,3636,7352,4115,3043,7026,7025,7024,7027,6755,6756,6754,5867,5865,5863,5868,5864,5862,5869,6368,6824,5149,6029))",
        "cost_info": {
          "read_cost": "17.21",
          "eval_cost": "0.50",
          "prefix_cost": "17.71",
          "data_read_per_join": "119"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`dbggbern`.`cscart_product_prices`.`lower_limit` = 1) and (`dbggbern`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
3043 59.90000000
3636 19.90000000
4115 17.90000000
5149 6.90000000
5862 24.90000000
5863 24.90000000
5864 34.90000000
5865 34.90000000
5867 19.90000000
5868 24.90000000
5869 24.90000000
6029 24.90000000
6368 19.90000000
6754 24.90000000
6755 19.90000000
6756 34.90000000
6824 14.90000000
7024 19.90000000
7025 29.90000000
7026 14.90000000
7027 19.90000000
7352 3.90000000
7354 19.90000000
7869 3.90000000