I'm trying to extend properly the core class Mage_Tax_Helper_Data
with a module named "smartvat". All seem ok, my config.xml
file:
<?xml version="1.0"?>
<config>
<modules>
<Bsinformatica_Smartvat>
<version>0.1.1</version>
</Bsinformatica_Smartvat>
</modules>
<global>
<helpers>
<smartvat>
<class>Bsinformatica_Smartvat_Helper</class>
</smartvat>
</helpers>
<helpers>
<tax>
<rewrite>
<data>Bsinformatica_Smartvat_Tax_Helper_Data</data>
</rewrite>
</tax>
</helpers>
<models>
<tax>
<rewrite>
<config>Bsinformatica_Smartvat_Tax_Model_Config</config>
</rewrite>
</tax>
</models>
</global>
</config>
and my class...
class Bsinformatica_Smartvat_Tax_Model_Config extends Mage_Tax_Model_Config {
public function getPriceDisplayType($store = null)
{
// code goes here
}
}
All it seems ok and the class id properly rewrited. But doing this the admin menu Sales>Taxes disappear. If I comment out:
<helpers>
<tax>
<rewrite>
<data>Bsinformatica_Smartvat_Tax_Helper_Data</data>
</rewrite>
</tax>
</helpers>
this section the menu displays correctly. Can someone help me?