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, 8 months ago by Andre Flores.
- AuthorPosts
- July 23, 2020 at 11:12 am #983127ioannis darzentasParticipant
Hello
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
plugins\motopress-hotel-booking\includes\views\shortcodes\checkout-view.php
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?
thanksJuly 27, 2020 at 6:48 am #984287Andre FloresModeratorHello, 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: https://prnt.sc/tp36qk ->https://prnt.sc/tp36vj. 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.Regards,
AndreMarch 23, 2021 at 3:39 pm #1094386Lucía Somolinos NovellaParticipantHi,
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.
http://prnt.sc/10ttmy9
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!March 26, 2021 at 5:38 am #1095712Andre FloresModeratorHello 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.
Regards,
Andre - AuthorPosts
- You must be logged in to reply to this topic.