| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Membership by "code" and hide non-membership items | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
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).
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#12
|
|||||||
|
|||||||
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 |
|||||||
|
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|