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 (
    6780, 6689, 6769, 6686, 6688, 6785, 6690, 
    6670, 6799, 6687, 6773, 6795, 6784, 
    6777, 6691, 6807, 6770, 6781, 6783, 
    6776, 6797, 6774, 6790, 7315
  ) 
  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.00094

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 (6780,6689,6769,6686,6688,6785,6690,6670,6799,6687,6773,6795,6784,6777,6691,6807,6770,6781,6783,6776,6797,6774,6790,7315))",
        "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
6670 149000.00000000
6686 298000.00000000
6687 148000.00000000
6688 165000.00000000
6689 146000.00000000
6690 350000.00000000
6691 67000.00000000
6769 245000.00000000
6770 83000.00000000
6773 86000.00000000
6774 100000.00000000
6776 97000.00000000
6777 105000.00000000
6780 125000.00000000
6781 39000.00000000
6783 51000.00000000
6784 58000.00000000
6785 85000.00000000
6790 56000.00000000
6795 229000.00000000
6797 79000.00000000
6799 85000.00000000
6807 154000.00000000
7315 39000.00000000