I am creating the store section of my website. I need to be able to sort the +100 products by filters, so I’ve programmed a custom code to filter them by attributes.
I have thought about the option to simulate the filter with different pages that show the corresponding products, but I need to filter by price, by type of product, by brand… I don’t see that as a viable option for so many products.
The problem I have with my custom code is that it has a height of 5200 when displaying all products, to this is added the header and footer of my website. But if I apply filters and the selection stays in 10 or 5 products, as the web has a fixed height, it remains blank, you see the empty background 4000 height until you reach the footer.
Is there any way to make the height variable or adaptable so that my code works and adapts to the height?