FJakub Posted September 8, 2016 Share Posted September 8, 2016 Hello, I go for advice on how to implement that one page should be created through the CMS or otherwise viewable only after login. Thank you so much for your advice Link to comment Share on other sites More sharing options...
Sathyaseelan133 Posted September 8, 2016 Share Posted September 8, 2016 Hi Fjakub, {$logged} will be used to check that the user is logged in or not. you can core edit the cms controller and display the cms content only after login {if $logged} Display cms content {/if} Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 8, 2016 Share Posted September 8, 2016 To check if the customer is logged in you can use the following lines of code in any of the PHP file. if ($this->context->customer->isLogged()){ //If Logged In } else { //If Not Logged In } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now