1 reply [Last post]
mk31762's picture
Offline
Joined: 05/28/2009
Juice: 44
Was this information Helpful?

Hi. I hope someone can point me in the right direction. What I am trying to do is alter the layout of the existing panes on the checkout page. I have seen examples of how to override uc_cart_checkout_pane(), of overriding theme functions, and of using hook_form_alter() to modify form output. However, none of those seem to be the right solution for what I am trying to do. Overriding uc_cart_checkout_pane() seems to be suited to adding new checkout panes, whereas the layout of the existing panes do not seem to be based on theme functions, and hook_form_alter() seems to be far too broad a tool for what I am trying to do.

Can anyone tell me how to proceed or point me to a good example?

As an example of what I am trying to do, I would like to replace individual pane titles with text placed inside of div tags. I have only been able to accomplish this so far by altering the individual pane functions in the uc_cart_checkout_pane.inc file, which, I know is the absolute wrong way of doing it.

Thanks in advance.

mk31762's picture
Offline
Joined: 05/28/2009
Juice: 44
Re:How to alter existing checkout panes.

I'm going to answer my own question. I can see now that the solution is going to be a combination of hook_checkout_pane and theme overrides. The problem is that I wasn't able to get my own implementation of hook_checkout_pane to work correctly until now.

In the words of the late Emily Latella: Never mind.