-
AuthorPosts
-
November 11, 2015 at 3:59 pm #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?
November 11, 2015 at 4:45 pm #534194Hi 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,
ElliottNovember 11, 2015 at 5:04 pm #534210Great, 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?
November 11, 2015 at 6:54 pm #534325Hey!
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.
-
AuthorPosts
- You must be logged in to reply to this topic.