using Panes for two seperate order forms

Posts: 10
Joined: 03/04/2008

Hi all,

Still getting used to this. I am hoping someone has an answer of some sort.
I need two seperate order forms. One for wholesalers, and one for retail customers.
All I need really is a new pane to hold some other random information. But I don't want that pane showing up for everyone. Other than messing with the wonderful code made by the ubercart team, how do I make this happen? I have the pane written, but to turn it off I have to disable it, which is bad cause I am not staffing the machine 24-7 just to turn it off and on.
Any help is appreciated.

Posts: 4747
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Is there some way you're differentiating retail from wholesale customers? Perhaps a user role or something? In your checkout pane code, you can just disable it if the user (global $user;) doesn't meet the criteria. To disable it this way, I'd put the checks in your hook_checkout_pane().