Posted on 16/01/2020 10:15:51
Hi
again on this topic and I was not able to sort it out by myself.
Issue is following. I implemented view of products (product catalog app) in a way that the instead of products we display groups for each group that have subgroups and only when the last group which do not have any subgroups is selectd products will be rendered.
It works great whenever one of groups is select because then we have loop named Subgroups and in ProductsListFeed I iterate through subgroups and generate custom collection called SubGroups which is then used to render view. When there is no selected group (user clicked on all products) I fetch all top level groups and render them.
It all worked fine untily we started to use asortments. Now everything works fine when some group is selected but when the top level (all products) page is opened all top level groups are rendered and I cannot determine which of top levele groups should not be renedered since it is part of asortments not available to current user.
Left menu is rendered ok (without top level groups not available to current user).
Do you have any idea how to solve this?
Thank you in advance!
Sincerely
Ivan