lechristos Posted July 13, 2012 Share Posted July 13, 2012 (edited) Hi everyone, I would like to make some pages for members only (logged in customers) while being able to manage them through the CMS. Unfortunately there is not really much information available on this. Does anyone have any idea how the CMS works? There is a module I've tried - CMS group restrictions (http://blog.jakobdesign.com/?id=11) but there is no group in Prestashop for guest users and I haven't managed to get this working. Any help or advice is appreciated Ciao, Chris Edited July 13, 2012 by lechristos (see edit history) Link to comment Share on other sites More sharing options...
math_php Posted July 19, 2012 Share Posted July 19, 2012 Hi, Yes it is possible, first step is to do a php file : 'cms_content_only_for_logged_customer.php' (or a better and shorter name) that will display 'You must log in to see this page' or cms contents if logged or not. To check if the visitor is a customer code look like these $cookie = new Cookie('ps', '', $cookieLifetime); $id_customer = $cookie->__get('id_customer'); if ($id_customer){ You need to make a module to store your 4customerOnly cms. Module editorial will give you a good portion of codes. Depending on how wide is your cms content, it is a lot of work or even bigger. Good dev 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