This commit is contained in:
Akolzin Dmitry 2017-09-27 11:54:20 +02:00 committed by Alex Lushpai
parent 61f5b369de
commit 8b1c9ec5de
2 changed files with 3 additions and 2 deletions

View File

@ -366,6 +366,7 @@ if ($history->isSuccessful() && count($history->history) > 0) {
$api->ordersFixExternalIds($orderFix);
}
} else {
$order = $order_history;
$orderToUpdate = new Order((int) $order['externalId']);
/*

View File

@ -587,7 +587,7 @@ class RetailCRM extends Module
$response = $this->api->ordersGet($order_id);
if ($response->isSuccessful()) {
if ($response !== false) {
$orderCRM = $response['order'];
if ($orderCRM && $orderCRM['payments']) {
foreach ($orderCRM['payments'] as $orderPayment) {
@ -641,7 +641,7 @@ class RetailCRM extends Module
);
$response = $api->deliveryTypesList();
if ($response->isSuccessful()) {
if ($response !== false) {
return true;
}