1 reply [Last post]
zerospin's picture
Offline
Joined: 05/03/2010
Juice: 14
Was this information Helpful?

Hi

I have made a custom module, that adds som more fields to the checkout pane.

Now I need need to add few lines off custom code to the hook_uc_cart_complete_sale() function.

I would prefer nok to hack the core. How do I modify this in a custom my module ?

I have tried:

_uc_cart_complete_sale
hook_uc_cart_complete_sale
mymodule_uc_cart_complete_sale

Hope someone can give me a clue ?

\Dan

manatwo's picture
Offline
Joined: 02/19/2008
Juice: 235
Re: How to modify uc_cart_complete_sale in custom module

Unfortunately, uc_cart_complete_sale is a function, and cannot be altered. However what you are trying to accomplish can most likely be handled with an implementation of hook_order. Have you checked out the uc_lead module? It's a nice example of a custom checkout pane and hook_order.