将新操作添加到发票的操作列表中
我需要向发票页面的 ActionList 添加一个新操作
我不知道magento在哪里创建这个列表以及它如何调用所选的操作,所以我想你们会知道我应该从哪里开始寻找...
谢谢!
乔纳森
I need to add a new action to the ActionList in the Invoices page
I don't know where magento creates this list and how it call the selected action, so I thought you guys would know where I should start looking...
Thanks!
Jonathan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您要覆盖的类是
Mage_Adminhtml_Block_Sales_Invoice_Grid
。将该文件复制到本地空间(这样您将拥有app/code/local/Mage/Adminhtml/Block/Sales/Invoice/Grid.php
),然后修改以下函数:希望有帮助!
谢谢,
乔
The class you want to override is
Mage_Adminhtml_Block_Sales_Invoice_Grid
. Copy that file into the local space (so you'll haveapp/code/local/Mage/Adminhtml/Block/Sales/Invoice/Grid.php
) and then modify the following function:Hope that helps!
Thanks,
Joe