Sbuerman Posted April 29, 2021 Share Posted April 29, 2021 (edited) Hello, I am writing a module that will be used for the brand pages and I would like to know how to get the id of the brand on which we are. Is there a way to do it with URLs written like this "en/brand/16-ibiza"? I am on Prestashop 1.7.6.8. Thanks in advance Edited April 29, 2021 by Sbuerman (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted April 30, 2021 Share Posted April 30, 2021 You can check if you are in the brand page and get the brand ID with the GET paramater. Link to comment Share on other sites More sharing options...
BorjaAB Posted May 3, 2021 Share Posted May 3, 2021 Can you try to do $idManufacturer = (int) Tools::getValue('id_manufacturer'); ? I did the same module and I did this a it works. Link to comment 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