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

Viewing 5 posts - 1 through 5 (of 5 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

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