Could someone somehow guide me on how I can make the product list filter by clicking on one of the three buttons.
I have a custom page, and on it 3 buttons with categories. E.g. category A, B and C.
By default, products from category A should be displayed, and by clicking on these buttons I would like to change products to products from other categories.
The whole thing is done in phtml, and single block file. For displaying the products I used $productCollectionFactory, and simple for loop in phtml.
Thanks in advance for help.