Re: Membership by "code" and hide non-membership items
I finally tracked it down. There is a completely different query/logic used for displaying the home page categories. The sub-page categories are going through the area I had modified, but the home page categories are going through different logic.
I had to decorate a different class and override a different routine. While decorating \XLite\Model\Repo\Category and overriding addMembershipCondition was good for all the other places, I had to decorate \XLite\Model\Category and override hasAvailableMembership for the home page.
Now it's working as we desired.
I was able to determine this by looking at skins\customer\subcategories\icons\body.twig which was the template in use on the home page (discovered by using Webmaster mode). In there I saw the logic being used and was able to track this down.
Thank you for trying to help on this matter.
Gary.
Thank you.
__________________
Gary
|