This tutorial does provide some great info… But is there a central documentation repository that I’m not finding? Maybe it’s my lack of deep experience with XML, but how is one to figure out what tags are appropriate in what locations in these files, or how to add things like support for events and so forth?
I admit I’m not a very senior coder, but it seems like there’s a piece missing here that I could really use at this point.
iam trying to get my own payment method shown up in backend, no chance, i tried all hints in that thread. May i post my code here. Maybe iam blind at the moment. Trying under newest version of magento.
// choose initial order status when checking out with this payment method $this->addConfigField( 'payment/'.$code.'/order_status' , 'Order Status' , array( 'frontend_type'=>'select', 'source_model'=>'adminhtml/system_config_source_order_status' ) );
// set position for this payment method in list $this->addConfigField( 'payment/'.$code.'/sort_order' , 'Sort Order' ); ?>
MZPayment/sql/mzpayment_setup.php - the file name is not correct it should be mzpayment_setup-install-0.1.0.php, but it is not needed anymore in new version as all the configuration fiels are read from MZPayment/etc/system.xml
don’t need to update local.xml as you have already created app/etc/modules/MZPayment.xml
rename MZPayment/Model/HPCc.php to MZPayment/Model/Hpcc.php
// instead of class Mage_MZPayment_Model_PaymentMethod extends Mage_Payment_Model_Abstract
// use class Mage_MZPayment_Model_Hpcc extends Mage_Payment_Model_Method_Abstract
it still dont work, but than i tried to adapt the paygate module to an local module. i called it MZHeidelpay. I renamed Models, Controllers and all that stuff to the new names. Copied to local/Menge, cleared all cache in backend, cleared cache in folder, deactivated all caches but my module wount be displayed in payment modules anyway. Is it a problem to name the module and the model with same name? May i attach my adapted module?
Ok, after reading you article i changed following:
name of file MHHeidelpay.php in Model changed to Mzheidelpay.php, also changed classname of model to Mage_MZHeidelpay_Model_Mzheidelpay instead of Mage_MZHeidelpay_Model_MZHeidelpay !
but it is still not shown up in Payment Modules :(! Its listed under “Advanced”
MZPayment/sql/mzpayment_setup.php - the file name is not correct it should be mzpayment_setup-install-0.1.0.php, but it is not needed anymore in new version as all the configuration fiels are read from MZPayment/etc/system.xml
Does this mean the wiki HowTo is not up to date anymore?