Re: Shopping Cart Session Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Seeing a race car explode does not tell us why it exploded. We need to see
what caused the problem. Are you using a database, cookies or global
variables to manage the shoping cart? Are you using SQL to update the qty or
are you simply changing the qty of a variable? We need to see your code in
order to tell you why you are having this problem.

Jim
 
-------Original Message-------
 
From: Boa Constructor
Date: Tuesday, May 13, 2003 14:15:25
To: php-db@lists.php.net
Subject:  Shopping Cart Session Question
 
Hey all, I'm having a problem with my shopping basket, I know what the
problem is but I'm unsure how to solve it.

I can add items to the cart no problem and it calculates the total no
problem, however when you change the quantity to say "2" then all items in
the cart have a quantity of "2" as this is the last entry for quantity
entered in to the session.

I'm thinking I'm going to have to loop round all the items in the session
and check their quantities, if the quantity in the session has to change
then change it and move on to the next item while making sure any quantities
which are not to change stay equal and so on.

If you want to see how its working at the moment go to:
www.hostmaster-x.co.uk/homepage.html

Any help, advice, tips or tricks welcome.

Cheers,

Graeme :)


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

. 

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux