How to hide the Price breakdown on the payment request page?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1311629
    Mario Mata
    Participant

    Hi!!
    I would like to eliminate the “Price breakdown” module at payment request template, and only show “reservation details”, “payment history” and “payment method”, is it possible? How can do it?
    It even show the titles in English, and the rest of text is in Spanish, wich is our main language, how can we change it?
    Thanks in advanced!
    Mario.

    #1312097
    AM Realty
    Participant

    Hello Mario,

    I believe that you can hide the Price Breakdown section by commenting out the lines below in the file CheckoutShortcode.php located at /wp-content/plugins/mphb-request-payment/classes/Shortcodes

    add_action('mphb_sc_payment_request_checkout-form', array($this, 'printPriceBreakdown'), 20, 1);

    and

    remove_action('mphb_sc_payment_request_checkout-form', array($this, 'printPriceBreakdown'), 20);

    This should suppress those sections from being called when the page loads. Note that these changes will be overwritten every time the Request Payments Plugin is updated. Good luck!

    #1312744
    J. Davis
    Keymaster

    Hi,

    Thanks for your question. You may apply custom CSS style to hide the Price Breakdown on the Payment Request page:

    .mphb_sc_payment_request_checkout-wrapper .mphb-room-price-breakdown-wrapper.mphb-checkout-section{
    display:none;
    }

    You may add it to Appearance > Customize > Additional CSS

    best regards,
    J. Davis

    #1312897
    Mario Mata
    Participant

    Done!!! Thank you so much!

    #1314730
    J. Davis
    Keymaster

    Hi Mario,

    You are welcome. We would highly appreciate it if you rate Payment Request addon https://motopress.com/products/hotel-booking-payment-request/#reviews

    best regards,
    J. Davis

    #1740314
    Xavier ANGLES
    Participant

    Hello,

    Is there a way to hide in the payment page the deposit the customer has paid to book ?

    In the payment tab, the dates are in english (15 March 2025): is it possible to display them in french (the other dates on the payment page, for example check in & out are in french format : 15 Mars 2025) ?
    Or to display with dd/mm/yy format ?

    Thanks

    Regards

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