[ic] Saving and restoring shopping carts

William Carr bill at bottlenose-wine.com
Mon Jan 13 17:58:07 UTC 2014

On Jan 13, 2014, at 12:46 PM, Stefan Hornburg (Racke) <racke at linuxia.de> wrote:

> On 01/13/2014 06:20 PM, William Carr wrote:
>> How would I go about in Interchange having the shopping cart automatically saved (userdb.carts) every time the cart is updated 
>> and then restored when the user signs in? The idea is a consumer starts shopping on one computer adding items to the cart and
>> then once logged back into the site on another computer their cart from their previous session is available.
> I have such a feature implemented for a couple of clients, with cart storage in a carts and cart_products table.
> Supporting code can be found here:
> https://github.com/interchange/wellwell/blob/master/lib/WellWell/DatabaseCart.pm
> If you want to keep the cart in the session so you can use regular Interchange tags it is possible
> to update the session cart from the database at the beginning of the page handling.
> Let me know if you need more information.
> BTW: This feature is standard behaviour in Interchange 6. 8-)
Thanks, Racke.

I'm checking it out.


More information about the interchange-users mailing list