diff --git a/admin/controller/extension/module/retailcrm.php b/admin/controller/extension/module/retailcrm.php
index 522ee68..d8d056a 100644
--- a/admin/controller/extension/module/retailcrm.php
+++ b/admin/controller/extension/module/retailcrm.php
@@ -54,6 +54,13 @@ class ControllerExtensionModuleRetailcrm extends Controller
'catalog/model/account/customer/addCustomer/after',
'extension/module/retailcrm/customer_create'
);
+
+ $this->model_extension_event
+ ->addEvent(
+ 'retailcrm',
+ 'catalog/model/checkout/order/editOrder/after',
+ 'extension/module/retailcrm/order_edit'
+ );
}
/**
@@ -78,6 +85,7 @@ class ControllerExtensionModuleRetailcrm extends Controller
*/
public function index()
{
+
$this->load->model('localisation/country');
$this->load->model('setting/setting');
$this->load->model('extension/module');
diff --git a/admin/language/en-gb/extension/module/retailcrm.php b/admin/language/en-gb/extension/module/retailcrm.php
index 9fda572..0ca1927 100644
--- a/admin/language/en-gb/extension/module/retailcrm.php
+++ b/admin/language/en-gb/extension/module/retailcrm.php
@@ -12,7 +12,6 @@ $_['retailcrm_base_settings'] = 'Connection settings';
$_['retailcrm_dict_settings'] = 'Dictionary settings';
$_['retailcrm_countries_settings'] = 'Trading zones setting';
$_['retailcrm_upload_order'] = 'Unload single order';
-
$_['retailcrm_url'] = 'RetailCRM URL';
$_['retailcrm_apikey'] = 'RetailCRM API Key';
@@ -25,7 +24,6 @@ $_['text_success_catalog'] = 'Catalog successfully unloaded';
$_['text_error_order'] = 'Error! Order is not unloaded!';
$_['text_error_order_id'] = 'Error! Enter the correct order number!';
-
$_['retailcrm_dict_delivery'] = 'Shipment methods';
$_['retailcrm_dict_status'] = 'Order statuses';
$_['retailcrm_dict_payment'] = 'Payment methods';
diff --git a/admin/model/extension/retailcrm/icml.php b/admin/model/extension/retailcrm/icml.php
index d1dea3e..7a28c1f 100644
--- a/admin/model/extension/retailcrm/icml.php
+++ b/admin/model/extension/retailcrm/icml.php
@@ -221,6 +221,7 @@ class ModelExtensionRetailcrmIcml extends Model
}
$e->appendChild($this->dd->createElement('price'))
->appendChild($this->dd->createTextNode($productPrice + $optionsTotalCost));
+ ->appendChild($this->dd->createTextNode($product['price'] + $optionsTotalCost));
/**
* Vendor
*/
diff --git a/admin/model/extension/retailcrm/order.php b/admin/model/extension/retailcrm/order.php
index 5edd1de..2c27169 100644
--- a/admin/model/extension/retailcrm/order.php
+++ b/admin/model/extension/retailcrm/order.php
@@ -1,7 +1,6 @@
load->model('catalog/product');
diff --git a/admin/view/template/extension/module/retailcrm.tpl b/admin/view/template/extension/module/retailcrm.tpl
index bf57c3e..9afdbdd 100644
--- a/admin/view/template/extension/module/retailcrm.tpl
+++ b/admin/view/template/extension/module/retailcrm.tpl
@@ -49,6 +49,7 @@
+