mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 13:16: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')) {
|
if (file_exists(DIR_APPLICATION . 'model/extension/retailcrm/custom/order.php')) {
|
||||||
$this->load->model('extension/retailcrm/custom/order');
|
$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);
|
$order = $this->model_extension_retailcrm_custom_order->processOrder($order_data);
|
||||||
$this->model_extension_retailcrm_custom_order->sendToCrm($order, $this->retailcrmApiClient, $order_data);
|
$this->model_extension_retailcrm_custom_order->sendToCrm($order, $this->retailcrmApiClient, $order_data);
|
||||||
} else {
|
} else {
|
||||||
@ -111,6 +114,9 @@ class ControllerExtensionModuleRetailcrm extends Controller {
|
|||||||
|
|
||||||
if (file_exists(DIR_APPLICATION . 'model/extension/retailcrm/custom/order.php')) {
|
if (file_exists(DIR_APPLICATION . 'model/extension/retailcrm/custom/order.php')) {
|
||||||
$this->load->model('extension/retailcrm/custom/order');
|
$this->load->model('extension/retailcrm/custom/order');
|
||||||
|
$data['products'] = $products;
|
||||||
|
$data['totals'] = $totals;
|
||||||
|
|
||||||
$order = $this->model_extension_retailcrm_custom_order->processOrder($data, false);
|
$order = $this->model_extension_retailcrm_custom_order->processOrder($data, false);
|
||||||
$this->model_extension_retailcrm_custom_order->sendToCrm($order, $this->retailcrmApiClient, $data, false);
|
$this->model_extension_retailcrm_custom_order->sendToCrm($order, $this->retailcrmApiClient, $data, false);
|
||||||
} else {
|
} else {
|
||||||
|
@ -22,7 +22,7 @@ if (isset($versionMatches[1])) {
|
|||||||
define('VERSION', $version);
|
define('VERSION', $version);
|
||||||
|
|
||||||
// Configuration (note we're using the admin config)
|
// 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
|
// Configuration check
|
||||||
if (!defined('DIR_APPLICATION')) {
|
if (!defined('DIR_APPLICATION')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user