[-] CORE : After adding cart rule redirect improvements

This allows us display success message after adding CartRule or create other actions
This commit is contained in:
Krystian Podemski
2013-12-11 21:00:36 +01:00
parent 1d5cf86d19
commit edb72662bf
+3 -1
View File
@@ -111,7 +111,9 @@ class ParentOrderControllerCore extends FrontController
else
{
$this->context->cart->addCartRule($cartRule->id);
Tools::redirect('index.php?controller=order-opc');
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1)
Tools::redirect('index.php?controller=order-opc&addingCartRule=1');
Tools::redirect('index.php?controller=order&addingCartRule=1');
}
}
else