mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
Bug fix (#22)
This commit is contained in:
parent
61f5b369de
commit
8b1c9ec5de
@ -366,6 +366,7 @@ if ($history->isSuccessful() && count($history->history) > 0) {
|
||||
$api->ordersFixExternalIds($orderFix);
|
||||
}
|
||||
} else {
|
||||
$order = $order_history;
|
||||
$orderToUpdate = new Order((int) $order['externalId']);
|
||||
|
||||
/*
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user