Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a module which needs to capture the account creation done by ubercart. In prior versions (3.5) hook_uc_order with $op = 'submit' was called prior to hook_uc_checkout_complete. In version 3.8, at least, this order is inverted. In version 3.5, this was not the case.
Comments
Comment #1
richardl@ufp.com CreditAttribution: richardl@ufp.com commentedComment #2
richardl@ufp.com CreditAttribution: richardl@ufp.com commentedIn looking further, this is not a problem with the version of Ubercart. This problem is dependent on the payment configuration. A number of the payment modules call uc_cart_complete_sale() internally, circumventing the normal flow of the checkout. Specifically
Comment #3
tinker CreditAttribution: tinker as a volunteer commentedIs this the same problem as #1669968: hook_uc_checkout_complete() is called outside of checkout process (when payment is entered).
Comment #4
tinker CreditAttribution: tinker as a volunteer commented