PrestaShop 101

  1. Home
  2. Developer Tips
  3. How can I get the product ID in PrestaShop hook

How can I get the product ID in PrestaShop hook

  • Created November 4, 2015
  • Author Presta101
  • Category Developer Tips

The product id is not found in the $params variable. Instead you can use:

Tools::getValue('id_product')

 

Was this article helpful?

Yes No

Related Articles

  • Where is the database connection file config/settings.php in PrestaShop 1.7
  • How to setup cron job in cPanel to execute a URL
  • [PrestaShop Bug] Cannot Edit Product – Save Does Not Work
  • How to get all customers who have never bought anything in PrestaShop
  • How to get PrestaShop template page name with php
  • How to get PrestaShop controller page name with php
© Copyright PrestaShop Developer.