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)
-   -   Display PARENT category name on PRODUCT.TPL (https://forum.x-cart.com/showthread.php?t=26071)

lixy 10-24-2006 11:53 AM

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?

balinor 10-24-2006 12:00 PM

Re: Display PARENT category name on PRODUCT.TPL
 
Version? Please post it in your signature. Thanks! :)

lixy 10-24-2006 12:07 PM

Re: Display PARENT category name on PRODUCT.TPL
 
Sorry about that 4.1.3

lixy 10-24-2006 12:17 PM

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.

balinor 10-24-2006 01:13 PM

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.

lixy 10-24-2006 06:15 PM

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.


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

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