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 (
    7169, 7120, 7712, 7138, 7095, 7167, 7141, 
    7695, 7031, 7089, 6992, 6892, 7125, 
    6880, 6996, 7173, 7210, 7711, 7715, 
    7792, 7170, 7174, 7087, 7177
  ) 
  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.00145

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 (7169,7120,7712,7138,7095,7167,7141,7695,7031,7089,6992,6892,7125,6880,6996,7173,7210,7711,7715,7792,7170,7174,7087,7177))",
        "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
6880 5500.00000000
6892 545000.00000000
6992 12000.00000000
6996 18000.00000000
7031 18750.00000000
7087 22500.00000000
7089 23500.00000000
7095 23500.00000000
7120 24000.00000000
7125 24500.00000000
7138 24750.00000000
7141 25000.00000000
7167 25500.00000000
7169 26250.00000000
7170 26250.00000000
7173 27000.00000000
7174 27250.00000000
7177 28000.00000000
7210 28000.00000000
7695 32750.00000000
7711 31000.00000000
7712 26500.00000000
7715 28250.00000000
7792 64500.00000000