Here's a little snippet of code to customize ubercart product page template so that the contents are grouped into tabs.
You need Tabs and CCK Fieldgroups Tabs.
Go to yoursite/admin/content/node-type/product/fields and add some cck groups and fields, then display them properly (tabs for full node).
Create node-product.tpl.php. Paste the following php code in (enclose it with php tags):
$form = array();
$form['ptabs'] = array(
'#tabset_name' => 'ptabs',
'#type' => 'tabset',
);
$i = 0;
// shows a summary of the product
$summary;
$summary .= $node->content['weight']['#value'];
$summary .= $node->content['dimensions']['#value'];
$summary .= $node->content['body']['#value'];
$form['ptabs'][$i] = array(
'#type' => 'tabpage',
'#title' => t('Summary'),
'#content' => $summary,
);
$i++;
// add other tabs if applicable
if (!empty($node->content['fieldgroup_tabs'])) {
foreach ($node->content['fieldgroup_tabs'] as $key => $value) {
if (is_array($value)) {
if ($value['#type'] == 'tabpage') {
$form['ptabs'][$i] = array(
'#type' => 'tabpage',
'#title' => $value['group']['#title'],
'#content' => $value['group']['#children'],
);
$i++;
}
}
}
}
The page should always have a tab called Summary, and other tabs that you added for the content type if they are not empty (cck fieldgroup tabs module validates this). If you don't wish to have the Summary tab, simply delete that part of code.
Feel free to share the code.