Shopping Kart:How to?

I would like to make a Shopping Kart voor the Web
Any suggestions or source code available?

Thanx Anthony

antman@freemail.nl
antman060497Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jpk041897Commented:
In order to make a shopping cart application, you will have to keep in mind several aspects:

1.- Secure server communication. All transactions carried out must be made in a secure environment. This implies transfer of user:password pairs to a secure server.

In order to acomplish this you can look at:
http://www.princeton.edu/~ammuldr/java_http.html

or at

http://www.inovation.ch/java/HTTPClient/

I can also provide you with alternative code if what appears in these pages is insufficient.

2.- A shopping cart will require Data Base access, both to maintain the catalog of items and to store the clients order (for invoice, Credit Card authorization and shipping).

Item Catalog.- You have several options available: If your server is a Windows based machine, you could use Allaire's Coldfusion or Novell's Crystal Reports to display the catalog via SSI calls. If you are running on other plattforms, you can use JDBC or Oracle products to acomplish the same results.

The main point is, its a lot eisier to display the product catalog with HTML than with Java.

Clients Order.-For this you can use either Java or HTML and cookies. To solve using Java, Set up an applet with a good grid component (http://www.objectshare.com/jkg/ for instance) to create an online invoice. You can store the data temporarily on the client using a Vector and then transfer that data to server for Data Base storage when the user places his order.

Once you have transfered the data to the server use JDBC for permanent storage.

You could of course use CGI processing to accomplish the same results.

You will also require access to a CIX server (or equivalent service) for credit card authorization if you intend to support it. I know of now comertial product in Java that offers this, but there are several native code libraries that you could use,

As a final point, if you opt for a pure Java or mostly Java solution, then I suggest you set up your applet in a frame. Doing it this way will allow you to make your applet a floating applet (i.e.: allow you to detach it from the page) and will allow you to place menu's on it. Since a full blown shopping cart app. has more information than can posibly be displayed on a single screen, this ability will proove invaluble.

Your question covers a lot of ground (You could write a small bookk based on it :-)) So I have only scrathed the surface in this answer. Please feel free to request additional information on more specific aspects of your problem in comments to this question. I will gladly answer them untill you feel you have enough information to accomplish your task.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
antman060497Author Commented:
Hi JPK,

Thanks for your very informative answer.
You seem to know veru much about this subject.
I would like to ask you if i would want to make it
in CGI (i learned that the advantage is that it is supported by
all the browsers) without the CIX server in a WIndows NT
environment if would know if there some sample code available?

Thanks

Antman
0
jpk041897Commented:
Thanks for the comment. Actually I have recently bid for a verry large contract to create a certain large Bank's presence on the Web including most banking services.

Although its not exactly a shopping cart, the research I did for this project is close enough to apply :-)

You can find free source code for a shopping cart (CGI scriots) at:

http://selena.mcp.com/Scripts/

Although you will have to navigate a bit inside the web site to find them.

You can also get profetional tools that handle the scripting from:

http://www.stars.com/Vlib/Providers/CGI.html

Hope this helps.
0
antman060497Author Commented:
You really helped me out there
Thanx Dude!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.