2 replies [Last post]
humanchimp at yahoo dot com's picture
Offline
Joined: 01/18/2009
Juice: 79
Was this information Helpful?

Hi,

What I want to do should be simple. Maybe someone can help me figure it out. I want to customize or theme the output that is generated in a product list. Specifically, when a product has options that affect its price, I want the output in the price column to say something like "starting at $[lowest price]" instead of listing the base price as though it is the only price.

Can anybody help on this one? Does that even make sense?

Thanks,
Chris

humanchimp at yahoo dot com's picture
Offline
Joined: 01/18/2009
Juice: 79
pulling my hair out

I'm also trying to figure out how to put together a custom node-[product_class].tpl file... I'm wondering where the default html output is generated, so that i can clone it into a template file. Then, I can hack it from there to make it look like I want it to... Anybody know which module & function(s) generate that?

Thanks

alanburke@drupal.org's picture
Offline
Joined: 08/05/2008
Juice: 82
Re: pulling my hair out

For your second query, the devel module will help.
When enabled it has a tab called 'devel load' and 'devel render'
'Devel render' is your friend here.

Basically all the product info is stored within $node->content,
and you can theme to your hearts content from there.

Regards
Alan