Skip to content

Commit

Permalink
closes #1059 for magento 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Sep 17, 2020
1 parent 2bf800d commit ffdb6a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Model/Api/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ protected function _buildProductData(
$data["id"] = $product->getId();
$data["title"] = $product->getName();
$data["url"] = $product->getProductUrl();
$data["image_url"] = '';
if ($product->getImage() && $product->getImage()!='no_selection') {
$filePath = 'catalog/product'.$product->getImage();
$data["image_url"] = $this->_helper->getBaserUrl($magentoStoreId, \Magento\Framework\UrlInterface::URL_TYPE_MEDIA).$filePath;
Expand Down

0 comments on commit ffdb6a8

Please sign in to comment.