Hi everyone:
I am new to JS so I'll appreciate any help I can get. I want an order form to do this:
First customers enter their name & address, etc. Then, when they click on a flyer they want to buy, their info automatically will show up on the flyer (to show them as a sample of how their flyer whould look like).
Also, I want to do a type of shopping cart that when they enter the # of flyers, the total would show the actual total (ex: 5000 flyers X $.37 each = $1850) which is $1850 and so on down the line.
I'll be grateful for any help,
Thanks
Well the shopping cart thing I can help you with straight away because I have one already made, even though client side JavaScript would not be the best tool for the job.
The flyer, you could just have the text displayed on the page with the background for the text as the image for the flyer. JavaScript cannot create files other than cookies so if you want the preview to be all an image rather than text on top of an image I would suggest learning PHP.
In any case, here's the shopping cart for starters, although for some reaon it doesn't work for Opera so I'll work on a fix for that:
How about if I want to do this:
I have 3 or 4 flyers (or brochures) lined up and customers will click on the one they want to order and VOILA the flyer's number will show up on the line indicated! Is this possible in JS?
Or should I just put radio buttons besides each flyer and they can just select which flyer they want? Is that just a regular radio button code or is it more complicated? If it is, can someone please help me with the code................
Thanks a bunch!
I'm going to work on an Opera friendly version, and possibly add extra fetures like including how many of each item they have selected in the text boxes when they go back to the first page.
Hi lavalamp:
If you didn't get my email, here what I need help me(more help!!!) Is it possible to total the flyers right there. What I mean is for example: They buy 500 flyer for $1.00 each. Can the form calculate the total right there? Is it possible? I'll appreciate any help you can give me....
Thanks
Lavalamp:
I forgot to tell you that the customers order a large amount. Can we modify the code for a large amount instead of one at a time? They buy 500 or more at one time.
I hope I am not confusing you. This is what I originally had in mind. If it can't be done, just something they can click on and they can order 500 of flyer (say #1). Is this possible?
In other words, they can select a flyer and buy 500 of it and get a total price in the page.
Thanks
I think I remember getting an e-mail that mentioned something about tweetie, but if I don't recognize the name I tend to just delete it, sorry. Ask me in a private message next time and then I can't ignore it.
Anyway, I went away and modified it beyond all recognition. It's become at least 100 times more complicated so if you get lost I don't blame you, I get lost in it and I wrote it.
I've used some CSS and div tags to arrange the content on the page in a suitable way, although you'll probably be more interested in the JavaScript section. If you need help wading through it, ask me and I'll be happy to figure it out for myself and then explain.
Just before you go off and read through that one, read trough this one instead. I forgot to include a unit of currency in that one, but in this version I have included it. To find out where, just search the source for a £ sign, (there's 2 of them).
Thanks for the code. I'll really appreciate this. Can I ask something else? How do I add postage to this. If they want to order 1st class postage say @ $.10 and Tax. After that , how do I total everything and give the customer a final Total?
Thanks again
Edit: You don't have to PM me if I'm online, I get an e-mail notification every time that a post I'm subscribed to gets a reply. Even when I'm offline I can still view the e-mails from when people replied. It's just that if the thread is a couple of days or weeks old that I need a reminder about it.
By the way, that postage seems a bit low. Did you mean £0.10 per 100 flyers or something?
Lavalamp:
How do I give them the option of adding the postage (1st class or standard) or even tax ? ( like a check box or something). Since I have you here, I am going on the asking rampage!!!!!!!!!!!
I am still adding other stuff to this form. Such as some gifts that they can add to their order. I want to put some image such as an umbrella (as a gift) and they can choose their gift by either clicking on the image or just check it. Do I add the sumbit button at the very end after </form>? Please do not KILL me with all these questions. I am just new to JS.
Thanks again!