getProducts(int
items_per_page, int
page)¶
The getProducts method is used to get the ProductsList object that represents a list of all products in the storefront. Method results depends on the context of current page. Pages where this context method can be used are:
- Product List
- Vendor's products
- Products from category
- Products from a collection
- Products on sale
- Search results
- New Arrivals
- Loyalty program products
TODO
Input parameters¶
items_per_page¶
int
Number of items in a page of internal paginator. Parameter is optional. Default value is 100.
page¶
int
Pge number of internal paginator. Parameter is optional. Default value is null. If page is null it is set based on the page parameter in the URL.
Returned value¶
The ProductsList object.