![]() |
Re: Membership by "code" and hide non-membership items
What did it log for the home page? What is the "where" query and what "membership id" does it use in the query there?
The only thing that comes to my mind is that it doesn't call the addMembershipCondition() method there, but you say that it does create the log file (so I'm wrong). |
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. |
All times are GMT -8. The time now is 11:05 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.