title: Magento 2 - Adding final price and websites to product collection
body: <p>I am looking to override the standard Magento2 getList() method in \app\code\Magento\Catalog\Model\ProductRepository.php</p>
  
  <p>I've tried $collection->addFinalPrice() and $collection->addMinimalPrice(), however, even when a catalog discount is in place, the full item price is still returned.</p>
  
  <p>If I add $collection->addWebsiteNamesToResult() - nothing happens, I would like add a list of websites to which the product is assigned to the collection - how would I go about this?</p>
  
  <p>Here is a sample of the edited code (for testing purposes only).</p>
  
  <pre><code>  public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria)
  {
      /** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */
      $collection = $this-&gt;collectionFactory-&gt;create();
      $this-&gt;extensionAttributesJoinProcessor-&gt;process($collection);
  
      foreach ($this-&gt;metadataService-&gt;getList($this-&gt;searchCriteriaBuilder-&gt;create())-&gt;getItems() as $metadata) {
          $collection-&gt;addAttributeToSelect($metadata-&gt;getAttributeCode());
      }
      $collection-&gt;joinAttribute('status', 'catalog_product/status', 'entity_id', null, 'inner');
      $collection-&gt;joinAttribute('visibility', 'catalog_product/visibility', 'entity_id', null, 'inner');
  
  
      //Add filters from root filter group to the collection
      foreach ($searchCriteria-&gt;getFilterGroups() as $group) {
          $this-&gt;addFilterGroupToCollection($group, $collection);
      }
      /** @var SortOrder $sortOrder */
      foreach ((array)$searchCriteria-&gt;getSortOrders() as $sortOrder) {
          $field = $sortOrder-&gt;getField();
          $collection-&gt;addOrder(
              $field,
              ($sortOrder-&gt;getDirection() == SortOrder::SORT_ASC) ? 'ASC' : 'DESC'
          );
      }
      //ADDED CODE HERE------------------------------
      $collection-&gt;addWebsiteNamesToResult();
      $collection-&gt;addFinalPrice();
      $collection-&gt;applyFrontendPriceLimitations();
      //END ADDED CODE-----------------------------------
  
      $collection-&gt;setCurPage($searchCriteria-&gt;getCurrentPage());
      $collection-&gt;setPageSize($searchCriteria-&gt;getPageSize());
      $collection-&gt;load();
  
      $searchResult = $this-&gt;searchResultsFactory-&gt;create();
      $searchResult-&gt;setSearchCriteria($searchCriteria);
      $searchResult-&gt;setItems($collection-&gt;getItems());
      $searchResult-&gt;setTotalCount($collection-&gt;getSize());
      return $searchResult;
  }
  </code></pre>