// A few deprecated methods still in use
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17562 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -681,7 +681,7 @@ class AdminCustomersControllerCore extends AdminController
|
||||
'addresses' => $customer->getAddresses($this->default_form_language),
|
||||
|
||||
// Discounts
|
||||
'discounts' => Discount::getCustomerDiscounts($this->default_form_language, $customer->id, false, false),
|
||||
'discounts' => CartRule::getCustomerCartRules($this->default_form_language, $customer->id, false, false),
|
||||
|
||||
// Carts
|
||||
'carts' => $carts,
|
||||
@@ -705,7 +705,7 @@ class AdminCustomersControllerCore extends AdminController
|
||||
if ($this->delete_mode == 'real')
|
||||
{
|
||||
$this->deleted = false;
|
||||
Discount::deleteByIdCustomer((int)Tools::getValue('id_customer'));
|
||||
CartRule::deleteByIdCustomer((int)Tools::getValue('id_customer'));
|
||||
}
|
||||
elseif ($this->delete_mode == 'deleted')
|
||||
$this->deleted = true;
|
||||
|
||||
Reference in New Issue
Block a user