diff --git a/admin/model/retailcrm/order.php b/admin/model/retailcrm/order.php index 8f40478..2dc90b9 100644 --- a/admin/model/retailcrm/order.php +++ b/admin/model/retailcrm/order.php @@ -136,7 +136,9 @@ class ModelRetailcrmOrder extends Model { $country = (isset($order_data['shipping_country'])) ? $order_data['shipping_country'] : '' ; $order['delivery'] = array( - 'code' => $settings['retailcrm_delivery'][$delivery_code], + 'code' => !empty($settings['retailcrm_delivery'][$delivery_code]) + ? $settings['retailcrm_delivery'][$delivery_code] + : null, 'cost' => $deliveryCost, 'address' => array( 'index' => $order_data['shipping_postcode'],