Is there any point of applying website filter after applied store filter already:


will have same effect as:


and this should:


filter products only from website and with no matter from which store from filtered website?

1 Answer 1


Short Answer:

No, there is no need to.

Longer Answer

No there is no need, while Stores are unik for the whole system. So a collection filtered by store is only a subset of a collection filtered by website.

I actually never used the website filter, because there wasn'T any need to do so.

But lets see a short sceanrio:

Website A
  StoreGroup A
     StoreView A
          Product 1
          Product 2
     StoreView B
          Product 1
          Product 2
   StoreGroup B
     StoreView C
          Product 3
          Product 4
     StoreView D
          Product 3
          Product 4

Applying the method addStoreFilter(StoreView A) will result in a collection with 2 items while the same collection with addWebsiteFilter(Website A) will get a collection of 4 items.

hope that helps.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.