I am trying to override customer address controller but its't overrides
Config.xml
<frontend>
<routers>
<salesperson>
<use>standard</use>
<args>
<module>VestricsB2B_Salesperson</module>
<frontName>salesperson</frontName>
</args>
<!--<args>
<modules>
<general before="Mage_Customer">VestricsB2B_Salesperson</general>
</modules>
</args>-->
</salesperson>
<customer>
<args>
<modules>
<general before="Mage_Customer">VestricsB2B_Salesperson</general>
</modules>
</args>
</customer>
</routers>
<layout>
<updates>
<salesperson>
<file>salesperson.xml</file>
</salesperson>
</updates>
</layout>
</frontend>
AccountController.php
require_once(Mage::getModuleDir('controllers','Mage_Customer').DS.'AddressController.php');
class VestricsB2B_Salesperson_AddressController extends Mage_Customer_AddressController {
public function createPostAction(){
echo "override"; exit;
}
}
createPostAction
. You can tryformPostAction
<general before="Mage_Customer">VestricsB2B_Salesperson</general>
to<VestricsB2B_Salesperson before="Mage_Customer">VestricsB2B_Salesperson</VestricsB2B_Salesperson>
. Try updating your file name from AccountController.php to AddressController.php