How to Generate Invoice with Pending Status in Magento 2

The default Magento 2 CMS manages orders and invoices effectively so as to ensure smooth online store functioning.

However, with increasing E-commerce facilities, the default features fall short. Fortunately, Magento 2 allows customizing the default features, for example, generate invoice with pending status in Magento 2.

To fulfill the modern requirements of online shoppers, you might have to offer varied payment methods such as cash on delivery, cheque, or money order.

When a customer chooses one of these payment methods while placing the order, the invoice is in a processing state. But, if you want to mark that order as pending until the payment is received, you can implement the below solution.

Method to Generate Invoice with Pending Status in Magento 2:

  1. Create file di.xml at app\code\Vendor\Extension\etc\ directory
  2. Create file Checkmo.php at app\code\Vendor\Extension\Model\ directory

That’s it for generating invoice with pending status in Magento 2 store!

Any doubts? If so, mention them in the Comments section below. I’d be happy to help.

Do share the solution with Magento Community via social media.

Thank you.

5
(based on 6 Reviews)
How to Generate Invoice with Pending Status in Magento 2

Jignesh Parmar

An expert in his field, Jignesh is the team leader at Meetanshi and a certified Magento developer. His passion for Magento has inspired others in the team too. Apart from work, he is a cricket lover.

Leave a Reply

Your email address will not be published. Required fields are marked *