Closed (fixed)
Project:
Ubercart
Version:
6.x-2.4
Component:
Orders
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2011 at 21:08 UTC
Updated:
1 Apr 2011 at 22:41 UTC
I need to show in order template the product class of every product.
What is the var for it?
I would like to learn what is the name of many vars to include in my custom order template, Im spending hours trying var name's and searching in drupal.org and ubercart.org what is the name of var for this field, and I would like to discover it for myself if somebody can explain me I will be very glad for it.
Thanks.
Comments
Comment #1
longwave$node->type is the product class name.
http://drupal.org/project/devel_themer can help discover which template variables are available, to save you using trial and error.
Comment #2
longwaveOh wait, perhaps you mean in the order invoice? In which case you will need something like:
$node = node_load($product->nid);
print $node->type;
Comment #3
bunset commentedThank you very much longwave, your helping was very usefull awesome.
Im trying and learning devel_themer too.