mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-21 20:56:07 +03:00
fixes custom and config path (#188)
This commit is contained in:
parent
d73219fcbb
commit
85de4835d5
@ -59,6 +59,9 @@ class ControllerExtensionModuleRetailcrm extends Controller {
|
||||
|
||||
if (file_exists(DIR_APPLICATION . 'model/extension/retailcrm/custom/order.php')) {
|
||||
$this->load->model('extension/retailcrm/custom/order');
|
||||
$order_data['products'] = $products;
|
||||
$order_data['totals'] = $totals;
|
||||
|
||||
$order = $this->model_extension_retailcrm_custom_order->processOrder($order_data);
|
||||
$this->model_extension_retailcrm_custom_order->sendToCrm($order, $this->retailcrmApiClient, $order_data);
|
||||
} else {
|
||||
@ -111,6 +114,9 @@ class ControllerExtensionModuleRetailcrm extends Controller {
|
||||
|
||||
if (file_exists(DIR_APPLICATION . 'model/extension/retailcrm/custom/order.php')) {
|
||||
$this->load->model('extension/retailcrm/custom/order');
|
||||
$data['products'] = $products;
|
||||
$data['totals'] = $totals;
|
||||
|
||||
$order = $this->model_extension_retailcrm_custom_order->processOrder($data, false);
|
||||
$this->model_extension_retailcrm_custom_order->sendToCrm($order, $this->retailcrmApiClient, $data, false);
|
||||
} else {
|
||||
|
@ -22,7 +22,7 @@ if (isset($versionMatches[1])) {
|
||||
define('VERSION', $version);
|
||||
|
||||
// Configuration (note we're using the admin config)
|
||||
require_once(realpath(dirname(__FILE__)) . '/../../admin/config.php');
|
||||
require_once(realpath(dirname(__FILE__)) . '/../../../../admin/config.php');
|
||||
|
||||
// Configuration check
|
||||
if (!defined('DIR_APPLICATION')) {
|
||||
|
Loading…
Reference in New Issue
Block a user