X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Showing the name of the category each product belongs to. (https://forum.x-cart.com/showthread.php?t=7362)

laureon 04-29-2004 02:17 AM

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

funkydunk 04-29-2004 04:34 AM

{$product.category_text}

should do it :)

laureon 04-30-2004 03:44 AM

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

laureon 07-16-2004 11:05 AM

Any ideas of how to display the category a product belongs to on 'products_t.tpl? TIA

funkydunk 07-17-2004 01:53 AM

try {$current_category.category_name}

laureon 07-17-2004 03:08 AM

thanks funkydunk, but unfortunately that does not work.


All times are GMT -8. The time now is 03:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.