Topic: DB_Cart Multiple sessions (different carts at the same time) (Read 1205 times)
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« on: May 14, 2007, 11:04:43 AM »
Hi, i've modified the script a little bit to fit to my website so maybe the problem is due to a manipulation, but maybe you didn't think about it!? I was testing my cart, adding items, then leave the browser, connect to another computer the next day, and the cart was still full, with the same items thant the day before. So i guess new visitors will see the carts of previous other visitors?? The timeout of an order is not enough, i need the possibility that 2 different persons can use a cart each, at the same time from two different computers.
I think i have to add the IP to the order, but i think you will have better ideas to figure that!
Sorry for my english if it's not clear
Thanks a lot for the script anyway !!
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6349
38918 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: May 14, 2007, 12:00:41 PM »
I think you're using the cart wrong, most examples are about the usage with customer numbers, let see what you have changed? (if you changed the class, than you're on your own )
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #2 on: May 14, 2007, 07:58:22 PM »
Well it's true i am using the cart without a customer database. First, i only need a paypal payment button, that's why i was using paypal cart. But the shipping charges calculation is not appropriate to what i needed (total shipping depending on the number of items, but not a "first item shipping" + "additionnal îtem shipping" because for 40 items the shipping is enourmous!) Anyway, i need that any visitor, without login, can fill a cart, and the confirmation is only the Paypal invoice for me and for him, with all the items details, correct shipping, and customer adress. That is working now. But on the checkout.php page, i removed some features like the delivery adress form (because i will use paypal's) and the automatic email posted (because i couldn't make that the "pay now" button opens the paypal page and send an email at the same time)
My idea was to use the visitor's IP in every new cart opened, and then check on every page that if the IP of the visitor is in the Orders database, then i will show the cart...
But maybe you have a more easier idea, or another solution for that using the customer list? (maybe using the visitor IP as a customer number?) what do you think about all that?
the hard thing will be to test the code, using different IPs through proxy sites...
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6349
38918 credits Members referred : 374
Well it's true i am using the cart without a customer database. First, i only need a paypal payment button, that's why i was using paypal cart. But the shipping charges calculation is not appropriate to what i needed (total shipping depending on the number of items, but not a "first item shipping" + "additionnal îtem shipping" because for 40 items the shipping is enourmous!) Anyway, i need that any visitor, without login, can fill a cart, and the confirmation is only the Paypal invoice for me and for him, with all the items details, correct shipping, and customer adress. That is working now. But on the checkout.php page, i removed some features like the delivery adress form (because i will use paypal's) and the automatic email posted (because i couldn't make that the "pay now" button opens the paypal page and send an email at the same time)
My idea was to use the visitor's IP in every new cart opened, and then check on every page that if the IP of the visitor is in the Orders database, then i will show the cart...
But maybe you have a more easier idea, or another solution for that using the customer list? (maybe using the visitor IP as a customer number?) what do you think about all that?
the hard thing will be to test the code, using different IPs through proxy sites...
right you need a unique ID and remember this cart is database based and not session based
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #4 on: May 14, 2007, 10:45:30 PM »
So you think what i proposed is the best solution, using the IP of the visitor as a new order entry, and then check on the checkout page that the IP of the visitor will show the right cart? what do you mean by unique ID ?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6349
38918 credits Members referred : 374
So you think what i proposed is the best solution, using the IP of the visitor as a new order entry, and then check on the checkout page that the IP of the visitor will show the right cart? what do you mean by unique ID ?
just make it unique if you think the IP address is OK use it