Click to See Complete Forum and Search --> : Need pseudo code for a shopping basket.


jammer20002
03-25-2004, 07:18 PM
Can someone give me the pseudo code for a shopping basket?
(Pseudo code is the entire code explained in English... it's used by programmers.)

What I would like to know is what is generally the best way to implement a shopping basket?

Should you use cookies?
Should you use a database?

AND what is the best language to use? ASP or PHP? Are any others recommended?

Any help/advice would really be appreciated.

Thanks.


Jam

buntine
03-25-2004, 07:30 PM
Should you use cookies?
Should you use a database?

Yes and Yes. Personally i use Session variables, though, they are similar to cookies.

ASP and PHP are both easily capable of this type of thing.

A shopping cart is a large application which traditionally takes several hundred lines of code. You will need a very good understanding of the language which you ultimately use.

Most shopping carts need to handle alot of client-side actions through the use of JavaScript.

Regards,
Andrew Buntine.

PeOfEo
03-25-2004, 08:42 PM
Many shopping carts do use java script but do not realy on it. If you are doing the checkout system that goes with the cart you will need an extremely good understanding of the technology and know your stuff when it comes to security if you are going to be handleing those credit card numbers. An insecure cart is a theif/hacker's playground.

jammer20002
03-27-2004, 01:20 PM
Thanks for all the replies.
Two things:

1. Can't I just have my web pages hosted on secure hosting? That way, I can be sure that no one 'can' snoop in and steal credit card records?

I would be planning to hand over to the credit card company (like Worldpay), when it came to giving out credit card details.

2. Can you tell me the best place you would recommedn I get a shopping cart from? If I do a search on Yahoo... then I#d get a zillion results returned. So, I'd appreciate if you could recommend something.

Thanks.


Jam

PeOfEo
03-27-2004, 01:31 PM
www.4guysfromrolla.com www.411asp.net (as asp classic section) and others. Secure hosting is not enough, definatly not. Secure hosting does not mean a thing, its when the coard is being moved from the client to the server that the hacker will intercept it, that is why you need to use SSL/TSL (for db) and SALT or MD5 encryption if you want this thing to be safe. Secure hosting just means they will let you use SSL or it can mean they have a good firewall or a number of other things, if a host calls them self secure it is meaningless.

buntine
03-27-2004, 11:13 PM
Also, a secure host wont stop bad code from causing errors and revealing incorrect details.

If your cart crashes, secure hosting is useless.

www.aspapp.com might have some good cart software. Or wwwoscommerce.com

Regards.