2+ different users

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

What if 2 people use the same cart at the same time and instead of use RE-Calculate they use their browers' REFRESH button?

Or they don't make a purchase the cart stays full?

How do I remedy these two problems?

-- Matt (armagad@shadowlink.net), April 29, 1999

Answers

Hi,

If two people use the cart at the same time they should have diffrent "$host" numbers so they do not use the same cart it is part of the script you do not have to add it in.

If someone gets a shopping cart with items in it you can add a "Delete Cart" button to the "footer.html" that will empty the cart then they can return shopping. Check the "Readme" file I think it is listed there.

Jim

-- James L. Farmer (jim@team-blankets.com), June 07, 1999.


Moderation questions? read the FAQ