Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Membership by "code" and hide non-membership items

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 05-03-2017, 11:21 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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
Reply With Quote
  #12  
Old 05-04-2017, 03:59 AM
 
garyhoffmann garyhoffmann is offline
 

Advanced Member
  
Join Date: Sep 2009
Posts: 37
 

Default 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
Reply With Quote

The following user thanks garyhoffmann for this useful post:
qualiteam (05-04-2017)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:30 AM.

   

 
X-Cart forums © 2001-2020