GaShin Posted June 17, 2021 Posted June 17, 2021 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 More sharing options...
Guest Posted June 18, 2021 Posted June 18, 2021 return Tools::getValue('id_product'); or return $params['id_product']; Share this post Link to post 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