+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Booking plugin question

  1. #21
    Quote Originally Posted by Tim Copper View Post
    Hi Curtis,

    In this part of code



    Did you mean $to = date_parse($data['check_availability']['to']) instead because I could not find the line $to = $data['check_availability']['to']
    Yes, sure. I've changed it in origin answer.
    Thank you, Curtis.
    @Flynax Company

  2. #22
    Quote Originally Posted by Tim Copper View Post
    Hi Curtis, Would you also please help me change the date format to mm-dd-yy in these 2 locations.1. In add/edit listing page, when user add a custom rate:https://realty.demoflynax.com/edit-listing.html?id=61As you can see in screenshot the date are: 23-02-2022 --------- 24-02-2022Thank you
    So, you need to make changes in the plugins/booking/static/lib.js file1. find following line (~824) code in function rateRangeFieldsHandler()
    Code:
    Only registered members can view the code.
    and replace to:
    Code:
    Only registered members can view the code.
    2. find below line (~840)
    Code:
    Only registered members can view the code.
    and replace to:
    Code:
    Only registered members can view the code.
    3. find lines (~891) in function getMinRateDate()
    Code:
    Only registered members can view the code.
    and replace to:
    Code:
    Only registered members can view the code.
    4. in file plugins/booking/rlBooking.class.php find following lines (~1374)
    Code:
    Only registered members can view the code.
    and replace it to:
    Code:
    Only registered members can view the code.
    5. below find following lines (~1380)
    Code:
    Only registered members can view the code.
    and replace to:
    Code:
    Only registered members can view the code.
    Quote Originally Posted by Tim Copper View Post
    Hi Curtis,2. In the RENTAL RATE(S) box, when user makes a booking request or checking booking order:https://realty.demoflynax.com/bookin...-st-48-r6.htmlhttps://realty.demoflynax.com/booking-order.htmlAs you can see on the left, the rental rate(s) date formats are all: dd-mm-yy
    1. open file plugins/booking/rlBooking.class.php in line (~824)find lines in function getRateRange()
    Code:
    Only registered members can view the code.
    and replace to
    Code:
    Only registered members can view the code.
    Quote Originally Posted by Tim Copper View Post
    Hi Curtis,Last request of mine is would you please help me remove the CKEDITOR from the comment section of booking request page:https://realty.demoflynax.com/bookin...-st-48-r6.htmlI just want a regular text box, no CKEDITOR.Thank you
    1. open file plugins/booking/booking_requests.tpl and find line:
    Code:
    Only registered members can view the code.
    2. and comment or remove it
    Code:
    Only registered members can view the code.
    3. open file plugins/booking/static/lib.js file
    and find line (~591) in function bookingRequestHandler()

    Code:
    Only registered members can view the code.
    2. and replace it to

    Code:
    Only registered members can view the code.
    Last edited by Curtis; February 24, 2022 at 02:46 AM.
    Thank you, Curtis.
    @Flynax Company

  3. #23
    Quote Originally Posted by Tim Copper View Post
    Hi Curtis,

    One last question regarding the booking plugin



    In the booking settings, is there anyway I could make

    - Disallow visitors to book
    - Limit calendar to package duration
    - Hide booked dates from calendar

    To YES by default, and then hide it from front end, so user won't be able to change it?
    Yes, of course we can change it, but it will take more time and can be done as customization.
    Please create a ticket in the Quotes Department to get a price.
    Thank you, Curtis.
    @Flynax Company

  4. #24
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191
    Hi Curtis,

    Thank you so much for the help. It seems everything works as intended.
    Except this part:

    Quote Originally Posted by Curtis View Post
    1. open file plugins/booking/booking_requests.tpl and find line:

    Code:
    Only registered members can view the code.
    2. and comment or remove it

    Code:
    Only registered members can view the code.
    After removing it, the htmleditor is removed yes. But I'm unable to Accept or Reject the booking request.

    Screen Shot 2022-02-23 at 12.21.20 PM.png

    Clicking on the REJECT button has no response whatsoever. Clicking on the Accept button will show a Loading text and that's that, nothing happend.
    Would you please take a look at this?

  5. #25
    Quote Originally Posted by Tim Copper View Post
    Hi Curtis,

    Thank you so much for the help. It seems everything works as intended.
    Except this part:



    After removing it, the htmleditor is removed yes. But I'm unable to Accept or Reject the booking request.



    Clicking on the REJECT button has no response whatsoever. Clicking on the Accept button will show a Loading text and that's that, nothing happend.
    Would you please take a look at this?
    Yes, sorry.
    You need change the plugins/booking/static/lib.js file:

    1. find line (~591) in function bookingRequestHandler()

    Code:
    Only registered members can view the code.
    2. and replace it to

    Code:
    Only registered members can view the code.
    Thank you, Curtis.
    @Flynax Company

  6. #26
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    492
    Hello Curtis,

    I recommend add date format change feature to the plugin admin panel. So user can change date format in admin panel.

  7. #27
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191
    Quote Originally Posted by Curtis View Post
    Yes, sorry.
    You need change the plugins/booking/static/lib.js file:

    1. find line (~591) in function bookingRequestHandler()

    Code:
    Only registered members can view the code.
    2. and replace it to

    Code:
    Only registered members can view the code.
    Thank you very much, Curtis. It worked!

    Quote Originally Posted by Bahram Soltanirad View Post
    Hello Curtis,

    I recommend add date format change feature to the plugin admin panel. So user can change date format in admin panel.
    Absolutely hands down for this as well.

+ Reply to Thread