Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Hotel Booking Payment Request How to hide the Price breakdown on the payment request page?
- This topic has 4 replies, 3 voices, and was last updated 2 years, 6 months ago by J. Davis.
- AuthorPosts
- May 31, 2022 at 1:52 pm #1311629Mario MataParticipant
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.June 1, 2022 at 9:38 am #1312097AM RealtyParticipantHello 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!
June 3, 2022 at 1:22 am #1312744J. DavisKeymasterHi,
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. DavisJune 3, 2022 at 4:55 am #1312897Mario MataParticipantDone!!! Thank you so much!
June 7, 2022 at 11:33 pm #1314730J. DavisKeymasterHi 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 - AuthorPosts
- You must be logged in to reply to this topic.