Forum Topic: Shopping Cart???

(575 views • 15 replies)

This topic is 1 page long.

<< < > >>
Questioning

Squall-01

Reply To Post Reply & Quote

Posted at: 9/20/04 12:05 PM

Squall-01 NEUTRAL LEVEL 02

Sign-Up: 11/05/03

Posts: 463

Does any one know how to creat a shopping cart were if you click on an item it added to a list and keep's addings it and then when your done it add's it up giveing you a sub total then adds on tax and get a complete total


None

Inglor

Reply To Post Reply & Quote

Posted at: 9/20/04 12:09 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

sure i know how to... do you want if for offline or online stuff?


None

Squall-01

Reply To Post Reply & Quote

Posted at: 9/20/04 12:14 PM

Squall-01 NEUTRAL LEVEL 02

Sign-Up: 11/05/03

Posts: 463

ONLINE,......PLEASE


None

Inglor

Reply To Post Reply & Quote

Posted at: 9/20/04 12:26 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

oh i won't MAKE it for you... i'll tell you what you need to know and whre you can learn it...

learn PHP and MYSQL

you can learn it in w3schools.com


None

TheDeuceDeuce22

Reply To Post Reply & Quote

Posted at: 9/20/04 08:20 PM

TheDeuceDeuce22 EVIL LEVEL 06

Sign-Up: 09/11/04

Posts: 136

u cud make one on paypal


Shouting

Squall-01

Reply To Post Reply & Quote

Posted at: 9/21/04 12:16 PM

Squall-01 NEUTRAL LEVEL 02

Sign-Up: 11/05/03

Posts: 463

HOW???


None

Sir-Davey

Reply To Post Reply & Quote

Posted at: 9/21/04 01:55 PM

Sir-Davey FAB LEVEL 19

Sign-Up: 07/09/01

Posts: 3,093

At 9/21/04 12:16 PM, Squall_01 wrote: HOW???

YOU LEARN PHP AND MYSQL.
Or you pay me 250$ and i make you a ready-made script

BBS Signature

None

Inglor

Reply To Post Reply & Quote

Posted at: 9/21/04 03:32 PM

Inglor NEUTRAL LEVEL 17

Sign-Up: 01/26/03

Posts: 10,948

yep... that's the same "DUDE I DON'T FUCKING CARE" ton i got when i forwarded you the email about the AS jam from tom fulp...


None

Phroek

Reply To Post Reply & Quote

Posted at: 9/22/04 01:23 AM

Phroek DARK LEVEL 41

Sign-Up: 06/08/02

Posts: 462

You don't even need to use MySQL to create a shopping cart system with PHP. It's a fairly simple concept when you think about it. All you have to do is learn how to effectively use PHP's cookie handling capabilities. Every time you add an item to a shopping cart, a cookie is either being modified or created, and when you view the shopping cart, that page just has to display the contents of the cookie(s) (in a structured fashion that outlines the customer's choices, of course).

I created a shopping cart system for a client from scratch with PHP, and even with "complex" features, it was very easy to plan and create. Use the manual on PHP.net to learn how to use it's features and you'll have one up in no time.


None

CronoMan

Reply To Post Reply & Quote

Posted at: 9/22/04 03:14 AM

CronoMan EVIL LEVEL 06

Sign-Up: 07/19/04

Posts: 2,978

Cookies? :P
Sounds like alot of work for nothing, and it sounds like it don't work either.

Appearantly, you'll need a database anyways; to store items, orders, users etc. So why use cookies to store a shopping cart, when you can use the database, which is way more secure, reliable and easier to manage.

You will need a database that looks like this :

table users
ID unsigned int increment 1 Primary Key
name
email
etc...

order
ID unsigned int increment 1 Primary Key
userID unsigned int

orderitems
OrderID unsigned int Primary Key
itemID unsigned int Primary Key
count unsigned int

item
ID unsigned int increment 1 Primary Key
title
price
etc.

Users is connected to order, which is connected to orderitems, which is connected to item. Many OrderItems can contain many Items, this is usually called a "many-to-many relation". The order table will become your shopping cart.

"no sound in ass"


None

samthemuel

Reply To Post Reply & Quote

Posted at: 9/22/04 07:29 AM

samthemuel LIGHT LEVEL 23

Sign-Up: 05/16/03

Posts: 187

Or if you cannot be bothered to do it yourself you could always use www.oscommerce.com its a freeware shopping cart, havent used it myself but i hear its good.


None

Phroek

Reply To Post Reply & Quote

Posted at: 9/22/04 05:12 PM

Phroek DARK LEVEL 41

Sign-Up: 06/08/02

Posts: 462

At 9/22/04 03:14 AM, CronoMan wrote: Cookies? :P Sounds like alot of work for nothing, and it sounds like it don't work either.

Actually, it isn't a lot of work at all. Like I said, it's very simple. And it does work. Many sites use cookies for their shopping carts.

Appearantly, you'll need a database anyways; to store items, orders, users etc. So why use cookies to store a shopping cart, when you can use the database, which is way more secure, reliable and easier to manage.

When I said you didn't need to use MySQL, I wasn't talking about the items, etc. I was just talking about the shopping cart alone. Of course you need to use a database to store product information. Anyways, I'm not saying your way isn't feasible. Of course it is. I suppose both methods have their own flaws.


None

CronoMan

Reply To Post Reply & Quote

Posted at: 9/24/04 04:29 AM

CronoMan EVIL LEVEL 06

Sign-Up: 07/19/04

Posts: 2,978

At 9/22/04 05:12 PM, Phroek wrote: I suppose both methods have their own flaws.

True, true.

"no sound in ass"


None

Squall-01

Reply To Post Reply & Quote

Posted at: 9/29/04 11:28 AM

Squall-01 NEUTRAL LEVEL 02

Sign-Up: 11/05/03

Posts: 463

Never mind i figured it out i went to htmlgoodies and found it under javascript should have cheecked there frist


None

Sir-Davey

Reply To Post Reply & Quote

Posted at: 9/29/04 02:55 PM

Sir-Davey FAB LEVEL 19

Sign-Up: 07/09/01

Posts: 3,093

At 9/29/04 11:28 AM, Squall_01 wrote: Never mind i figured it out i went to htmlgoodies and found it under javascript should have cheecked there frist

Hahha javascript shopping cart on htmlgoodies.
HAHAHAHHAHAH

BBS Signature

None

Pilot-Doofy

Reply To Post Reply & Quote

Posted at: 10/2/04 11:10 PM

Pilot-Doofy NEUTRAL LEVEL 37

Sign-Up: 09/13/03

Posts: 12,275

I onced tried a shopping cart in php but then said screw it. It wasn't really worth my time when there are so many free ones it's stupid to waste your time.


All times are Eastern Standard Time (GMT -5) | Current Time: 05:29 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!