//PreProcess => PostProcess
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -33,9 +33,9 @@ class PasswordControllerCore extends FrontController
|
||||
|
||||
/**
|
||||
* Start forms process
|
||||
* @see FrontController::preProcess()
|
||||
* @see FrontController::postProcess()
|
||||
*/
|
||||
public function preProcess()
|
||||
public function postProcess()
|
||||
{
|
||||
if (Tools::isSubmit('email'))
|
||||
{
|
||||
|
||||
@@ -79,14 +79,7 @@ class ProductControllerCore extends FrontController
|
||||
$this->product->quantity = 0;
|
||||
|
||||
$this->product->description = $this->transformDescriptionWithImg($this->product->description);
|
||||
}
|
||||
|
||||
/**
|
||||
* Start forms process
|
||||
* @see FrontController::preProcess()
|
||||
*/
|
||||
public function preProcess()
|
||||
{
|
||||
|
||||
if (!Validate::isLoadedObject($this->product))
|
||||
$this->errors[] = Tools::displayError('Product not found');
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user