Jump to content

Redirect to my-account after created account problem


Recommended Posts

Redirect to my-account after created account problem!

 

After a costumer created a account they redirect to "/index.php?controller=product". But I want them to redirect to my-account page.. Howe to fix it?

 

I will be more than thankful for help!

Edited by monc (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

by default customer should be redirected to the my account page. You modified something in the controllers (especially in the auth controller?) + one additional question: what prestashop version you use? (and what theme)

 

Im use 1.5.4.1, default theme, I have done no modify in controllers, but we hired a company to install a module maybe they have done something.

Link to comment
Share on other sites

hello

 

You should follow El Patron's suggestion. I think the same, i suppose that hired company modified the code and customers are redirected to wrong page.

 

are you able to say something more what they changed? In my opinion this is the main thing in this case

Link to comment
Share on other sites

They installed KlarnaCheckout.

 

I find FrontController.php under override/classes/controller but not under override/classes and that file have just this code:

class FrontController extends FrontControllerCore
{
	/** @var _isActive Flag to know if the module is active or note */




	// Override for 1.5
}

Link to comment
Share on other sites

 

They installed KlarnaCheckout.

 

I find FrontController.php under override/classes/controller but not under override/classes and that file have just this code:

class FrontController extends FrontControllerCore
{
	/** @var _isActive Flag to know if the module is active or note */




	// Override for 1.5
}

I installed Klarna on a test shop, it does not have a FrontController override.

 

Try this rename the FrontController.php you found to _FrontController.php

 

I don't see how this will help but it's all I can think of

Link to comment
Share on other sites

I installed Klarna on a test shop, it does not have a FrontController override.

 

Try this rename the FrontController.php you found to _FrontController.php

 

I don't see how this will help but it's all I can think of

 

 

hm.. didn't help, It's still re-direct to http://okaeri.se/chibi/index.php?controller=product and it says 1. no product could be find.

Link to comment
Share on other sites

when i check AuthController I can find this:

 (any help?)

   class AuthControllerCore extends FrontController
{
    public $ssl = true;
    public $php_self = 'authentication';

    /**
     * @var bool create_account
     */
    protected $create_account;

    /**
     * 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?controller='.(($this->authRedirection !== false) ? url_encode($this->authRedirection) : 'my-account'));

        if (Tools::getValue('create_account'))
            $this->create_account = true;
    }

 

Link to comment
Share on other sites

×
×
  • Create New...