Skip to content

Commit

Permalink
closes #1288 for magento 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed Sep 7, 2021
1 parent f259255 commit 6e761d7
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 @@ -400,7 +400,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 6e761d7

Please sign in to comment.