phpScheduleIt
May 18, 2013, 04:05:42 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: 2 day booking - is it possible  (Read 1554 times)
efusemedia
Newbie
*

Karma: 0
Posts: 3


WWW
« on: November 28, 2007, 05:53:22 AM »

Hi, I am adapting the script to work for a watersports lake. So far it works awesome, but I see a problem around the bend. I can add all the possible resources i.e. a ski boat tow for 15minutes, or a windsurf lesson for three hours but. They also offer a two day kitesurf lesson which I cannot figure out a solution to adding. I don't want to give up as everything else seems to work so well and am deleloping some small mods to make the admin run smoother for the lake. I have been through the forum but it doesn't seem anyone else has met this problem.

Also, like the paypal intergration, the lake would like it integrated into hsbc payment. any one got any tips.

thanks for your time guys!
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: November 28, 2007, 10:11:47 AM »

Are the 2 day lessons always 2 days (no more, no less)?  You're going to need to do a bit of hacking to get this to work, but basically you'll need to add something like this after line 504 of lib/Reservation.class.php.

if ($this->resource->machid == 'id of lessons resource')
{
// return false if end date/time is not exactly 2 days after start date/time
}
Logged
efusemedia
Newbie
*

Karma: 0
Posts: 3


WWW
« Reply #2 on: November 28, 2007, 10:32:04 AM »

Course will be 9-5 one day and 9-5 the next in succession. Sorry to be thick but could you break down your hack for me to understand?

Thanks for a quick response!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!