I use session storage for cart until checkout. 

You can find an example from Massimo here:
https://github.com/mdipierro/web2py-appliances/tree/master/EStore

I was studying this before implementing my own solution.

Best,
K. 

On Monday, 6 April 2015 21:08:25 UTC+2, Gael Princivalle wrote:
>
> Hello all.
>
> I've to make a cart.
> I would like to let the user add products to the cart without login.
> Login will be done at checkout.
> I would like to save all carts, so when a user will add the first product, 
> I'll add a record in my cart table.
>
> I'm wondering about how can I manage the fact that I have to reference the 
> auth_user in this cart table, as it will not have done the login?
> I was thinking about creating a dummy user and put his ID temporary in the 
> cart table.
>
> Someone have a suggestion?
>
> Thanks, regards.
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to