Best way to display custom messsage based on zip code

Posts: 67
Joined: 02/20/2008

I need to display a message to the user when an order is submitted and the zip code is not one in a predefined list (for a local delivery area). My thought was to create a custom order pane to display the message. Is there a better way to do that? For instance, would I be better of using hook_uc_message to create the message and then uc_get_message() to display the message in a custom pane? I don't see uc_get_message documented in the API docs anywhere.

Thanks.

Posts: 67
Joined: 02/20/2008

OK, I did it by adding a new pane on the review page that is displayed with $arg1->delivery_postal_code is not in an array of zip codes, and I can get it to display just fine. However, I'd like to add a CSS class to that pane (actually a row in the table) so I can highlight the message. Does anybody know what theme function creates that table? I've looked through the uc_order module and I can't seem to find it. I suppose I could use jQuery to target the table and add CSS, but I'd rather just override a theme function if I could.

Thanks.