3 replies [Last post]
stormer's picture
Offline
Joined: 09/16/2007
Juice: 110
Was this information Helpful?

Is it possible to shift the location of the attribute within the product node - the default seems to be at the bottom of the node but I'd like it to appear at the top? I incorporate a video preview in the node and due to the size of this field the attributes are not visible without scrolling.

many thanks.

zmove's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 1192
Re: Where the attributes appear in the node

Yes, you can do that by altering the theme of a product node by redeclaring node-product.tpl.php file.

Learn more about theming

You can install the module content template to easily see which variable you can use.

anstosser's picture
Offline
Joined: 08/06/2008
Juice: 27
Re: Re: Where the attributes appear in the node

It seems that the attributes are already rendered within $body variable. I don´t see a chance to render them seperatly.

What I did is to use uc_product_get_attributes function in my _form. Perhaps there´s a better solution...

greetz alex

jdcllns's picture
Offline
Joined: 01/26/2008
Juice: 60
Re: Re: Re: Where the attributes appear in the node

Yes, when using Content Templates, the attributes and the Buy Now button are all bound up in the $body variable. That's really annoying because they are rendered in a ugly way in the browser. I would really like it if they were available individually in Content Templates. I'm not having much luck with node-product.tpl.php.