Changing the connection to bootstrap.php (#229)

This commit is contained in:
Day Vladimir 2021-05-06 13:42:45 +02:00 committed by GitHub
parent 4e09c021c8
commit d058173aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 21 deletions

View File

@ -265,6 +265,8 @@ class ModelExtensionRetailcrmOrder extends Model {
if (isset($properties)) $item['properties'] = $properties;
$order['items'][] = $item;
}
if (isset($order_data['order_status_id']) && $order_data['order_status_id'] > 0) {
$order['status'] = $this->settings[$this->moduleTitle . '_status'][$order_data['order_status_id']];
@ -285,7 +287,6 @@ class ModelExtensionRetailcrmOrder extends Model {
$order['customFields'] = $customFieldsToCrm;
}
}
}
$payment = array(
'externalId' => $order_id,

View File

@ -10,7 +10,7 @@ use retailcrm\factory\OrderConverterFactory;
use retailcrm\factory\CustomerConverterFactory;
use retailcrm\service\SettingsManager;
require_once 'bootstrap.php';
require_once DIR_SYSTEM . 'library/retailcrm/bootstrap.php';
class Retailcrm {