Formatted check-in time & check-out time in checkout page is wrong

Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Formatted check-in time & check-out time in checkout page is wrong

  • This topic has 3 replies, 3 voices, and was last updated 3 years ago by Andre Flores.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #983127
    ioannis darzentas


    I have set the check-in time & check-out time through Accommodation->settings.

    On the checkout page the times shown are not correct.
    More specifically, in the file
    in the function public static function renderCheckInDate( $booking )
    the line below returns the correct time (eg 15:00:00)
    echo MPHB()->settings()->dateTime()->getCheckInTime();
    while the following line
    echo MPHB()->settings()->dateTime()->getCheckInTimeWPFormatted();
    will always print 11:00.

    So the result is
    <time datetime=”14:00:00″>11:00</time>

    The same goes for the check-out time.

    Can you please check it?

    Andre Flores

    Hello, Ioannis!

    I have checked it on my local installation and was unable to replicate the issue, the time is displayed properly according to settings under Accommodation ->Settings tab: -> I would recommend that you try deactivating additional plugins to find out if one of them causes the issue. You may also try switching to default WordPress theme, e.g. Twenty Twenty, and check whether the issue remains.
    If there is no luck, submit your request to our Help Desk, so we take a closer look at the issue.


    Lucía Somolinos Novella

    I’ve found a similar problem with check-in and check-out dates. They don’t show after the tag fields “chek-in” and “check-out” on the checkout form, so the result is two blanc fields.
    How can it get fixed?
    I would love to modify tittles line height for a better appearance. I guess it should be done with .css code? Could you provide me a simple one to avoid titles covering some of the form fields?
    Thanks in advance!

    Andre Flores

    Hello Lucía,

    In order to resolve the issue with missing check-in/check-out time you should navigate to Settings ->General in your WordPress dashboard and make sure the date format is configured there, otherwise time will not be displayed.
    Are you referring to fields on the Checkout page? If so, add the following code under Appearance ->Customize ->Additional CSS:

    #mphb-customer-details label {
    	margin-bottom: 10px;

    Feel free to change the 10px value to increase/decrease the spacing between field title and the field itself.


Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.