Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Edit Booking / Checkout form
- This topic has 16 replies, 7 voices, and was last updated 4 months, 1 week ago by J. Davis.
- AuthorPosts
- May 4, 2019 at 8:48 am #801891Aidan TaggartParticipant
Hello,
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 TaggartParticipantHello 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 LindKeymasterHi 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. DavisKeymasterHi,
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 NemryParticipantThis reply has been marked as private.February 16, 2021 at 12:17 am #1074951Andre FloresModeratorThis reply has been marked as private.September 25, 2021 at 3:02 am #1190926Albertus KorbParticipantThis reply has been marked as private.September 30, 2021 at 2:38 am #1193151Andre FloresModeratorThis reply has been marked as private.January 25, 2023 at 11:48 am #1406197Simeon JordanovParticipantHi
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. DavisKeymasterHi 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 DavisJuly 11, 2024 at 12:24 am #1642773AlbertoParticipantI support @Simeon Jordanov request.
MotoPressHotelBooking is great, but the flow of reservation still needs significant improvement (also out of the box installation). I think MPHB should refining it further.Also booking-confirmation page (using mphb_checkout variable)
appers like this:
https://imgur.com/a/tue9rmwInstalling
still does not help to what I (and many others) want to accomplish:
Remove mphb-room-details ( “Alloggio #1” entire paragraph , that is totally useless and misleading fora single accomodation website ).But the hotel-booking-checkout-fields plugin only helps modifying mphb-customer-details ( “Le tue informazioni” entire paragraph ).
What are the ways to accomplish what described above?
-By CSS hiding (although it’s a “dirty” solution)?
-By php filesystem file editing (although it leaves out non-developer like)?Waiting from you,
Thank you.July 11, 2024 at 1:28 am #1642809AlbertoParticipantAdding context :
-By php filesystem file editing (although it leaves out non-developer like)
means going through
https://XYZ.COM/wp-admin/plugin-editor.php?file=motopress-hotel-booking%2Fincludes%2Fviews%2Fshortcodes%2Fcheckout-view.php&plugin=motopress-hotel-booking%2Fmotopress-hotel-booking.phpAnd comment the following lines:
<!-- <div class="mphb-room-details" data-index="<?php echo esc_attr( $index ); ?>"> <input type="hidden" name="mphb_room_details[<?php echo esc_attr( $index ); ?>][room_type_id]" value="<?php echo esc_attr( $roomType->getOriginalId() ); ?>" /> <?php do_action( 'mphb_sc_checkout_room_details', $reservedRoom, $index, $roomType, $booking, $roomDetails ); ?> </div> -->
July 11, 2024 at 2:54 am #1642861AlbertoParticipantAdding context / 2:
See alsoSingle accommodation – removing VIEW DETAILS button and “1 of 1…”
These settings should be more easily parametrized in my opinion.[ The following question is still valid:
What are the *correct* ways to accomplish what described above?
-By CSS hiding (although it’s a “dirty” solution)?
-By php filesystem file editing (although it leaves out non-developer like)?In case of “By php filesystem file editing”, will it get LOST if I will update the plugin version? how is it handled? thank you
]July 11, 2024 at 4:48 am #1642934AlbertoParticipantAdding context / 3
See also( with some useful thoughts from others, on the general process, as @Kok Wai Lai wrote:
<<It is better to make the booking process SIMPLE and SAFE. The fewer steps the better>> )July 23, 2024 at 8:30 pm #1647649RobertParticipantIt seems redundant to ask for the Full Guest Name, list details about the booking, then ask their name again before getting more details. I have the Checkout Fields add-on, but that only edits the contact information after the booking info. How do I take out the “Full Guest Name” section?
- AuthorPosts
- You must be logged in to reply to this topic.