Jump to content

Question/Answer: How to disallow unloggued users to access the shop (and redirect to auth page)


Recommended Posts

Everything is in the title:
Copy and paste that in your override/classes/FrontController.php

<?php

class FrontController extends FrontControllerCore {

   public function __construct(){ 


       if(get_class($this) != 'AuthController') $this->auth = true;
       parent::__construct(); 

   }

}

?>

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...