Thanks for the suggestions. I'm thinking now that if I can attach a cart object to every login id (and use listeners to keep it synchronized with the default cart), then that would do it. At present, I think the cart is linked to the contact object (and when there is no contact information for a user, there is no customer information set in the admin page at home>shop>shopping cart), even though the contact object may not exist. A persistent cart has to be attached to something that cannot NOT be. Of course, that would seem to suggest that all users would have to set up a user account and login before browsing the site, which in my application is not a problem. (Another way: when they are about to leave the site, warn new users that their cart will be lost if they don't create an account before leaving....)
On Jun 30, 9:41 am, Bruce Kroeze <[email protected]> wrote: > On Tue, Jun 30, 2009 at 7:03 AM, Bob Waycott<[email protected]> wrote: > > Before you start on it, have a good look through the Cart code & see exactly > > what's going on & when. That will help you immensely. > > Also take a look at the wishlist app. There's custom code to load a > cart from a wishlist. You could do something similar. > > > > > > > On Tue, Jun 30, 2009 at 9:26 AM, wgw <[email protected]> wrote: > > >> Thanks for pointing me in the right direction. I suppose I will have > >> to make a separate persistent cart, because there is no policy (AFAIK) > >> about when carts are garbage collected. > > >> On Jun 30, 6:06 am, Bob Waycott <[email protected]> wrote: > >> > Every Cart object has a Cart.customer field, which is a pointer to a > >> > Contact > >> > object. You could write your own method for creating a new cart from the > >> > previous Cart > >> > object upon login given the Contact object that is created for that > >> > session once the user is logged in (every User object is tied to a > >> > Contact object). > > -- > Bruce Kroezehttp://solidsitesolutions.com > Dynamic Designs, Optimized --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
