Ticket Ordering Question

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54979
interpreted = N
texte = Hi, everyone - My customer sells event tickets for their venue. Currently, we display the event information, and based on the "on sale date" of the tickets for that event, we display an "Order" link. So my current code looks like this: [if {[onsaledate]}<{[math date]{[date]}+{00/01/0000}[/math]] [then] Here's the ordering link (if several other hideifs and showifs for various exceptions are met) [/then] [else] Single tickets will be available online beginning [onsaledate] [/else] [/if] This works great. However, because there are places other than the website at which tickets can be ordered, the client has recently requested that we add an "on sale TIME" field. This way, people hitting the website at midnight can't get a jump on everyone else, who has to wait until, say, 10 AM, to order at the box office or other outlet. I can't figure out the logic on this. If I were to add a [hideif [time]<[onsaletime]] exception, then it would run that EVERY DAY, between midnight and 10 AM. I just really need it to disallow ticket sales between midnight and 10 am ONLY the first day the tickets go on sale. After that, they should be available 24 hours a day. I'm not very familiar with the [format days_to_date] device, and I'm not really sure that's even what needs to be used. Does someone have an idea (or a code snippet) to address this concern that they could share with me? Thanks in advance, ----- Patrick Junkroski http://www.vsm.net ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Storing dates (was: Re: Ticket Ordering Question) ( Kenneth Grome 2003)
  2. Re: Storing dates (was: Re: Ticket Ordering Question) ( Donovan Brooke 2003)
  3. Re: Storing dates (was: Re: Ticket Ordering Question) ( Joe D'Andrea 2003)
  4. Re: Storing dates (was: Re: Ticket Ordering Question) ( Kenneth Grome 2003)
  5. Re: Storing dates (was: Re: Ticket Ordering Question) ( Donovan Brooke 2003)
  6. Re: Storing dates (was: Re: Ticket Ordering Question) ( "Dan Strong" 2003)
  7. Storing dates (was: Re: Ticket Ordering Question) ( Joe D'Andrea 2003)
  8. Re: Ticket Ordering Question ( Patrick J. 2003)
  9. Re: Ticket Ordering Question ( "Tom Duke" 2003)
  10. Re: Ticket Ordering Question ( Brian Fries 2003)
  11. Ticket Ordering Question ( Patrick J. 2003)
Hi, everyone - My customer sells event tickets for their venue. Currently, we display the event information, and based on the "on sale date" of the tickets for that event, we display an "Order" link. So my current code looks like this: [if {[onsaledate]}<{[math date]{[date]}+{00/01/0000}[/math]] [then] Here's the ordering link (if several other hideifs and showifs for various exceptions are met) [/then] [else] Single tickets will be available online beginning [onsaledate] [/else] [/if] This works great. However, because there are places other than the website at which tickets can be ordered, the client has recently requested that we add an "on sale TIME" field. This way, people hitting the website at midnight can't get a jump on everyone else, who has to wait until, say, 10 AM, to order at the box office or other outlet. I can't figure out the logic on this. If I were to add a [hideif [time]<[onsaletime]] exception, then it would run that EVERY DAY, between midnight and 10 AM. I just really need it to disallow ticket sales between midnight and 10 am ONLY the first day the tickets go on sale. After that, they should be available 24 hours a day. I'm not very familiar with the [format days_to_date] device, and I'm not really sure that's even what needs to be used. Does someone have an idea (or a code snippet) to address this concern that they could share with me? Thanks in advance, ----- Patrick Junkroski http://www.vsm.net ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Patrick J.

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Getting Total Quantity (1997) Documentation Feedback (1997) WC2b15 File Corruption (1997) Emailer (1998) webcat nt (1997) How to include weather (2000) Close Databases Crash? (1998) Variables (1999) [WebDNA] need a webDNA hosting company (2016) Secure server question (1997) Problem (1997) Problems appending to database (1997) Shopping cart now good (fixed it) (1997) Summing fields (1997) Error Lob.db records error message not name (1997) Adding multiple items to cart with one click? (2000) send mail problem? (1997) Requiring that certain fields be completed (1997) WebCat and WebTV (1997) Search/sort in URL Was: GuestBook example (1997)