-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ability to view orders paid with removed payment method without breaking #15
Added ability to view orders paid with removed payment method without breaking #15
Conversation
@tmewes this is beautiful, will do a quick test as soon as I have a break from the language-pack generation work and we'll try to merge it right away. |
@tmewes I've changed the "method" on an order but I've 2 problems without developer modeI see this with developer modeI see this weird :-\ |
Yes, this PR only affects the frontend (which is why I only addressed it in the test steps). I would prepare a separate PR for the adminhtml, as there are a few other problem areas with missing or removed payment methods. I think this can be better tracked and tested with a separate PR, which will follow soon. :) |
ahhh right, you also wrote it in the PR name 🤦🏻 sorry If you want to do 2 separate PRs that's ok but we have to merge them both together so as you prefer :-) |
The code for fixing the frontend is needed for fixing the adminhtml, so we can't merge those two PRs both together. Could you please test again to see if everything works now? |
sorry for the notes @tmewes :-((( |
…etInfoBlock > Implement PR feedback
Everything is fine, I've adjusted the mentioned parts again and added explanations/answers to your questions from your review. :) |
Retested today, re-read and everything looks ok to me, thank you! ❤️ |
Description
Maho currently can't handle deleted/removed payment methods in orders in the frontend as well as in the adminhtml.
Example: An external payment module for the payment method
Amazon Pay
had been installed. Some customers used this payment method for their orders in the past. The module was then removed again because a different payment method was to be introduced instead.A customer who used such removed payment method currrently will get this error when viewing the order in the customer account:
This PR handles removed payment methods in the frontend e.g. on customer account order view pages as well as in the adminhtml e.g. on sales order view pages so they will successfully render again.
Type of change
Fix
How can this fix be tested
sales_flat_order_payment
database table (columnmethod
) to a non existent payment method (to simulate a removed payment method), e.g.some_obsolete_payment_method
.some_obsolete_payment_method
) in the payment information block.some_obsolete_payment_method
) in the payment information block.