4 replies [Last post]
fang27's picture
Offline
Joined: 01/30/2008
Juice: 121
Was this information Helpful?

Is there a way to arrange fields created by CCK for an ubercart product so that they come after the description when viewing the product? Right now, all fields and groups I create come before the product description.

Thanks for any help!

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Arranging CCK Fields in Product

You can use the Contemplate module, or just skip straight to laying out everything explicitly in your node-product.tpl.php

<tr>.
fang27's picture
Offline
Joined: 01/30/2008
Juice: 121
TR wrote:You can use the
TR wrote:

You can use the Contemplate module, or just skip straight to laying out everything explicitly in your node-product.tpl.php

When using Contemplate, I see there are "body template" and "body variables". If I move the location of the variables, does that affect the overall layout?

The other question is whether I can change the order based on the content types>manage fields area. This area shows the order I can put the fields in, but it does not allow me to change the order or appearance of things like title, body, taxonomy, and base. Is there a way to be able to manage those fields (yes, I am the superuser).

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: TR wrote:You can use the

The product body will print exactly as in the template area, using only those variables and other data you add, in exactly the order you have entered them. The template area just holds the HTML for the page. Once you become familiar with what variables are available to you, I think it's easier and quicker to just edit the node-product.tpl.php and forget about Contemplate. But Contemplate is a good place to start.

<tr>.
boromino's picture
Offline
Joined: 02/10/2008
Juice: 18
manage fields area

I prefer to use content types>manage fields area, as the shop owner can easily manage the sequence by himself later. To display the CCK fields after the description, just set the weight of the fields or the groups higher than the description.

I haven't found out, how to change the weight of the title and description field from within the admin area, either, but would be eager to know such a solution.

Boromino - We build websites