【问题标题】:Add Custom Tabs to the Magento Customer Admin将自定义选项卡添加到 Magento 客户管理员
【发布时间】:2014-11-04 04:31:06
【问题描述】:

我正在开发一个新的 Magneto 模块。 如何在客户信息的左侧菜单 magento 管理面板中添加一个新项目,页面显示一些数据?

【问题讨论】:

    标签: magento


    【解决方案1】:

    看看@Add Custom Tabs to the Magento Product Admin

    您需要将 app/design/adminhtml/default/default/layout/customtabs.xml 更新为

    <layout version="0.1.0">
      <adminhtml_customer_edit>
         <reference name="customer_edit_tabs">
            <action method="addTab">
              <name>customer_edit_tab_action</name>
              <block>customertab/adminhtml_customer_edit_tab_action</block>
            </action>
         </reference>
      </adminhtml_customer_edit>
    </layout>
    

    然后相应地更改类名

    另见How to Add Custom Tabs to Magento Customer Edit page

    【讨论】:

    • 感谢您的回复,我已经逐步尝试了这个解决方案,但我有 magento 1.7.0.2,她不工作
    • 我在 app/code/core/mage/adminhtml/Block/Customer/Edit/Tabs.php $this->addTab('wishlist', array( 'label' => Mage::helper('customer')->__('Wishlist'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/wishlist' , 数组('_current' => true)), ));但我不知道如何显示我的内容
    猜你喜欢
    • 1970-01-01
    • 2016-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多