I have Magento 1.9 CE and I'm trying to create a new module for extend the class Mage_Paypal_Controller_Express_Abstract
, but it doesn't work.
Here's the code:
Name_Module.xml
in /app/etc/modules
<?xml version="1.0"?>
<config>
<modules>
<Name_Module>
<active>true</active>
<codePool>local</codePool>
<depends></depends>
</Name_Module>
</modules>
</config>
config.xml
from /app/code/local/Name/Module/etc/
<?xml version="1.0"?>
<config>
<modules>
<Name_Module>
<version>1.0.0</version>
</Name_Module>
</modules>
<frontend>
<routers>
<paypal>
<args>
<modules>
<Name_Module before="Mage_Paypal">Name_Module _Paypal</Name_Module >
</modules>
</args>
</paypal>
</routers>
</frontend>
and Abstract.php
app/code/local/Name//Controller/Paypal/Express/
<?php
include_once('Mage/Paypal/Controller/Express/Abstract.php');
class Name_Module_Paypal_Express_Abstract extends Mage_Paypal_Controller_Express_Abstract{
/**
* Submit the order
*/
public function placeOrderAction()
{
//code
}
}
Why doesn't it work?
<depends>Mage_Paypal</depends>
instead of<depends></depends>