Jump to content

Arriver sur l'index et non sur "Mon Compte" ?


Recommended Posts

Ok. Le fonctionnement de l'override est un peu opaque pour moi, mais j'ai tenté ceci dans "/override/controllers/front/AuthController.php" :

 

<?php
class AuthController extends AuthControllerCore
{
/**
 * Initialize auth controller
 * @see FrontController::init()
 */
public function init()
{
 parent::init();
 if (!Tools::getIsset('step') && $this->context->customer->isLogged() && !$this->ajax)
  Tools::redirect('index.php');
 if (Tools::getValue('create_account'))
  $this->create_account = true;
}
}
?>

 

Ca ne fonctionne pas, mais je ne vois pas comment faire autrement.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...