Forums / Templates, Stylesheets, Page Layout / Display all product categories (linked too) on product display page

Display all product categories (linked too) on product display page

Locked

Views: 1,663

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
13 Jul 2009, 9:30 PM
#1
christinapupo avatar

christinapupo

New Zenner

Join Date:
Jul 2009
Posts:
24
Plugin Contributions:
0

Display all product categories (linked too) on product display page

Hi, On the product info page, I would like to display all the categories that a product belongs to and not just the current category. Is there a function to call for this?

Using v1.3.8a.

31 Aug 2009, 1:00 PM
#2
jjdoench avatar

jjdoench

New Zenner

Join Date:
Feb 2008
Posts:
41
Plugin Contributions:
0

Re: Display all product categories (linked too) on product display page

Christina - did you ever find a solution for this? I am also looking for this feature.

Jessica

31 Aug 2009, 2:07 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Display all product categories (linked too) on product display page

There is an admin function zen_get_master_categories_pulldown($product_id) which returns an array containing id and name of all categories linked to the product (plus a bit of text for the pulldown). I don't know if it is available in the front end (don't think so), but it could be used as a base to make the simple function you want.

It is in /admin/includes/functions/general.php, line 2760.

31 Aug 2009, 5:08 PM
#4
christinapupo avatar

christinapupo

New Zenner

Join Date:
Jul 2009
Posts:
24
Plugin Contributions:
0

Re: Display all product categories (linked too) on product display page

JJDoench:

Christina - did you ever find a solution for this? I am also looking for this feature.

Jessica

...Not yet but I may try the zen_get_master_categories_pulldown($product_id). I will let you know if and when I get it working