Skip to content

Commit

Permalink
Merge pull request #864 from mailchimp/Issue862-2.3
Browse files Browse the repository at this point in the history
clsoes #862 for magento 2.3
  • Loading branch information
gonzaloebiz authored Sep 2, 2019
2 parents 9614ab9 + 15d9787 commit 24f964c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Model/Api/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ protected function GeneratePOSTPayload(\Magento\Sales\Model\Order $order, $mailc
);
if ($item->getProductType() == \Magento\ConfigurableProduct\Model\Product\Type\Configurable::TYPE_CODE) {
$options = $item->getProductOptions();
if (!isset($options['simple_sku'])) {
$this->_helper->log('The product ['.$item->getId().'] has no simple_sku');
continue;
}
$sku = $options['simple_sku'];
$variant = $this->_productFactory->create()->getIdBySku($sku);
if (!$variant) {
Expand Down

0 comments on commit 24f964c

Please sign in to comment.