I have a usecase that needs a reusable cart that is distinct from any
pre-existing user or session cart.  Basically I have some PloneFormGen
adapters that need to annotate the users cart so they can perform an action
once that order has been charged.  (In this case write the order to
salesforce).  I have no problem using the default session cart when
getpaid.formgen is in multi-page checkout mode.  However when it is in one
page checkout mode it uses a oneshot cart that I can't access.

So I'd like to modify ShoppingCartUtility so I can create 'multishot'
carts.  These are stored in a session under a key of the users choice.  (For
the getpaid.formgen case I was thinking of using the forms id.)  This way my
salesforce adapter can also query for that cart so it can annotate it and
then act on it once the order has been charged.

So essentially my getpaid salesforce adapter runs first (I have another
change to Products.PloneFormGen that will run adapters in the order they are
listed in the folder instead of the order they were added), it looks up the
getpaid adapter on the form to see if it is in multi page or single page
mode.  Based on that it looks up either the session cart, or the multishot
cart associated with this plone form gen form (essentially creating it).  My
adapter adds an annotation to the cart and returns.  The getpaid adapter
then loads the same multishot cart and does it's thing.

Any thoughts comments or concerns?  Thanks.

-Rob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"getpaid-dev" 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/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to