Skip to content

Commit

Permalink
Merge pull request #443 from mailchimp/Issue425
Browse files Browse the repository at this point in the history
closes #425
  • Loading branch information
gonzaloebiz authored Oct 24, 2018
2 parents da38a3a + 2b68b64 commit 6fb0789
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Model/Api/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,8 @@ protected function _buildProductData(
}
$tailUrl .= $option['attribute_code'] . "=" . $product->getData($option['attribute_code']);
}
}
if ($parent) {
$this->_childtUrl = $data['url'] = $parent->getProductUrl() . $tailUrl;
if(!empty($data['image_url'])) {
if(empty($data['image_url'])) {
$filePath = 'catalog/product'.$parent->getImage();
$data["image_url"] = $this->_helper->getBaserUrl($magentoStoreId, \Magento\Framework\UrlInterface::URL_TYPE_MEDIA).$filePath;
}
Expand Down

0 comments on commit 6fb0789

Please sign in to comment.