//PreProcess => PostProcess

This commit is contained in:
mDeflotte
2011-09-29 09:01:59 +00:00
parent f868e77a6e
commit 5d024dd47a
3 changed files with 16 additions and 12 deletions
+13 -2
View File
@@ -32,7 +32,11 @@ class OrderFollowControllerCore extends FrontController
public $authRedirection = 'order-follow';
public $ssl = true;
public function process()
/**
* Start forms process
* @see FrontController::postProcess()
*/
public function postProcess()
{
if (Tools::isSubmit('submitReturnMerchandise'))
{
@@ -66,7 +70,14 @@ class OrderFollowControllerCore extends FrontController
Module::hookExec('orderReturn', array('orderReturn' => $orderReturn));
Tools::redirect('index.php?controller=order-follow');
}
}
/**
* Assign template vars related to page content
* @see FrontController::process()
*/
public function process()
{
$ordersReturn = OrderReturn::getOrdersReturn($this->context->customer->id);
if (Tools::isSubmit('errorQuantity'))
$this->context->smarty->assign('errorQuantity', true);