Jump to content

[1.4.x] Member only pages using the CMS


lechristos

Recommended Posts

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 by lechristos (see edit history)
Link to comment
Share on other sites

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

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