Thursday, September 25, 2025
1 change · saas-18.4
Resolved issues and error corrections
This fix restores the PayPal payment button during mobile checkout, so customers can complete purchases from phones or mobile views. It resolves a display conflict caused by duplicate checkout sections and helps prevent lost sales for merchants using PayPal.
Original PR description
## Version saas-18.4+ ## Issue *Use mobile device or mobile view* - Configure Paypal as a Payment Provider; - Go to the shop and buy an article; - Move to checkout and select PayPal; - No PayPal…
## Version saas-18.4+ ## Issue *Use mobile device or mobile view* - Configure Paypal as a Payment Provider; - Go to the shop and buy an article; - Move to checkout and select PayPal; - No PayPal button is displayed. ## Cause In saas-18.4, a refactoring of the checkout layout (7a564237579603bcaef46efd6ffaaaffefb54b11) introduced the `o_mobile_summary` block which results in the full payment form being duplicated in the DOM: - One copy for desktop: - https://github.com/odoo/odoo/blob/de3d09ab8592c87b9d747a33cded93a90387b797/addons/website_sale/views/templates.xml#L3524-L3529 - One copy inside `.o_mobile_summary` for mobile: - https://github.com/odoo/odoo/blob/de3d09ab8592c87b9d747a33cded93a90387b797/addons/website_sale/views/templates.xml#L3557-L3560 This causes the `payment.submit_button` template (and its extension by PayPal) to be injected twice. As a result, the DOM ends up with two elements sharing the same IDs (`o_paypal_button_container`) which breaks PayPal’s SDK rendering logic. ## Fix JavaScript logic based on cca908741c7fdd701a4539e5d43c71248b73b14f has been added to detect and rename the duplicated DOM structure: The PayPal button can be rendered everywhere based on unique IDs. opw-4942831