cancel
Showing results for 
Search instead for 
Did you mean: 

How to create invoice before order gets completed?

How to create invoice before order gets completed?

I want to attach invoice PDF to new order email. Its working for the orders which are completed using Credit Card payment method as invoice is created before order completion in cc case. I want to accomplish same when Cash On Delivery payment method is used. Currently i am creating invoice when order gets completed but i want invoice to be created before so pdf gets attached to new order email.

Hope my question make sense.

1 REPLY 1

Re: How to create invoice before order gets completed?

Well invoice gets created when orders completed, in case of Cash on delivery order status should be "pending" so won't possible by default.. although certainly possible through customization.

 

P.S - If change as completed at order place time then become little difficult to identify which orders payment you've received in case of COD.

 

Good luck Smiley Happy

-
Magento Programmer | Was my answer helpful? You can accept it as a solution.