monc Posted August 24, 2013 Share Posted August 24, 2013 (edited) 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 August 24, 2013 by monc (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 24, 2013 Share Posted August 24, 2013 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) 1 Link to comment Share on other sites More sharing options...
monc Posted September 6, 2013 Author Share Posted September 6, 2013 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 More sharing options...
monc Posted September 8, 2013 Author Share Posted September 8, 2013 Any one? The site is up and customers is complaining about it. I cant find any wrong.. O__O Link to comment Share on other sites More sharing options...
El Patron Posted September 8, 2013 Share Posted September 8, 2013 can you look and see if there is FrontController.php in override/controller as stated by two previous posters, on a native vanilla ps installation, post account creation goes to my-account. Link to comment Share on other sites More sharing options...
vekia Posted September 9, 2013 Share Posted September 9, 2013 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 More sharing options...
monc Posted September 10, 2013 Author Share Posted September 10, 2013 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 More sharing options...
El Patron Posted September 10, 2013 Share Posted September 10, 2013 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 More sharing options...
monc Posted September 10, 2013 Author Share Posted September 10, 2013 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 More sharing options...
monc Posted September 10, 2013 Author Share Posted September 10, 2013 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 More sharing options...
Recommended Posts