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 (
    7159, 7266, 11313, 7069, 7157, 6906, 
    6929, 7092, 7133, 7166, 6935, 7018, 
    7072, 7134, 7139, 7154, 6930, 6936, 
    7115, 7269, 7162, 6921, 6934, 6968
  ) 
  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.00172

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 (7159,7266,11313,7069,7157,6906,6929,7092,7133,7166,6935,7018,7072,7134,7139,7154,6930,6936,7115,7269,7162,6921,6934,6968))",
        "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
6906 105000.00000000
6921 292000.00000000
6929 264000.00000000
6930 300000.00000000
6934 199000.00000000
6935 295000.00000000
6936 165000.00000000
6968 27000.00000000
7018 35000.00000000
7069 36000.00000000
7072 12000.00000000
7092 49000.00000000
7115 25000.00000000
7133 51000.00000000
7134 599000.00000000
7139 420000.00000000
7154 105000.00000000
7157 165000.00000000
7159 206500.00000000
7162 88000.00000000
7166 75000.00000000
7266 95000.00000000
7269 41000.00000000
11313 41000.00000000