Skip to content

Commit

Permalink
Hotfix #627: Correcting Magento order increment id on checkoutSuccess…
Browse files Browse the repository at this point in the history
… observer
  • Loading branch information
dyron committed Nov 18, 2019
1 parent 5d10b2e commit f4abf21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/code/community/Conlabz/CrConnect/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ public function checkoutSuccess()
$tmpItems = array();
foreach ($items as $item) {
$tmpItem = array();
$tmpItem["order_id"] = $lastOrderId;
$tmpItem["order_id"] = $order->getIncrementId();
$tmpItem["product"] = $item->getName();
$tmpItem["product_id"] = $item->getProductId();
$tmpItem["price"] = round($item->getPrice(), 2);
$tmpItem["quantity"] = (integer)$item->getQtyOrdered();
$tmpItem["purchase_date"] = strtotime($item->getCreatedAt());
$tmpItem["purchase_date"] = strtotime($order->getCreatedAt());
$tmpItem["currency"] = $order->getData('order_currency_code');
$tmpItem["source"] = "MAGENTO Order";

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Conlabz/CrConnect/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Conlabz_CrConnect>
<version>3.4.4</version>
<version>3.4.5</version>
</Conlabz_CrConnect>
</modules>
<global>
Expand Down

0 comments on commit f4abf21

Please sign in to comment.