Skip to content

Commit

Permalink
closes #1288 for magento 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Sep 7, 2021
1 parent 2bdbf1f commit eeb53c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Api/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ protected function _buildProductData(
} else {
$parent = $this->_getParent($product->getId(), $magentoStoreId);
if ($parent && $parent->getImage() && $parent->getImage()!='no_selection') {
$filePath = 'catalog/product'.ltrim($parent->getImage(), '/');
$filePath = 'catalog/product/'.ltrim($parent->getImage(), '/');
$data["image_url"] = $this->_helper->getBaserUrl($magentoStoreId, \Magento\Framework\UrlInterface::URL_TYPE_MEDIA).$filePath;
}
}
Expand Down

0 comments on commit eeb53c2

Please sign in to comment.