making shopping cart in html. how to store prices in cart.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
prasadb2005
Forum Newbie
Posts: 7
Joined: Tue May 19, 2009 1:18 am

making shopping cart in html. how to store prices in cart.

Post by prasadb2005 »

I am doing a website for book shop in php. I have created static pages in html.
To complete the website it needs at least 2 months. But currently I want to make that static site work.

In short I want to do shopping cart in html. But in html there is no session handling or database handling. please help me to do shopping cart in html. no php or other language.

how should I store book's prices in cart. and make total of prices of all selected books using html?

Thank You.
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Re: making shopping cart in html. how to store prices in cart.

Post by Bill H »

You cannot do it. HTML is a stateless protocol. Your ship is sunk without a trace.
prasadb2005
Forum Newbie
Posts: 7
Joined: Tue May 19, 2009 1:18 am

Re: making shopping cart in html. how to store prices in cart.

Post by prasadb2005 »

Hello friend,

We can make shopping cart in html. But need to use javascript.
I did R&D on that.
I got some sol. as using javascript and cookies we can store temparary values.

will try.

Thank You,

Prasad.
anand
Forum Commoner
Posts: 80
Joined: Fri May 22, 2009 11:07 am
Location: India
Contact:

Re: making shopping cart in html. how to store prices in cart.

Post by anand »

prasadb2005 wrote:Hello friend,

We can make shopping cart in html. But need to use javascript.
I did R&D on that.
I got some sol. as using javascript and cookies we can store temparary values.

will try.

Thank You,

Prasad.
Hi Prasad, Why don't you use any sql database? That'll help you. Yes, You can store temporary values uing cookie but again, that'll be temporary.

You can use php+mysql? You can rename extension to htm using .htaccess file.

// I am a beginner though. You can ask other members advice :)

//Good Luck
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Re: making shopping cart in html. how to store prices in cart.

Post by Bill H »

We can make shopping cart in html. But need to use javascript.
Um you said, "no php or any other languages." javascript is not html.

There are dozens of shopping carts available, quite a few of them free.
Why you would insist on writing your own is odd, and why you would insist on doing in in a highly unreliable method totally escapes me.
anand
Forum Commoner
Posts: 80
Joined: Fri May 22, 2009 11:07 am
Location: India
Contact:

Re: making shopping cart in html. how to store prices in cart.

Post by anand »

by the way,

General Discussion

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.
User avatar
becky-atlanta
Forum Commoner
Posts: 74
Joined: Thu Feb 26, 2009 6:26 pm
Location: Atlanta, GA

Re: making shopping cart in html. how to store prices in cart.

Post by becky-atlanta »

prasadb2005 wrote:... I want to do shopping cart in html. ....
If you don't have a LARGE :?: selection of merchandise, try PayPal. You can setup a button there and it will general the html code for you. You can also do "View Shopping Cart" with PayPal's setup.

If you know some php, it will be more flexible. But it is not required. :wink:

Of course. there are also other free shoping carts you can Google. They seem to be very easy to implement also.

Another route is to check with your hosting company. Mine would provide a shopping cart to add to my site if I choose to activate it. It is fully functional with databases and everything.

I hope this helps. :D
l.francis30
Forum Newbie
Posts: 12
Joined: Tue May 19, 2009 11:27 am

Re: making shopping cart in html. how to store prices in cart.

Post by l.francis30 »

becky-atlanta wrote:
prasadb2005 wrote:... I want to do shopping cart in html. ....
If you don't have a LARGE :?: selection of merchandise, try PayPal. You can setup a button there and it will general the html code for you. You can also do "View Shopping Cart" with PayPal's setup.

If you know some php, it will be more flexible. But it is not required. :wink:

Of course. there are also other free shoping carts you can Google. They seem to be very easy to implement also.

Another route is to check with your hosting company. Mine would provide a shopping cart to add to my site if I choose to activate it. It is fully functional with databases and everything.

I hope this helps. :D
Yes.. You can create a page for every item you have but if you have a lot of item, you will have a big problem.. And another thing is, is it hard for you to maintain the website i.e. changing the prices or adding some more item.. You need a lot of time to do that..
User avatar
becky-atlanta
Forum Commoner
Posts: 74
Joined: Thu Feb 26, 2009 6:26 pm
Location: Atlanta, GA

Re: making shopping cart in html. how to store prices in cart.

Post by becky-atlanta »

You are absolutely right. HTML is created for displaying information. It is not made for storing or manipulating databases. That's why you are better off to learn some programming and database administration. If you are going to build more web sites, you will gain in the long run.

After all, you can always find free shopping carts if you Google it.
l.francis30
Forum Newbie
Posts: 12
Joined: Tue May 19, 2009 11:27 am

Re: making shopping cart in html. how to store prices in cart.

Post by l.francis30 »

THere are a lot of free out there but maybe he want to learn how to create one himself..
Source code are not available if you download free one
Post Reply