mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 13:16:07 +03:00
Merge pull request #11 from cyradin/master
fix order send fail when delivery code is an empty string
This commit is contained in:
commit
fcfe1ea641
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user