Open category pages with params
Base JS call:
List of additional parameters for the call:
'id'
- Category ID. If not specified, Ecwid will ignore any other params and open the main (root) category page (same as'id': 0
).'name'
- Category name as it would look in the URL: lowercase, spaces replaced with dashes. For example, the "Rental Spaces" category name would transform intorental-spaces
.'slug_value'
- Custom page slug for the category. Use it instead of thename
parameter if a category has a custom slug.'page'
- Page number for categories where products don't fit on one page. If you pass a value bigger than the number of pages in the category, Ecwid will open the last page.
Code example:
You can also open the side menu with product filters on category pages with the Ecwid.showProductFilters();
call.
Code example:
Last updated
Was this helpful?