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

How do I check which subcategory a product is included in?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-24-2010, 08:27 AM
 
purpose purpose is offline
 

Newbie
  
Join Date: Oct 2006
Posts: 4
 

Default How do I check which subcategory a product is included in?

When looking at a root category I want to add a CSS class to my products based on which sub category they are included in.

Say I have the following:

Mens
- Hoddies
- Tshirts

When looking at the Mens root category I want to add a CSS class if the product is listed in Hoodies or Tshirts.

Is there an easy way to determine which subcategories a product is listed in?

Thanks.
__________________
Version 4.1.6 (linux)
Reply With Quote
  #2  
Old 10-25-2010, 02:33 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: How do I check which subcategory a product is included in?

Use the "location" value .
It holds the category and subcategory of the product .
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 02:35 AM.

   

 
X-Cart forums © 2001-2020