uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Not allow same day reservations

Knowledge Base Lobby : uReserve Support Conference : General Questions
Nov-18-17 08:25 PM EST
Original Message
Not allow same day reservations
Author Don Cody on 04-25-2003 at 13:50 (EST)
Is there an easy way to make a modification that will keep people from making a reservation on the current day (and in the past too, for that matter)? Maybe just a pop up box with a short message in place of the Reserve box if they click on a date that is less than or equal to the current date.

I've already tweaked the script a little so I'm not afraid to do that.
Any help would be appreciated. Thanks.
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Not allow same day reservations Bill Weiner, 2003-04-28 07:11:23 (1)
            same day appointments Don, 2003-04-29 16:25:34 (2)

Messages In This Discussion
         1. RE: Not allow same day reservations
        Author Bill Weiner on 04-28-2003 at 07:11 (EST)
Ok, try adding this modification:

STEP 1: Make a backup of your current ureserve.pl script... just in case.

STEP 2: Open your ureserve.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

if ($res_start_time >= $res_end_time)

STEP 4: Immediately BEFORE the specified line, add these 14 lines:

$now_seconds = time;
if ($current_seconds < $now_seconds)
{
&missing_input("Invalid Reservation Date","Please select a date no earlier than tomorrow.");
}
else
{
$date_str1 = &get_exact_date($current_seconds);
$date_str2 = &get_exact_date($now_seconds);
if ($date_str1 eq $date_str2)
{
&missing_input("Invalid Reservation Date","Please select a date no earlier than tomorrow.");
}
}

STEP 5: Save the ureserve.pl script... as TEXT if your editor asks... and try it out!
TABLE OF CONTENTS
                 2. same day appointments
                Author Don on 04-29-2003 at 16:25 (EST)
That worked great! Thanks for your help and quick response.

TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.