Skip to content

Commit

Permalink
Merge pull request #407 from mailchimp/Issue406
Browse files Browse the repository at this point in the history
closes #406
  • Loading branch information
gonzaloebiz authored Sep 28, 2018
2 parents 1593709 + dc3a08e commit 4cd9ef3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Model/Api/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,10 @@ public function sendModifiedProduct(\Magento\Sales\Model\Order $order, $mailchim
$product->getId(),
\Ebizmarts\MailChimp\Helper\Data::IS_PRODUCT
);
if ($product->getId()!=$item->getProductId() || $product->getTypeId()=='bundle' || $product->getTypeId()=='grouped') {
if ($product->getId()!=$item->getProductId() || (
$product->getTypeId() != \Magento\Catalog\Model\Product\Type::TYPE_SIMPLE &&
$product->getTypeId() != \Magento\Catalog\Model\Product\Type::TYPE_VIRTUAL &&
$product->getTypeId() != "downloadable")) {
continue;
}
if ($productSyncData->getMailchimpSyncModified() &&
Expand Down Expand Up @@ -526,8 +529,10 @@ public function sendQuoteModifiedProduct(\Magento\Quote\Model\Quote $quote, $mai
$product->getId(),
\Ebizmarts\MailChimp\Helper\Data::IS_PRODUCT
);

if ($product->getId()!=$item->getProductId() || $product->getTypeId()=='bundle' || $product->getTypeId()=='grouped') {
if ($product->getId()!=$item->getProductId() || (
$product->getTypeId() != \Magento\Catalog\Model\Product\Type::TYPE_SIMPLE &&
$product->getTypeId() != \Magento\Catalog\Model\Product\Type::TYPE_VIRTUAL &&
$product->getTypeId() != "downloadable")) {
continue;
}

Expand Down

0 comments on commit 4cd9ef3

Please sign in to comment.