We have the shop with Magento 2.2.5. If customer select payment method "Invoice" and we create an invoice in admin, status is always set to "paid". But that is not correct, because the customer did not pay yet. So how can I change the status of an invoice?

Thanks for the help! Martin


AFAIK there's no backend configuration for this. Official docs for plugins in Magento 2: https://devdocs.magento.com/guides/v2.2/extension-dev-guide/plugins.html

You could create a plugin that sets the invoice status to "Pending" whenever an invoice is created. Maybe this answer can lead you in the right direction: Change invoice status in DB

After that, you can proceed to add methods that a backend user can change the invoice status.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.