Zen Cart Logo
Forums / Customization from the Admin / display product categories in orders.php (order details view)?

display product categories in orders.php (order details view)?

Views: 2,125

Results 1 to 2 of 2
8 Jun 2012, 5:23 AM
#1
myshol avatar

myshol

New Zenner

Join Date:
Jul 2006
Location:
Poland
Posts:
31
Plugin Contributions:
0

display product categories in orders.php (order details view)?

I want to display product category path and link to product next and prodto product name in order details view (orders.php file).

I know that product id I can display with:

$order->products[$i]['id']

But how can I find and display category path and product link?

By 'category path' I mean all categories and subcategories that leads to product. Some kind of breadcrumb.

8 Jun 2012, 7:49 AM
#2
myshol avatar

myshol

New Zenner

Join Date:
Jul 2006
Location:
Poland
Posts:
31
Plugin Contributions:
0

Re: display product categories in orders.php (order details view)?

so far I have something like this (orders.php about line 477):

... <td class="dataTableContent" valign="top">' . $order->products[$i]['name'] . '<br />category: ' . zen_get_products_category_id($order->products[$i]['id']) . ', link to product: <a href="http://www.my-domain.pl/#" title="'. $order->products[$i]['name'] .'" target="_blank">' . $order->products[$i]['id']; ...

Need to get product from category id and find link to product.