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 (
    6536, 6128, 2181, 29737, 41774, 40760, 
    1532, 6159, 46143, 26919, 40759, 6172, 
    6125, 41600, 26925, 46141, 6169, 14950, 
    26928, 6095, 3495, 26926, 6164, 47899, 
    1473, 26923, 6171, 26921, 6127, 6170, 
    6541, 26929
  ) 
  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.12776

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_product_prices.product_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_product_prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "lower_limit",
              "key_length": "3",
              "used_key_parts": ["lower_limit"],
              "ref": ["const"],
              "rows": 25327,
              "filtered": 8.080804825,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (6536,6128,2181,29737,41774,40760,1532,6159,46143,26919,40759,6172,6125,41600,26925,46141,6169,14950,26928,6095,3495,26926,6164,47899,1473,26923,6171,26921,6127,6170,6541,26929) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
1473 750000.0000
1532 225000.0000
2181 41900.0000
3495 109000.0000
6095 135000.0000
6125 70000.0000
6127 99000.0000
6128 99000.0000
6159 80000.0000
6164 80000.0000
6169 85000.0000
6170 65000.0000
6171 65000.0000
6172 85000.0000
6536 140000.0000
6541 170000.0000
14950 690000.0000
26919 22000.0000
26921 23000.0000
26923 39000.0000
26925 110000.0000
26926 80000.0000
26928 115000.0000
26929 75000.0000
29737 70000.0000
40759 382000.0000
40760 579000.0000
41600 15300.0000
41774 60000.0000
46141 58000.0000
46143 69000.0000
47899 151000.0000