1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Magento 2.2.6: What is the best way to edit ListProduct?

Discussion in 'Programming/Internet' started by chdzma, Oct 8, 2018.

  1. chdzma

    chdzma Guest

    I'm overriding getProductCollection of ListProduct block to custom filter the collection dinamically depending on current customer session. First time it works perfectly but following times it gets cached and I can't override the collection. It filters collection by first iteration conditions.

    My intention is that each time the client enters the catalog view this query is executed, since it filters the products by customer id.

    How could I achieve that?

    Login To add answer/comment

Share This Page