we would like to Set a selected filter on initial page load for a category.
For example: when accessing the category, shoe_size=10 should already be selected
I read you can access the variables quite easily here
But how do I
- pass a variable to the code? (can this be done through a custom layout update in category xml in backend)?
- But more importantly. How do I SET the shoe_size filter to value 10 in code? Is there a setFilter()?