+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Booking plugin question

  1. #1
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191

    Booking plugin question

    Hello Flynax,

    How do I change the date format of the Check Availability field from booking field.
    https://realty.demoflynax.com/search.html

    It currently formatted as dd-mm-yy, but in the US we use mm-dd-yy

    Also for booking request comment from the listing owner
    https://realty.demoflynax.com/bookin...-st-48-r6.html

    How do I remove all the style effect, html embedded, etc. And leave only a basic text input, just like the booking request comment?

    Screen Shot 2022-01-30 at 1.05.59 PM.png
    Last edited by Tim Copper; January 30, 2022 at 06:08 AM.

  2. #2
    Try to check it in file: ftp://templates//your_template>>tpl>>blocks>>fields_search.tpl
    find line: 'dateFormat' and change format.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191
    Quote Originally Posted by Viktor View Post
    Try to check it in file: ftp://templates//your_template>>tpl>>blocks>>fields_search.tpl
    find line: 'dateFormat' and change format.
    Hi Viktor,

    I found 3 lines 'dateFormat' in template > tpl > block > field.tpl and field_search_box.tpl

    Code:
    Only registered members can view the code.
    It shows yy-mm-dd in the file, but on my local site it shows dd-mm-yy
    And yes, I changed all 6 lines of dateFormat in field.tpl and field_search_box.tpl to "mm-dd-yy" and it still not working, still show dd-mm-yy

    Should I look somewhere in the booking plugin? This field was created by booking plugin.

    Also how do I remove all the style effect, html embedded, etc. And leave only a basic text input in listing owner response booking request?

  4. #4
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191
    Hi guys. Just wanna bump this up

  5. #5
    If you want to change it on view pages try to change date format on edit language page. Go to Admin Panel >> Languages and try to edit language. Find the line: *Date format
    Read the instruction of chars here: https://www.smarty.net/docsv2/ru/lan...ate.format.tpl
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #6
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191
    Hi Viktor, I tried that too in admincp language and the listing post date shows OK. But not with the check availability field I stated in the 1st comment. I however found in the plugins >> booking >> availability_block.tpl these code:

    Code:
    Only registered members can view the code.
    I changed the parts in red and now the it shows OK for the from box but to box it keeps the old dateformat which is dd-mm-yy
    So if I click on the calendar February 5th, 2022. The check availability field will show:

    02-05-2022 06-02-2022

    Here the from box show correct dateformat: mm-dd-yy
    But the to box show the old dateformat: dd-mm-yy

    So maybe the check availability field of the booking plugin use a different dateformat that you're not aware of?

    Also found this code in ca_js_handler.tpl
    Code:
    Only registered members can view the code.
    I changed the red parts as well but don't know where does this apply

  7. #7
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191
    have a nice week coming guys !

  8. #8
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191
    Can anyone help me on this particular issue please
    I just wanna change the date format of booking plugin to mm-dd-yy
    To be more specific, I wanna change the date format of the "Check Availability" field that can be found here: https://realty.demoflynax.com/search.html
    Changing the date format from the admincp > language does not have any effect.

  9. #9
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191
    OK so I found something new. in plugins >> booking >> ca_js_handler.tpl

    Code:
    Only registered members can view the code.
    I changed the part in red and the "Check availability" field shows desired format which is: mm-dd-yy. When I click on the calendar today it shows

    [02-12-22] ----- [13-02-22]

    As you can see the [from box] show [02-12-22] but the [to box], which generated automatically show format [dd-mm-yy], I found the code below, in the same file:

    Code:
    Only registered members can view the code.
    How do I make change to the above code so that the format works as intended to show:

    [02-12-22] ----- [02-13-22]


    ----------
    Also how do I disable CKEDITOR from booking request comment:

    I found this code in the plugins >> bookings >> static >> lib.js

    Code:
    Only registered members can view the code.
    Last edited by Tim Copper; February 14, 2022 at 03:40 AM.

  10. #10
    Senior Member
    Join Date
    Apr 2021
    Location
    USA
    Posts
    191
    Hi guys,

    I still need help with this. I really appreciate if anyone could help me with!

+ Reply to Thread