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)
-   -   Page Titles - Show subcategory only (https://forum.x-cart.com/showthread.php?t=4388)

junai3 09-17-2003 03:27 PM

Page Titles - Show subcategory only
 
Hi all -

Having a little trouble here. I'm trying to display titles on each page. Currently, I am using {$current_category.category}. This works fine on top level categories, but when your in a subcategory, it displays:

category name/subcategory name

I would like to be able to just display the subcategory:

subcategory name

Does anyone have any ideas? Also, is there a way to be in a subcategory and display the top level category only. Say you were in a subcategory it would display:

category name

Thanks,
Justin

funkydunk 09-18-2003 11:54 PM

This is available as: {$current_category.category_name} i believe

junai3 09-19-2003 11:41 AM

Thanks, works like a charm!

funkydunk 09-19-2003 11:00 PM

:)

adpboss 01-05-2004 03:08 PM

I need help with this.

I would like to display the subcategory OR Root category that a product resides. The display would come in the products.tpl template.

Trick is I want to strip the slashes and either the parent or child categories from the display.

So if I had a product in Potato/Chips/Salt & Vinegar, it would only display Potato or alternately Salt & Vinegar.

Anyone?

funkydunk 01-05-2004 11:06 PM

answered this in the other post :)


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

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