First off, I'm using Ubercart on a new site that's under development and just wanted to say that it's been a dream to work with. Great job, everyone!
We're nearing completion of our initial Ubercart implementation and have one last requirement to add some custom order logic whenever an order is placed that I wanted to get some advice one.
Basically, our "products" are mostly user subscriptions, so we're using the "Roles Assignment" add-on to automatically assign roles whenever these "products" are purchased, which is working out well.
However, in addition, we also need to write a database record out to a custom table that a third-party application is going to consume, and want to do this immediately after the role assignment is processed (about 10 lines of PHP). So, I'm trying to figure out the best way to add a custom hook to do this without modifying the core Ubercart modules.
One option we're considering is basically creating a custom module based on the Roles assignment module to do this, but I wanted to get some advice to see if there's a simpler way before going down this road.
Thanks in advance!




Joined: 04/15/2008