From eeb53c2b733fd5351e29bfb2e254124a9be9f1fe Mon Sep 17 00:00:00 2001 From: Gonzalezuy Date: Tue, 7 Sep 2021 12:03:50 -0300 Subject: [PATCH] closes #1288 for magento 2.1 --- Model/Api/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Api/Product.php b/Model/Api/Product.php index 18e44bcd..b5b0f46b 100644 --- a/Model/Api/Product.php +++ b/Model/Api/Product.php @@ -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; } }