Page 1 of 1

JSAvailability - HAVE to book 2 days at a minimum

Posted: Fri Apr 04, 2014 9:02 am
by qwalk
UPDATED (I solved the main issue, but am still having troubles with a few thing, read my latest reply posted Fri Apr 04, 2014 2:39 pm)

Thanks in advance!

Re: JSAvailability & Listit2 - problems showing the calendar

Posted: Fri Apr 04, 2014 2:39 pm
by qwalk
Okay, so I figured out how to display the calendar correctly. I was using the default details template, and the JSAvailability tag wouldn't work, so I tried removing all the default code from the template, and build my own from the bottom, and then it would work.

I still need help on how to make it possible to book the resource for only 1 way though. As it is now, you HAVE to book it for at least 2 days. And you can overlap each day because they work as half days. I need to be able to mark a resource as booked for an entire day.

I don't know if it's in the listit2fd-availability.js or where it is, but there must be a setting where you can chose a minimum number of booking days. Hope you guys can help. Thanks in advance.

Re: JSAvailability - HAVE to book 2 days at a minimum

Posted: Fri Apr 04, 2014 5:35 pm
by Stikki
I suggest you fork the module and maintain your own version.

Module works certain way and how i see it, it works correctly.

Behavior you want aint supported, so deal with it :)

Re: JSAvailability - HAVE to book 2 days at a minimum

Posted: Wed Apr 09, 2014 10:56 am
by qwalk
I know it works correctly, but I believe I can still kindly ask the community for help for what I have in mind with the module. Don't you think?

Re: JSAvailability - HAVE to book 2 days at a minimum

Posted: Wed Apr 09, 2014 11:12 am
by Stikki
Of course, but im just saying it requires then hacking of module what you want to do and no module developer supports that.

After all JSAvaibility is just data viewer of ListIt data, so you can make your own viewer that handles that same data.