Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-07-2005, 05:59 PM php session handling
Novice Talker

Posts: 9
Trades: 0
I've developed a shopping cart with PHP and MySql which works fine. Once an item is added to the cart it is withdrawn from the database instead of leaving the withdrawing till the checkout stage. This avoids shoppers all choosing an item that may be the last in stock. The only problem is if the shopper that has the item in their cart decides not to buy and leaves the site without removing the item from the cart or the session times out, the item hasn't been purchased but also hasn't been put back in the database. What can i do to get round this?
phouse is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-08-2005, 01:08 AM
Extreme Talker

Posts: 169
Trades: 0
Run a script which checks the cart. If the cart is abondoned by a visitor and if there are any items in the cart, you can add them back to database. You can write a script and run it when the browser is closed or session is timed out. Also you can run the script automatically using cron jobs.
__________________

Please login or register to view this content. Registration is FREE

TOP 10 WEB HOSTS COMPARED

BEST RESELLER HOSTING
john551 is offline
Reply With Quote
View Public Profile
 
Old 11-08-2005, 02:22 AM
Skilled Talker

Posts: 62
Trades: 0
Postpone inventory deduction until checkout - if a user attempts to checkout with an item which just sold out, offer a contact form to ensure the customer has the option to complete the sale through a representative (this is generally the best way to prevent a sale lost to understocking, if your representative is good over the phone or by e-mail).
__________________

Please login or register to view this content. Registration is FREE
danlefree is offline
Reply With Quote
View Public Profile Visit danlefree's homepage!
 
Reply     « Reply to php session handling
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46660 seconds with 12 queries