UC Team,

Currently the themed order confirmation output is called before the checkout complete trigger is pulled:

$themed_output = theme('uc_cart_complete_sale', $output_message);

//... some other code

module_invoke_all('uc_checkout_complete', $order, $account);
ca_pull_trigger('uc_checkout_complete', $order, $account);

This means that file downloads get assigned AFTER the order confirmation is generated. If we move the themed output call to below the trigger invocation, it makes it possible to provide instant, on-screen access to digital downloads through the use of hooks and tokens.

What would it take to get this rolled into the next commit? It would be a killer feature, and currently I have to make the change to every release I download to get it working in my project.

Thanks!
Noah Lively

CommentFileSizeAuthor
#1 20091022-uc_cart-patch.patch1.37 KBnoahlively

Comments

noahlively’s picture

Version: 6.x-2.0-rc7 » 6.x-2.0
StatusFileSize
new1.37 KB

I've re-rolled a patch against the 2.0 release. Please consider for committal to CVS.

longwave’s picture