mauricioarango Posted January 11, 2016 Share Posted January 11, 2016 Does anyone know what is the form of PRESTASHOP's category URLs? What if I want to use other parameters like pagination and number of products to get per request? For instance, I need to get products under category_id = 33, page = 5, and 10 products per page? I am hoping there is something similar to the URL of a product: $productUrl = 'http://example.com/index.php?controller=product&id_product=' . $productId; Thank you so much in advanced for any help. It is highly appreciated. Link to comment Share on other sites More sharing options...
mauricioarango Posted January 12, 2016 Author Share Posted January 12, 2016 Someone gave me this answer in another forum. I hope it helps others here: The basic category URL is index.php?controller=category&id_category=<categoryId> In theory the variables n and p should control the number of products and the page number respectively, but I haven't been able to get them to work very well. index.php?controller=category&id_category=2&n=4&p=2 Depending on what you are doing, you may be able to use something like {$link->getCategoryLink({$cat.id_category})} in a template to generate a URL instead. 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