diff --git a/admin-dev/themes/template/customers/view.tpl b/admin-dev/themes/template/customers/view.tpl
index ac665fcca..67b47dbbd 100644
--- a/admin-dev/themes/template/customers/view.tpl
+++ b/admin-dev/themes/template/customers/view.tpl
@@ -296,29 +296,25 @@
{/if}
- {l s='Discounts'} ({count($discounts)})
+ {l s='Vouchers'} ({count($discounts)})
{if count($discounts)}
| {l s='ID'} |
{l s='Code'} |
- {l s='Type'} |
- {l s='Value'} |
- {l s='Qty available'} |
+ {l s='Name'} |
{l s='Status'} |
{l s='Actions'} |
{foreach $discounts AS $key => $discount}
- | {$discount['id_discount']} |
+ {$discount['id_cart_rule']} |
+ {$discount['code']} |
{$discount['name']} |
- {$discount['type']} |
- {$discount['value']} |
- {$discount['quantity_for_user']} |
 |
-
-
+
+
|
{/foreach}
diff --git a/classes/CartRule.php b/classes/CartRule.php
index d3a292421..11d41692f 100644
--- a/classes/CartRule.php
+++ b/classes/CartRule.php
@@ -192,7 +192,7 @@ class CartRuleCore extends ObjectModel
if (!CartRule::isFeatureActive())
return array();
- Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
+ $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT *
FROM `'._DB_PREFIX_.'cart_rule` cr
LEFT JOIN `'._DB_PREFIX_.'cart_rule_lang` crl ON (cr.`id_cart_rule` = crl.`id_cart_rule` AND crl.`id_lang` = '.(int)$id_lang.')
diff --git a/controllers/admin/AdminCartRulesController.php b/controllers/admin/AdminCartRulesController.php
index 8274a7ccc..3fbcbce98 100644
--- a/controllers/admin/AdminCartRulesController.php
+++ b/controllers/admin/AdminCartRulesController.php
@@ -194,7 +194,7 @@ class AdminCartRulesControllerCore extends AdminController
Context::getContext()->smarty->assign('product_rule_choose_content', $choose_content);
break;
case 'categories':
- // Todo: Consider optimization (with code below)
+ // Todo: Consider optimization
$categories = array('selected' => array(), 'unselected' => array());
$result = Db::getInstance()->ExecuteS('
SELECT name, id_category as id
@@ -206,16 +206,6 @@ class AdminCartRulesControllerCore extends AdminController
Context::getContext()->smarty->assign('product_rule_itemlist', $categories);
$choose_content = Context::getContext()->smarty->fetch('cart_rules/product_rule_itemlist.tpl');
Context::getContext()->smarty->assign('product_rule_choose_content', $choose_content);
- // $translations = array(
- // 'Home' => $this->l('Home'),
- // 'selected' => $this->l('selected'),
- // 'Collapse All' => $this->l('Collapse All'),
- // 'Expand All' => $this->l('Expand All'),
- // 'Check All' => $this->l('Check All'),
- // 'Uncheck All' => $this->l('Uncheck All'),
- // 'search' => $this->l('Search a category')
- // );
- // Context::getContext()->smarty->assign('product_rule_choose_content', Helper::renderAdminCategorieTree($translations, $selected, 'categoryBox', false, true));
break;
default:
die;