Edit Booking / Checkout form

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #801891
    Aidan Taggart
    Participant

    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

    #801968
    Aidan Taggart
    Participant

    Hello 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

    #802347
    Stacy Lind
    Keymaster

    Hi 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.php

    Below 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
    }
    #922228
    J. Davis
    Keymaster

    Hi,
    It is possible to edit fields on the checkout page using this extension https://motopress.com/products/hotel-booking-checkout-fields/

    #1074379
    Gwenaël Nemry
    Participant
    This reply has been marked as private.
    #1074951
    Andre Flores
    Moderator
    This reply has been marked as private.
    #1190926
    Albertus Korb
    Participant
    This reply has been marked as private.
    #1193151
    Andre Flores
    Moderator
    This reply has been marked as private.
    #1406197
    Simeon Jordanov
    Participant

    Hi
    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.

    #1408406
    J. Davis
    Keymaster

    Hi 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

    #1642773
    Alberto
    Participant

    I 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/tue9rmw

    Installing

    Hotel Booking Checkout Fields


    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.

    #1642809
    Alberto
    Participant

    Adding 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.php

    And 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>
    -->
    
    
    #1642861
    Alberto
    Participant

    Adding context / 2:
    See also

    Single 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
    ]

    #1642934
    Alberto
    Participant

    Adding context / 3
    See also

    style the booking confirmation page

    ( 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>> )

    #1647649
    Robert
    Participant

    It 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?

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