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

Showing the name of the category each product belongs to.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-29-2004, 02:17 AM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default Showing the name of the category each product belongs to.

Hi,

I would like to showing the name of the category each product belongs to for each product displayed in the catalog.

I am sure this is straight forward, but for some reason I cannot get the category name to display.

thanks in advance
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
  #2  
Old 04-29-2004, 04:34 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

{$product.category_text}

should do it
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 04-30-2004, 03:44 AM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default

Duncan,

On product.tpl I used: {$product.category_text} - the category/subcategory name is shown.

On products.tpl I used: {$products[product].category} - the category/subcategory name is shown.

However I cannot get the category name to show on 'products_t.tpl' - does this follow a different format?

Also, is it possible to display only the last 'sub category' the product belongs to?

thanks
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
  #4  
Old 07-16-2004, 11:05 AM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default

Any ideas of how to display the category a product belongs to on 'products_t.tpl? TIA
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
  #5  
Old 07-17-2004, 01:53 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

try {$current_category.category_name}
__________________
ex x-cart guru
Reply With Quote
  #6  
Old 07-17-2004, 03:08 AM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default

thanks funkydunk, but unfortunately that does not work.
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:36 PM.

   

 
X-Cart forums © 2001-2020