Jump to content

Creating and calling a custom controller without templatate


LanciWeb

Recommended Posts

Hello guys,

 

I am very new to Prestashop and I am using version 1.6.

 

I need to create a PHP page that performs a check on the DB (checking if current customer has provided some info at the moment of his/her registration) and then perform other actions according to wether the info are there or not, and finally make a redirect. The page doesn't even need a template since it redirects to the user account overview.

 

The point is: how can I acheive such a behavior?

I put a controller in overrides/controllers/front but it didn't work, so I tried  to put it in controllers/front. I tried to add the page from SEO and URLS but still, I cannot even see a "hello world" to be sure the page is there.

 

I am sorry if this seems confusing or "stupid".. I think I really need a step-by-step explanation because I am sure I am missing something... 

 

Thank you in advance...

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