Just reporting that this works on 1.4.0.1. Thanks… exactly what I needed! I’m glad I read through this post before getting started with those other methods.
Thanks for the code shared, this helped me in understanding how payment modules work and how to restrict.
I want to create IVRs module on similar lines, where tele caller listens through the ivrs and marks payment done via ivrs. The only thing diff in this code and my code is after order is placed this module shows 0 paid and all amount is due and in my case all paid and 0 due.
Based on above code I shifted the code to my own name space and getting following error
Warning: Varien_Autoload::include(Mage/Ivr/Model/Ivr.php) [varien-autoload.include]: failed to open stream: No such file or directory in /var/www/bigdeals/trunk/src2/lib/Varien/Autoload.php on line 93
Is there a change to integrate an automatic invoice into this modul?
Found this code on the web:
if($_order->canInvoice()) {
/**
* Create invoice
* The invoice will be in ‘Pending’ state
*/
$invoiceId = Mage::getModel(’sales/order_invoice_api’)
->create($_order->getIncrementId(), array());
Beavis, how about making this an official module? For those interested, I tested in 1.4.1.1 and it works perfectly. I’ve update the first post in this thread with the most recent info.
Doesnt work correctly in Magento 1.4.1.1. It causes an tax issue if product price includes tax. Shows right sum when creating the order in admin but shows wrong sum when generating the invoice. Any solutions?
Using 1.4.1.1 with flat rate shipping and showing all prices including and excluding tax it appears that once an order is placed in the backend using this method the shipping is shown twice with tax rather than inc and ex. This results in the final value shown being wrong by the same amount as the tax on the shipping.
So if that can be fixed I think everything will be working correctly.....
I’m trying to understand how this all works but I’ve got nowhere so far, so if anyone has a solution it would be very much appreciated.
Just noticed a bug with the Beavis method on 1.4.1.1. The payment method shows up on the multi-shipping checkout method. Is there an easy way to remove that?
For anyone following this thread, I wish that I’d come across this free extension before spending several hours trying to implement all the various (very helpful) solutions that have been previously posted: