Satchmo's documentation has a page about the signals it sends[1]. That should help you with notifying your other apps about completed purchases.
To plop a purchase button on a non-Satchmo product page, but all you really need is to put in a form that posts the right information to the Satchmo add to cart view. I actually ended up writing a custom view to handle that for my project because it needed to do some other stuff, but I'll defer to anyone else who knows of an easier way (e.g. an existing template tag that takes a product as an argument and outputs such a form). [1] http://www.satchmoproject.com/docs/dev/signals.html On May 31, 8:22 am, "Danny W. Adair" <[email protected]> wrote: > Hi, > I'd like to add satchmo to an existing django project, and integrate > with the other apps. > satchmo would a) be a standalone shop on a website but also > b) I would like users to be able to purchase from within the other > applications, for example upgrades. > > Sorry I have not looked into the source much yet. > What's the common way to share user accounts between satchmo and other > apps (given that registration info can be different)? > Is there an API to make purchases from another app? > Are there hooks to notify my apps about a completed purchase? > > For example, a website visitor purchases a product - which is a user > account to one of the apps - and automatically gets access to the app. > Within the app, I provide a page where upgrades can be purchased. > Purchasing an upgrade will add the user to additional groups, which in > turn opens up the additional functionality. (I can handle account > expiry/reminders separately) > > I'm thankful for any pointers. > > Cheers, > Danny -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
