Skip to content

Commit

Permalink
Merge pull request #183 from mailchimp/Issue177
Browse files Browse the repository at this point in the history
remove logs
  • Loading branch information
gonzaloebiz authored Jan 24, 2018
2 parents f976a07 + dd082ea commit 4702651
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Model/Api/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ protected function _buildOldProductRequest(

// $parentIds = $product->getTypeInstance()->getParentIdsByChild($product->getId());
$parentIds = $this->_configurable->getParentIdsByChild($product->getId());
$this->_helper->log('parents---->');
$this->_helper->log($parentIds);

//add or update variant
foreach ($parentIds as $parentId) {
Expand Down Expand Up @@ -258,7 +256,6 @@ protected function _buildOldProductRequest(
}
}
} elseif($product->getTypeId() == \Magento\ConfigurableProduct\Model\Product\Type\Configurable::TYPE_CODE) {
$this->_helper->log('es un configurable');
$childProducts = $product->getTypeInstance()->getChildrenIds($product->getId());
$variantProducts[] = $product;
if (count($childProducts[0])) {
Expand All @@ -285,7 +282,6 @@ protected function _buildOldProductRequest(
$data['operation_id'] = $this->_batchId . '_' . $product->getId();
$data['body'] = $body;
$operations[] = $data;
$this->_helper->log($operations);
return $operations;
}
protected function _buildProductData(
Expand Down

0 comments on commit 4702651

Please sign in to comment.