// Fix backOffice order cart rules management
This commit is contained in:
1 parent
356f6f4360
commit
3be00c8e6f
6 files changed
+83
-34
No files matched your search
@@ -89,6 +89,15 @@ class AdminCartRulesControllerCore extends AdminController
|
||||
$this->afterAdd($current_object);
|
||||
}
|
||||
|
||||
public function processAdd($token)
|
||||
{
|
||||
if ($cart_rule = parent::processAdd($token))
|
||||
$this->context->smarty->assign('new_cart_rule', $cart_rule);
|
||||
if (Tools::getValue('submitFormAjax'))
|
||||
$this->redirect_after = false;
|
||||
|
||||
return $cart_rule;
|
||||
}
|
||||
/* @TODO Move this function into CartRule */
|
||||
protected function afterAdd($currentObject)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user