Jump to content

Get id_product in a hook from a module (Prestashop 1.7)


Recommended Posts

I would like to recover the product id to be able to make my ajax call which needs the product id of the current product page. So I use the hook displayProductAdditionnalInfo which correctly returns the id_product to me but when I try to call it in another method, it returns me false. 


Can you help me? Is there a solution or an alternative ?


Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More