Forum Moderators: coopster

Message Too Old, No Replies

basic shopping cart

         

lindajames

10:50 am on Jul 18, 2003 (gmt 0)

10+ Year Member



Hi,

Does anyone know any very basic PHP based shopping cart that doesnt use databases and works with Windows IIS?

I want something very basic. There is currently a javascript based one that i use which is: ht*p://www.nopdesign.com/freecart/ . i want something as simple as that but not in javascript i need it in php.

any suggestions would be appreciated

Cheers
Linda

hakre

12:55 pm on Jul 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi lindajames,

you can use the seesion functions build in php and take an array as the shopping bag. each item represents one item in the basket then.

each array item itself is then again an array storing the needed values like product id, quantity, title, price etc.

for a smaller shop this will do the job. you won't need a database for it either.

-hakre

lindajames

2:59 pm on Jul 18, 2003 (gmt 0)

10+ Year Member



im new to php, and dont know that much, isnt there any simple script out there that does that?

lindajames

5:20 pm on Jul 18, 2003 (gmt 0)

10+ Year Member



doesnt anyone know any available php scripts that do something similiar to that javascript cart? the main reason i dont want to use the javascript one is because alot of my customers are complaining that their cart remains empty after they add something to it.

any suggestions would be very much appreciated.

Cheers
Linda

quiet_man

9:01 pm on Jul 18, 2003 (gmt 0)

10+ Year Member



Hi Linda

Have you tried the usual script resources? PHPBuilder currently has an article on building a mini shopping basket with only PHP4 sessions.

If your customers are unable to add items to your Javascript cart it may be because they have cookies disabled. Unless you know about sessions in PHP you might get the same problem with the above tutorial.

Good luck in your hunt, but if you've already implemented the Javascript cart you may have the best luck asking questions in the NOP forums. A PHP solution might not be an easy 'bolt-on' to your HTML pages in the same way that NOP cart is.

henry0

11:03 am on Jul 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Linda go to a good book store
check the PHP books scetion
many booksdo offer "code a cart" as a teaching tool and mostly it will come whith a CD

also check hotscript.com

cheers

hakre

8:03 pm on Jul 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



linda:
doesnt anyone know any available php scripts that do something similiar to that javascript cart?

personally, i don't know which specific javascript cart you mean. can you tell the details. i think it should be easily possible to make the same with php.

-hakre

lindajames

2:51 pm on Jul 21, 2003 (gmt 0)

10+ Year Member



hi hakre,

the javascript cart i am referring to is from www.nopdesign.com/freecart

there are two main reasons i cannot use it anymore. firstly, alot of my customers are students and they use college computers to order, and alot of colleges turn off their cookies and as a result my customers cannot order.

and secondly javascripts dont work perfect on all browsers, it gives some javascript error alerts to people with other browsers and that gets pretty annoying.

Any help would very much be appreciated.

Cheers
Linda