duplicating_money_order_payment_method_module

Last modified by Francois99 on Sun, January 2, 2011 19:11
Source|Old Revisions  

This is an old revision of the document!


=⇒ The best method is to find a free payment method (extension) that is working in the latest version and to use that for developing your method (because these extensions are developed in /local or /community, so the core can be updated easily without problems in the future)!

As developers experience it is difficult to build new shipping and payment methods in /local or /community since the new version 1.4.2.0 (or earlier). All the examples don’t work. Until later when this all have fixed you can build it in the core now (so it works for all versions). There is another article “duplicate flat rate shipping method” and that works immediately. You only need to find out how to change it for your method.

So you can duplicate the Check/Money order payment method module easily like the shipping one. How to remove it later, see the shipping one.

So duplicate it as follows (checkmo to checkmo1):

- mage/payment/block/forms + info : duplicate checkmo.php to checkmo1.php (rename inside checkmo to checkmo1)

- mage/payment/etc/config.xml + system.xml : duplicate the checkmo parts (and rename it to checkmo1)

- mage/payment/model/method : duplicate checkmo.php to checkmo1.php (rename inside checkmo to checkmo1)

- design/adminhtml/default/default/template/payment/form + info : duplicate checkmo.php to checkmo1.php (rename inside checkmo to checkmo1)

- design/frontend/base/default/template/payment/form + info : duplicate checkmo.php to checkmo1.php (rename inside checkmo to checkmo1)

That’s it and no frustrations anymore ..




 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs