Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Edit Booking / Checkout form
- This topic has 9 replies, 5 voices, and was last updated 4 months ago by
J. Davis.
- AuthorPosts
- May 4, 2019 at 8:48 am #801891
Aidan Taggart
ParticipantHello,
I have just purchased the plugin and it seems to do everything I want and looks great. However I am having a few problems regarding editing the checkout form (.mphb_sc_checkout-form)
I would like to reduce the line height, remove/change some of the headings and have the check-in details on the same line. Have these been set by the theme appearance or by the plugin and is there somewhere in the front-end I can change these or do I need to apply some css?
I’m new to wordpress and appreciate your patience.
Thanks,
Aidan
May 4, 2019 at 3:35 pm #801968Aidan Taggart
ParticipantHello again,
I have read in the plugin documentation that the plugin contains hooks which I can edit to customise the appearance. Can anyone direct me to the hooks for the booking confirmation?
Thanks,
Aidan
May 6, 2019 at 2:35 pm #802347Stacy Lind
KeymasterHi Aidan,
Styles are inherited from the active theme, e.g. line height.
The layout of the checkout form can be edited in wp-content\plugins\motopress-hotel-booking\includes\views\shortcodes\checkout-view.php
The hooks are listed in wp-content\plugins\motopress-hotel-booking\includes\shortcodes\checkout-shortcode\step-checkout.phpBelow is an example of how a function can be overridden through functions.php of your child theme. This way your edit will be update-proof:
add_action( 'wp_head', 'remove_renderCustomerDetails' ); function remove_renderCustomerDetails(){ remove_action( 'mphb_sc_checkout_form', array( '\MPHB\Views\Shortcodes\CheckoutView', 'renderCustomerDetails' ), 40 ); } add_action( 'mphb_sc_checkout_form', 'my_renderCustomerDetails', 40); function my_renderCustomerDetails(){ your edited function }
February 25, 2020 at 7:37 am #922228J. Davis
KeymasterHi,
It is possible to edit fields on the checkout page using this extension https://motopress.com/products/hotel-booking-checkout-fields/February 15, 2021 at 1:49 am #1074379Gwenaël Nemry
ParticipantThis reply has been marked as private.February 16, 2021 at 12:17 am #1074951Andre Flores
ModeratorThis reply has been marked as private.September 25, 2021 at 3:02 am #1190926Albertus Korb
ParticipantThis reply has been marked as private.September 30, 2021 at 2:38 am #1193151Andre Flores
ModeratorThis reply has been marked as private.January 25, 2023 at 11:48 am #1406197Simeon Jordanov
ParticipantHi
Is there a way to remove the accommodation form from “booking confirmation” page? It’s kind of strange making the user put twice the number of children and adults during the booking steps.January 30, 2023 at 2:04 pm #1408406J. Davis
KeymasterHi Simeon,
Thanks for your question. There is no option to remove all the forms from the Booking Confirmation page. However, there is an option to disable adults and children selection on the search form at Accommodation > Settings > Guest Management.
best regards,
John Davis - AuthorPosts
- You must be logged in to reply to this topic.