djangodrupalubercart

drupal ubercart order update django


How would you update a django app when there was an order in drupal ubercart. The order details and user information gets carried to django app.


Solution

  • We would need to know a lot more specifics about your setup in order to really answer this question, but it sounds like at a basic level all you need to do is use Drupal to modify another database (i.e., the one Django's using) and possibly redirect to the Django app?

    If that's the case, then you'll need to write a small custom module that would:

    1. Switch the active database to the one Django is using (this is relatively easy using db_set_active())
    2. Make your updates (can't help much here without knowing what your updates actually are, but either way, it will probably involve raw SQL)
    3. Possibly redirect to a page in your Django app (depending on if the redirect is needed or if the user can stay within Drupal)

    Does that answer your question?