Thanks so much. I actually only used the top amount because I'm using it to collect additional information on the registrants. One thing I noticed was I had to change the following:
'callback' => 'camp_pane_callback',
to:
'callback' => 'uc_checkout_pane_player',
Anyways it works perfectly. Thanks for your help.
If anyone else is interested here is the complete code based on TorgosPizza:
<?php
// $Id$
/**
* Implementation of hook_checkout_pane
*/
function uc_camp_checkout_pane() {
global $user;
$items = uc_cart_get_contents();
$containsCamp = FALSE;
foreach ($items AS $item) {
// Look for the word "camp" in the SKU, set var to TRUE if exists
if (eregi('camp', $item->model)) {
$containsCamp = TRUE;
}
}
if ($containsCamp == TRUE) {
$panes[] = array(
'id' => 'player',
'title' => t('Player Information'),
'desc' => t('Please complete the following information for player registering.'),
'callback' => 'uc_checkout_pane_player',
'weight' => 7,
);
return $panes;
}
}
?>


Joined: 01/13/2008