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

Display PARENT category name on PRODUCT.TPL

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-24-2006, 11:53 AM
 
lixy lixy is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 41
 

Question Display PARENT category name on PRODUCT.TPL

What I am trying to do is display each products PARENT category name on the PRODUCTS.TPL and PRODUCT.TPL but I am not having too much luck. I have tried:

{$current_category.category} - Displays the subcategory the product resides in.
{$current_category.parentid} - This displays the correct category ID for the PARENT category

Does anyone have any suggestions?
Reply With Quote
  #2  
Old 10-24-2006, 12:00 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Display PARENT category name on PRODUCT.TPL

Version? Please post it in your signature. Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-24-2006, 12:07 PM
 
lixy lixy is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 41
 

Default Re: Display PARENT category name on PRODUCT.TPL

Sorry about that 4.1.3
Reply With Quote
  #4  
Old 10-24-2006, 12:17 PM
 
lixy lixy is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 41
 

Default Re: Display PARENT category name on PRODUCT.TPL

I just tried {$location[1].0} and this displays the PARENT category name properly on both PRODUCTS.TPL and PRODUCT.TPL however it does not work with search results.

When you run a search it will display the value as SEARCH RESULTS rather than the PARENT category name. Any help would be appreciated.
__________________
XC 4.1.3
Reply With Quote
  #5  
Old 10-24-2006, 01:13 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Display PARENT category name on PRODUCT.TPL

Well it can't show the parent category on the search results page because there isn't one.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 10-24-2006, 06:15 PM
 
lixy lixy is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 41
 

Default Re: Display PARENT category name on PRODUCT.TPL

Can the PARENT category not be determined somehow for each product and displayed in the search results along with PRODUCTS.TPL and PRODUCT.TPL? This seems like such a trivial thing to accomplish but I am absolutely baffled.
__________________
XC 4.1.3
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 10:32 AM.

   

 
X-Cart forums © 2001-2020