473,396 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Tracking Shopping Cart Inventory

I am at a total loss as to how to accomplish a feature in a shopping
cart. (I am using PHP5 and MySQL)

Basically, when someone adds an item to their cart, it should alter
the inventory to reflect it. That part i have fine, but the problem
is, that should a person decide not to complete their purchase, the
level should go back up. So the decrease in available stock should go
down only temporarily, until checkout.

The actual transaction is through PayPal, which complicates things,
cause let's say someone quits halfway on the paypal site, i'd have no
way to trigger a script or something like that. Or, even if they go
through a transaction, a user may not return to the site to trigger a
confirmation script.

I have been reasearching all day, and it just baffles me. I had
considered a type of "users online" type of script, but i guess the
logic just baffles me. The poimt of this is to avoid overselling
stock.

So yeah, if anyone can help by pointing me to a script or just give
some logic on how i can keep track of inventory this way, that would
be fantastic.
Nov 3 '08 #1
2 1925
On Nov 3, 2:50*pm, themayanlion <den...@victoryrecords.comwrote:
I am at a total loss as to how to accomplish a feature in a shopping
cart. (I am using PHP5 and MySQL)

Basically, when someone adds an item to their cart, it should alter
the inventory to reflect it. That part i have fine, but the problem
is, that should a person decide not to complete their purchase, the
level should go back up. So the decrease in available stock should go
down only temporarily, until checkout.

The actual transaction is through PayPal, which complicates things,
cause let's say someone quits halfway on the paypal site, i'd have no
way to trigger a script or something like that. Or, even if they go
through a transaction, a user may not return to the site to trigger a
confirmation script.

I have been reasearching all day, and it just baffles me. I had
considered a type of "users online" type of script, but i guess the
logic just baffles me. The poimt of this is to avoid overselling
stock.

So yeah, if anyone can help by pointing me to a script or just give
some logic on how i can keep track of inventory this way, that would
be fantastic.
of course, is this is also impossible, that would actually help me
sleep a little better :)
Nov 3 '08 #2
thank you both very much, this helps clear up quite a few things for
me.
Nov 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: AJ | last post by:
Hi all I've just written a VERY simple shopping cart system for my own joy and edification as much as anything else. Mostly it was an exercise in learning about sessions but I want to keep...
2
by: Don Grover | last post by:
I am retrieving costs and product id's from a sql db. and need to build a shopping cart around it. How do I store the selected items and qty req so I can move into another catalog and total up as...
3
by: ning | last post by:
Is there good shopping cart tools for ASP code
1
by: madison | last post by:
Hi, I am trying to start a website using paypals shopping cart function. If i have 10 items and they sell out, how do I make it so the item is then listed as sold out. The next person would not...
1
by: Jia Sun | last post by:
hello , everybody , i need a similar program , just like fancyimport.com if possible, pls contact me ,thank you very much . inchina@gmail.com
2
by: G.E.M.P | last post by:
High Level Session Handling Design for a Shopping cart 0) What am I missing? 1) How does OSCommerce do it? I'm thinking about building a shopping cart from scratch, using a library of dynamic...
7
by: isaac2004 | last post by:
hi i have a basic asp page that acts as an online bookstore. on my cart page i am having trouble generating 3 numbers; a subtotal, a shipping total, and a final price. here is my code i would...
1
by: jecha | last post by:
I'm implementing a shopping cart but am having a problem in checking out a person who has added item in his/her shopping busket.The code for the checkout.php script is given below <?...
3
by: Paulo | last post by:
Hi, beginner on asp.net 2.0 C# VS 2005, how can I use the shopping cart concept on my application? When the user clicks add item, it will be stored on some storage format, I dont know what is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.