Re: Re: What am I doing wrong?

Posts: 21
Joined: 01/13/2008

Thank you everyone for your help. I have solved this issue and have been able to add a total of 60 text fields to the uc_lead form (now Team Roster Pane). If anyone would like to see this, please contact me.

However, I was wondering if anyone knows how I can restrict this pane to display only if "Tournament and/or Team" displays in the product title. Originally I added custom fields to the billing pane which if "Tournament" was not found in the title it displayed individual player fields. If Tournament was found in the title it displayed a file upload to upload roster. However, with the Uc_Lead pane now collecting the roster, I have removed the file upload and need to modify the pane to only display if Tournament and/or Team is displayed in the title. The code I used on the billing pane was:

$showUpload=falase;
$items = uc_cart_get_contents ( );
for each ($items as $item) {
if( strpos(strtoupper{$item->title), 'TOURNAMENT') !== false ) {
$showUpload = true;
}
}

if( $showUpload ) {

}

else {

}

Add Fields to Checkout Form By: kbarash (5 replies) Sun, 01/20/2008 - 00:07