?
Solved

Shopping Kart:How to?

Posted on 1997-06-04
4
Medium Priority
?
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
jpk041897 earned 600 total points
ID: 1221212
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
ID: 1221213
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
ID: 1221214
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
ID: 1221215
You really helped me out there
Thanx Dude!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month10 days, 6 hours left to enroll

765 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