1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00
Minor fix
This commit is contained in:
Ivan Chaplygin 2024-06-03 12:29:16 +03:00
parent ba3aca23b5
commit 0554c07474

View file

@ -344,7 +344,7 @@ if (!class_exists('WC_Retailcrm_Orders')) :
$response = $this->retailcrm->ordersEdit($this->order);
$response = apply_filters('retailcrm_order_update_after', $response, $wcOrder);
if ($response instanceof WC_Retailcrm_Response && $response->isSuccessful()) {
if ($response instanceof WC_Retailcrm_Response && $response->isSuccessful() && isset($response['order'])) {
$this->payment = $this->orderUpdatePaymentType($wcOrder);
if ($needRecalculate) {