22, November 2008

DB_Cart Multiple sessions (different carts at the same time) - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  DB_cart Class (Moderator: Olaf)
Topic: DB_Cart Multiple sessions (different carts at the same time)
« previous next »
Pages: [1] Print

Author Topic: DB_Cart Multiple sessions (different carts at the same time)  (Read 1261 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 Wink

Thanks a lot for the script anyway !!
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 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 Wink)


Last blog : Just a better Internet portal provided by Google
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: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: May 14, 2007, 08:54:25 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...


right you need a unique ID and remember this cart is database based and not session based


Last blog : Just a better Internet portal provided by Google
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: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: May 14, 2007, 11:09:33 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 ?


 



just make it unique if you think the IP address is OK use it

(use that function: ip2long Visit through proxy)
« Last Edit: May 14, 2007, 11:12:02 PM by Olaf »


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6568
Tags : multiple session Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  DB_cart Class (Moderator: Olaf)
Topic: DB_Cart Multiple sessions (different carts at the same time)
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 03:20:42 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.397
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Janai

40 Guests, 5 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.