I hope you had a nice holidays. I have a quick question. On the order form that you worked on, how can I make the gaps shorter between the ordered items when they get listed in "SO far you have ordered"? This would also make the gap shorter in the print out page, correct? Can you tell me how to do it?
I've not been "patrolling" the forums much recently, I haven't had time.
If you want to shorten the gap between them, first of all find this line:
ordval+=(ordered["flyers"][p]["amount"]>2499)?ordered["flyers"][p]["amount"]+" of "+discription["flyers"][p]+", at "+curr+ordered["flyers"][p]["price"].toFixed(2)+" each."+gap+"That's "+curr+(Math.round((ordered["flyers"][p]["amount"]*ordered["flyers"][p]["price"])*100)/100).toFixed(2)+gap+gap:"";
and right at the very end remove one of the +gap's, that should leave no line between the listed items. If you also wnat to do this with the gifts then you will have to find this line:
ordval+=(flyercost>0 && ordered["gifts"][p]["amount"]>0)?ordered["gifts"][p]["amount"]+" of "+discription["gifts"][p]+", at "+curr+ordered["gifts"][p]["price"].toFixed(2)+" each."+gap+"That's "+curr+(Math.round((ordered["gifts"][p]["amount"]*ordered["gifts"][p]["price"])*100)/100).toFixed(2)+gap+gap:"";
it's just below the other line and again just remove one of the last +gap's.
Thanks for getting back to me. I changed what you said. I set the postage to first class. Now,when the form opens and I order flyer and gift and don't change the postage, I get this:
Plus Dropped Shipped Postage $NaN (but it is set to 1st class!!!)
Total Flyer Cost: $NaN
Overall Total Cost: $NaN
But when I chage the postage to Dropped shipped w/standard, it works perfectly. And the strangest thing is that if I go back now and click first class again, it WORKS!!!!
Can you check out my attachment and you'll see what I mean....
Well, I am glad you haven't seen my last post because I showed the new form to my boss and he said that I have misunderstood him. He wants to give them the choice of 1st class postage and dropped shipped as an option just like what we did with duplex printing (yes/no type of thing - it is 10 cents for 1st class and 2 cents for dropped -per flyer of course)Let me know,
ps If I don't hear from you this way by tomorrow afternoon, I hope it is okay to PM you??
Hello again, sorry it took me so long to get back to you, I've been a little busy launching another web-site and catching up with work and homework that I missed while I was having exams.
This script should do what you want, but there's no guarantee that it will be bug free. It's 1:07 AM here and I just finished on it (I know, I'm a vampire), I might have over-looked something. Let me know if there's anything that needs changing on it.
Thanks for doing it with being busy and all... It worked!!!! However, the script that you were working on was a little old version. Mine is the newest version and when I changed everything, it is not working. I am attaching the one I have changed. Could you take a look at it to see where the bug is?
Hi sorry it took so long but the error eluded me for some time, then today it just hit me, there was an r where there should have been a q and I didn't realise.
When I said, "could you attach one that you haven't modified please?" I just meant could you send me the latest one you had that you hadn't modifed the script section of.
It doesn't matter, I've fixed it now.
I have gone through the code and un-marmalised it all (I hate frontpage so much), this will make it easier to modify in the future (if it needs modding). Please try not to use frontpage on it, no innocent unsuspecting web-page deserves that.
Instead, just try using notepad or something, it really isn't all that hard to do honest, I should know.
The bug is gone. However, when I order and before I even select 1st class or anything else, it automatically adds 1st class, dropped and duplex printing to the order. They are all on their NO default but they act as though they are on YES default...
Could you when you get a chance check it out and let me know? Thanks again for all your help....