The way we handle it with Satchmo is to have a cart object and store that id
in the session. It's pretty simple and does not require a user to be logged
in.
-Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
On 7/19/07, Greg <[EMAIL PROTECTED]> wrote:
> So I guess Session's will work if that is the case. It looks
> like I will have to place a cookie on the visitor's computer using
> set_test_cookie() and test_cookie_worked() method's so that I'm able
> to tell the difference between two users that ar
Lutz,
Yea I don't plan on having the user login to purchase a product from
me. So I guess Session's will work if that is the case. It looks
like I will have to place a cookie on the visitor's computer using
set_test_cookie() and test_cookie_worked() method's so that I'm able
to tell the differen
Hi Jeremy,
On Thu, 19 Jul 2007 10:45:46 -0500
"Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
>
> On 7/19/07, Greg <[EMAIL PROTECTED]> wrote:
> > x = request.session ?? # I want to add s and c to my session?
>
> cart = request.session.get('cart', [])
> cart.append({'style':s,'choice'c})
>
>
On 7/19/07, Greg <[EMAIL PROTECTED]> wrote:
> x = request.session ?? # I want to add s and c to my session?
cart = request.session.get('cart', [])
cart.append({'style':s,'choice'c})
request.session['cart']=cart
But, fundamentally, putting cart info in session is a bad idea; people
switc
I have the following view:
def showcart(request, style_id, choice_id):
s = Style.objects.get(id=style_id)
c = Choice.objects.get(id=choice_id)
x = request.session ?? # I want to add s and c to my session?
return render_to_response('show_test.html', {'mychoice': x})
6 matches
Mail list logo