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 (
    6927, 6950, 6955, 6956, 6963, 7003, 7061, 
    7104, 7164, 7165, 7179, 7273, 7275, 
    7305, 7310, 7311, 6897, 7106, 6967, 
    6898, 6901, 6915, 6932, 6964
  ) 
  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.00106

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 (6927,6950,6955,6956,6963,7003,7061,7104,7164,7165,7179,7273,7275,7305,7310,7311,6897,7106,6967,6898,6901,6915,6932,6964))",
        "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
6897 490000.00000000
6898 46000.00000000
6901 24000.00000000
6915 128000.00000000
6927 51000.00000000
6932 94000.00000000
6950 185000.00000000
6955 110000.00000000
6956 99000.00000000
6963 294000.00000000
6964 25000.00000000
6967 82000.00000000
7003 99000.00000000
7061 8000.00000000
7104 30000.00000000
7106 80000.00000000
7164 32000.00000000
7165 105000.00000000
7179 450000.00000000
7273 111000.00000000
7275 241000.00000000
7305 77000.00000000
7310 175000.00000000
7311 38000.00000000