Solved

Shopping Kart:How to?

Posted on 1997-06-04
4
195 Views
Last Modified: 2010-04-16
I would like to make a Shopping Kart voor the Web
Any suggestions or source code available?

Thanx Anthony

antman@freemail.nl
0
Comment
Question by:antman060497
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
jpk041897 earned 150 total points
Comment Utility
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
 

Author Comment

by:antman060497
Comment Utility
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
 
LVL 6

Expert Comment

by:jpk041897
Comment Utility
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
 

Author Comment

by:antman060497
Comment Utility
You really helped me out there
Thanx Dude!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scoresSpecial  challenge 13 40
strCopies  challenge 17 73
Securing Jmx Console and web console 2 45
github account with ecipse 1 15
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now