CiviCRM Integration

Posts: 18
Joined: 01/28/2008
Bug Finder

Greetings,

We are trying to integrate CiviCRM with Ubercart so that CiviCRM can add information about purchases to its database. This would be done most effectively after Ubercart has assigned a Drupal UID to an anonymous purchaser, which is done in uc_cart_complete_sale(). Unfortunately no hook is available that will be called after UID assignment; we're stuck using hook_order('pending') which is too early.

So is there any chance of defining an additional hook?

Thanks

Posts: 4254
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Probably won't get a hook in there, but you could try writing a workflow action and putting the logic into a workflow configuration. The "customer completes sale" event gets invoked w/ the order and user object after the user is created.

Posts: 18
Joined: 01/28/2008
Bug Finder

That worked fine, thanks. Beta 1 of the module has been uploaded to
contributions