Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

SOLVED: New order payment type just for the admin…or a real order edit
 
merchantguru
Sr. Member
 
Avatar
Total Posts:  133
Joined:  2008-10-05
San Francisco
 

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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
saurabhperiwal
Member
 
Total Posts:  35
Joined:  2010-05-05
 

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.

please share how can i achive this.

regards,
saurabh

 
Magento Community Magento Community
Magento Community
Magento Community
 
saurabhperiwal
Member
 
Total Posts:  35
Joined:  2010-05-05
 

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

Help

Regards,
Saurabh

 
Magento Community Magento Community
Magento Community
Magento Community
 
peperosso
Jr. Member
 
Total Posts:  6
Joined:  2010-02-03
 

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());

$invoice = Mage::getModel(’sales/order_invoice’)
->loadByIncrementId($invoiceId);

/**
* Pay invoice
* i.e. the invoice state is now changed to ‘Paid’
*/
$invoice->capture()->save();
}

But have no clue how to integrate it in the ‘manualcardpayment’! Any suggestions? Any help?
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
DrBillNye
Sr. Member
 
Avatar
Total Posts:  96
Joined:  2009-02-07
Boulder, CO
 

beavis, thx for the module, works like a champ

 
Magento Community Magento Community
Magento Community
Magento Community
 
davedavedave
Sr. Member
 
Avatar
Total Posts:  238
Joined:  2007-08-31
 

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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jase Clamp
Jr. Member
 
Total Posts:  19
Joined:  2009-06-09
 

This was awesome! 1.4 worked like a charm.

 
Magento Community Magento Community
Magento Community
Magento Community
 
nebukatnezer
Jr. Member
 
Total Posts:  23
Joined:  2007-09-09
 

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?

Kind regards,
marc aurel

 
Magento Community Magento Community
Magento Community
Magento Community
 
chav1979
Jr. Member
 
Total Posts:  4
Joined:  2008-06-02
 

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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
davedavedave
Sr. Member
 
Avatar
Total Posts:  238
Joined:  2007-08-31
 

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?

 
Magento Community Magento Community
Magento Community
Magento Community
 
PaulKeeton
Jr. Member
 
Total Posts:  3
Joined:  2010-08-24
 
beavis82 - 25 January 2010 07:04 AM


protected $_canUseInternal true;
protected 
$_canUseCheckout false;

...works brilliantly for us in Magento version 1.3.2.4.

I hope this is useful to someone!

Si

Hi

Please can you tell me where the code above is located?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Martin
Guru
 
Avatar
Total Posts:  445
Joined:  2007-08-31
Brno | London | Los Angeles
 

@callmedpit: change protected variables like this:

protected $_canUseInternal          true;
protected 
$_canUseCheckout          false;
protected 
$_canUseForMultishipping  false;    # does what it says

@PaulKeeton: in top of payment method model file, just below protected $_code = “somecode”; row ...

 
Magento Community Magento Community
Magento Community
Magento Community
 
miked2004
Sr. Member
 
Avatar
Total Posts:  214
Joined:  2007-12-13
Atlanta, Georgia
 

Here is how to make an current payment type available for admin only. http://www.sharpdotinc.com/mdost/2010/11/11/magento-how-to-make-payment-methods-for-admin-orders-only/

 
Magento Community Magento Community
Magento Community
Magento Community
 
thewebworkshop
Member
 
Total Posts:  67
Joined:  2008-08-21
 

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:

http://www.magentocommerce.com/magento-connect/Lemonline/extension/3377/lemonline_simpleadminpayment

Quick install and voila - does just what is needed!

 
Magento Community Magento Community
Magento Community
Magento Community
 
loeffel
Guru
 
Avatar
Total Posts:  427
Joined:  2009-02-03
 

Or you could use this and apply it to any payment method you might have left over: http://www.e-commercewebdesign.co.uk/blog/magento-tips/enable-payment-methods-for-admin-only-in-magento.php

Working like a charm on 1.5.1.0

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top