We are using the payment method Cashondelivery.
When creating an invoice in the backend, there is no option to select "pending payment". The invoice is created always as paid.
How can this be fixed?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
I haven't tested this in EE, but in CE you could try the following:
and copy this file to the
Open this duplicate file and find this code, it's almost at the top
/** * Payment method code * * @var string */ protected $_code = 'cashondelivery';
Now add the folowing line of code
protected $_canCapture = true;
It should now say
/** * Payment method code * * @var string */ protected $_code = 'cashondelivery'; protected $_canCapture = true;
Now save the file, flush all cache and when creating the invoice you should now see a drop down box in the right bottom corner, like this.
You can now select "Not Capture" and create the invoice. The invoice status should be "pending". Once you have received the payment you can set the invoice to complete by using the "Capture" button.