Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display Subcategory Name on Product Info Page w/o Previous/Next?

Display Subcategory Name on Product Info Page w/o Previous/Next?

Locked

Views: 1,166

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
13 Nov 2008, 5:01 PM
#1
msmith29063 avatar

msmith29063

New Zenner

Join Date:
Jan 2008
Posts:
71
Plugin Contributions:
0

Display Subcategory Name on Product Info Page w/o Previous/Next?

How do I display the subcategory name for a product on the product info page WITHOUT enabling the previous/next feature on the page? Thank you. I'm stumped...

14 Nov 2008, 4:03 PM
#2
msmith29063 avatar

msmith29063

New Zenner

Join Date:
Jan 2008
Posts:
71
Plugin Contributions:
0

Re: Display Subcategory Name on Product Info Page w/o Previous/Next?

Does anyone not know how to do this? I could not find the answer anywhere in the forums...

14 Nov 2008, 11:06 PM
#3
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Display Subcategory Name on Product Info Page w/o Previous/Next?

You wan to display the subcategory name on the product info page?

Generically, when you want to do something like this, you look for where it's appearing now, on some other type of page. You then track down the code that is causing it to appear (in one of the php files which make up that page), then copy that code and paste it into the product_info.php page at a suitable location.

I wish I could be more specific about it, but that might get you started.

Rob

15 Nov 2008, 2:42 AM
#4
msmith29063 avatar

msmith29063

New Zenner

Join Date:
Jan 2008
Posts:
71
Plugin Contributions:
0

Re: Display Subcategory Name on Product Info Page w/o Previous/Next?

I appreciate your comments. I have done some of this -- but to no avail. I figured out how to do it with the prev/next function enabled -- but don't want that piece to appear at the top of the page. Any other ideas? Thanks!

15 Nov 2008, 7:26 AM
#5
msmith29063 avatar

msmith29063

New Zenner

Join Date:
Jan 2008
Posts:
71
Plugin Contributions:
0

Re: Display Subcategory Name on Product Info Page w/o Previous/Next?

After some digging, I found a built-in function to do this. Pretty cool.

zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id'])
16 Nov 2008, 2:26 AM
#6
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Display Subcategory Name on Product Info Page w/o Previous/Next?

I often solve problems by talking to myself. I didn't know that method worked for others too. :laugh:

Rob