diff --git a/admin/controller/extension/module/retailcrm.php b/admin/controller/extension/module/retailcrm.php index 522ee68..becfc88 100644 --- a/admin/controller/extension/module/retailcrm.php +++ b/admin/controller/extension/module/retailcrm.php @@ -78,6 +78,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 7b8fe7b..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'; diff --git a/admin/view/template/extension/module/retailcrm.tpl b/admin/view/template/extension/module/retailcrm.tpl index 2137202..aee1e63 100644 --- a/admin/view/template/extension/module/retailcrm.tpl +++ b/admin/view/template/extension/module/retailcrm.tpl @@ -49,6 +49,7 @@
+

@@ -97,10 +98,6 @@

-<<<<<<< HEAD:admin/view/template/extension/module/retailcrm.tpl -======= - ->>>>>>> 82e6d620766d6f21f0041e8744d92bbfc84da472:admin/view/template/extension/module/retailcrm.tpl
@@ -163,7 +160,7 @@ var token = ''; $('#icml').on('click', function() { $.ajax({ - url: ''+'system/cron/icml.php', + url: '' + 'admin/index.php?route=extension/module/retailcrm/icml&token=' + token, beforeSend: function() { $('#icml').button('loading'); }, @@ -180,7 +177,7 @@ $('#export').on('click', function() { $.ajax({ - url: ''+'system/cron/export.php', + url: '' + 'admin/index.php?route=extension/module/retailcrm/export&token=' + token, beforeSend: function() { $('#export').button('loading'); }, @@ -199,7 +196,7 @@ var order_id = $('input[name=\'order_id\']').val(); if (order_id && order_id > 0) { $.ajax({ - url: ''+'admin/index.php?route=extension/module/retailcrm/exportOrder&token=' + token + '&order_id=' + order_id, + url: '' + 'admin/index.php?route=extension/module/retailcrm/exportOrder&token=' + token + '&order_id=' + order_id, beforeSend: function() { $('#export_order').button('loading'); }, @@ -225,8 +222,5 @@ $('#export_order').button('reset'); } }); -<<<<<<< HEAD:admin/view/template/extension/module/retailcrm.tpl -======= - ->>>>>>> 82e6d620766d6f21f0041e8744d92bbfc84da472:admin/view/template/extension/module/retailcrm.tpl + diff --git a/catalog/model/extension/retailcrm/order.php b/catalog/model/extension/retailcrm/order.php index a473ae6..100deb1 100644 --- a/catalog/model/extension/retailcrm/order.php +++ b/catalog/model/extension/retailcrm/order.php @@ -59,6 +59,7 @@ class ModelExtensionRetailcrmOrder extends Model { if ($totals['code'] == 'shipping') { $deliveryCost = $totals['value']; } + if ($totals['code'] == 'coupon') { $couponTotal = abs($totals['value']); }