现在应用模块的config.xml里面配置
<helpers>
<mycustomer>
<class>Bysoft_Mycustomer_Helper</class>
</mycustomer>
<customer>
<rewrite>
<data>Bysoft_Mycustomer_Helper_Data</data>
</rewrite>
</customer>
</helpers>
然后覆盖的时候这么写
class Bysoft_Mycustomer_Helper_Data extends Mage_Customer_Helper_Data
{
public function getSalesOrderHistoryUrl() {
return $this->_getUrl('sales/order/history');
}
}
本文介绍如何在Magento中通过修改config.xml文件配置自定义Helper,并展示了具体的实现代码示例。
770

被折叠的 条评论
为什么被折叠?



