3

Context:

When selecting a filter on a category page, that displays multiple products, a url is built.

For example. Selecting color => red will result in the following url: www.shopurl.com/[category]/[subcategory]...?color=152.

The number being the id. I wish to keep all functionality but display the label. e.g. url..?color=red

I'm not expecting a full "tutorial" on how to this. But I would need some pointers and maybe some answers?

  1. I suspect that at some point the argument from the url is read and the product collection is filtered. Where does this happen?
  2. When a filter is clicked the page refreshes with the new url that contains the filter. Where does this happen?

Many thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.