Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question on Order form

    Hi Lavalamp:
    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?
    Thanks

  • #2
    Regular Coder
    Join Date
    Aug 2003
    Location
    Loughborough University
    Posts
    427
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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:
    Code:
    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:
    Code:
    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.
    Last edited by lavalamp; 01-12-2004 at 09:03 PM.
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150

  • #3
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for getting back to me. It took care of it...

  • #4
    Regular Coder
    Join Date
    Aug 2003
    Location
    Loughborough University
    Posts
    427
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hanppy to help again.
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150

  • #5
    Regular Coder
    Join Date
    Aug 2003
    Location
    Loughborough University
    Posts
    427
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I got your e-mail and PM, but I'd prefer to reply in the thread if that's OK.

    I've included a .txt file that should have all the instructions that you need to make the form do what you want, I think I understood what you wanted but I'm not 100% on that.

    I would have just altered a copy of the form that I have, but I don't have an up-to-date version so that would probably hinder rather than help you.
    Attached Files Attached Files
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150

  • #6
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Lavalamp:
    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....
    Thanks
    Attached Files Attached Files

  • #7
    Regular Coder
    Join Date
    Aug 2003
    Location
    Loughborough University
    Posts
    427
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, forgot my own script, you've also got to change this bit:

    Code:
    var postal="standard";								//	The default postage class, again it must match the checked radio button and the appropriate name in the postage array.
    to this:
    Code:
    var postal="first";								//	The default postage class, again it must match the checked radio button and the appropriate name in the postage array.
    By the way, try altering the code by hand once in a while, it isn't that hard. Now you've used Frontpage it's been machined. All of the CSS and HTML is screwed up.

    Also, find this line:
    Code:
    <META NAME="Description" CONTENT="We provide promotional flyers and direct mail advertising for automobile dealerships
    and change it to this:
    Code:
    <META NAME="Description" CONTENT="We provide promotional flyers and direct mail advertising for automobile dealerships">
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150

  • #8
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. It is great. I'll show it to my boss but I think this is what he had in mind....

  • #9
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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,
    Thanks

    ps If I don't hear from you this way by tomorrow afternoon, I hope it is okay to PM you??

  • #10
    Regular Coder
    Join Date
    Aug 2003
    Location
    Loughborough University
    Posts
    427
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Attached Files Attached Files
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150

  • #11
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?
    Thanks
    Attached Files Attached Files

  • #12
    Regular Coder
    Join Date
    Aug 2003
    Location
    Loughborough University
    Posts
    427
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Could you attach one that you haven't modified please. It's easier for me to modify something than to fix it.
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150

  • #13
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is the one I have left as original one...
    Thanks
    Attached Files Attached Files

  • #14
    Regular Coder
    Join Date
    Aug 2003
    Location
    Loughborough University
    Posts
    427
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Attached Files Attached Files
    AMD Athlon "Barton" XP 3200+ (11*200.5MHz = 2.2GHz)
    BFG GeForce 6800 Ultra OC 256Mb
    3 * Kingston 256Mb PC3200 DDR400
    Seagate Barracuda 120Gb Ultra ATA-100 and Seagate Barracuda 160Gb, SATA-150

  • #15
    Regular Coder
    Join Date
    Sep 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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....


  •  
    Page 1 of 3 123 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •