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 (
    8545, 9217, 9241, 9324, 9446, 9704, 9820, 
    10494, 10499, 10505, 10514, 7087, 7177, 
    7433, 7446, 7491, 7530, 7666, 7907, 
    7911, 7915, 7936, 8679, 9523
  ) 
  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.00136

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "21.76"
    },
    "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": 35,
        "rows_produced_per_join": 6,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (8545,9217,9241,9324,9446,9704,9820,10494,10499,10505,10514,7087,7177,7433,7446,7491,7530,7666,7907,7911,7915,7936,8679,9523))",
        "cost_info": {
          "read_cost": "21.06",
          "eval_cost": "0.70",
          "prefix_cost": "21.76",
          "data_read_per_join": "167"
        },
        "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
7087 22500.00000000
7177 28000.00000000
7433 1500.00000000
7446 26500.00000000
7491 51750.00000000
7530 122000.00000000
7666 162750.00000000
7907 52000.00000000
7911 42000.00000000
7915 160000.00000000
7936 42000.00000000
8545 85000.00000000
8679 16250.00000000
9217 30750.00000000
9241 15000.00000000
9324 18750.00000000
9446 48000.00000000
9523 12000.00000000
9704 3000.00000000
9820 105000.00000000
10494 66750.00000000
10499 66750.00000000
10505 66750.00000000
10514 60000.00000000