Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #534128

    Hello Kriesi Team,

    I am having an issue with the filtering functionality in the Masonry element for outputting shop products.

    In order to show all categories in the filtering, I need to make sure that at least 1 of the products from a category, is visible on the page.

    This effectively renders the pagination and load more feature useless, because they will only show a small part of the products.

    Any solution to this? I already tried to show 10 products (I have 9 categories), with an ordering number assigned to them. This somehow works in testing, but does not load all products, and is very slow.

    Any suggestions?

    #534194

    Hi Synergi!

    For the sorting to work there has to be something to sort within the Masonry which is why the sort links are hidden if there is no matching posts in the current set.

    You can display them with this CSS.

    .av-masonry-sort .avia_hide_sort { display: inline-block !important; }
    

    But they are not going to do anything when you click on them. Also, if you are using a bunch of categories it might look bad to have them all display at once.

    Best regards,
    Elliott

    #534210

    Great, that should solve the issue of showing the categories, all the time. Will the products still show? Will I encounter a visible category, but with no products to show?

    #534325

    Hey!

    Like I said, if you do not have any products in the current set (the products displayed on the page) then it’s not going to work. You can increase the amount of products that are displayed and there is a better chance of them being available.

    Sorry, it’s kind of hard to explain. If it was me I would just leave it like it is and have the categories with no visible products hidden. When you click on the load more button and new products get added the sort links will update automatically.

    Best regards,
    Elliott

    • This reply was modified 9 years, 1 month ago by Elliott.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.