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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 20091022-uc_cart-patch.patch | 1.37 KB | noahlively |
Comments
Comment #1
noahlively commentedI've re-rolled a patch against the 2.0 release. Please consider for committal to CVS.
Comment #2
longwaveDuplicate of #545520: A patch to allow instant access to file downloads on order completion, etc.