Solution:
For example, need to override /app/code/core/Mage/Paypal/Model/Config.php method getBuildNotationCode
Create model in your extantion
app/code/local/YourFirm/ExtName/Model/Paypal/Config.php
code:
class YourFirm_ExtName_Model_Paypal_Config extends Mage_Paypal_Model_Config
{
public function getBuildNotationCode($countryCode = null)
{
... your code here....
// if you need, you could run base function, use: parent::getBuildNotationCode($countryCode);
}
}
open confix.xml in your extantion
/app/code/local/YourFirm/ExtName/etc/config.xml
and add next code in global section:
and add next code in global section:
<global>
<models>
<paypal>
<rewrite>
<config>YourFirm_ExtName_Model_Paypal_Config</config>
</rewrite>
</paypal>
</models>
</global>
No comments:
Post a Comment