diff --git a/app/code/community/Conlabz/CrConnect/Model/Observer.php b/app/code/community/Conlabz/CrConnect/Model/Observer.php index e9b665d..0320c0e 100755 --- a/app/code/community/Conlabz/CrConnect/Model/Observer.php +++ b/app/code/community/Conlabz/CrConnect/Model/Observer.php @@ -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"; diff --git a/app/code/community/Conlabz/CrConnect/etc/config.xml b/app/code/community/Conlabz/CrConnect/etc/config.xml index 7faa62e..076d1f0 100755 --- a/app/code/community/Conlabz/CrConnect/etc/config.xml +++ b/app/code/community/Conlabz/CrConnect/etc/config.xml @@ -2,7 +2,7 @@ - 3.4.4 + 3.4.5