Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将用户记录到magento中的后端管理订单_Magento - Fatal编程技术网

将用户记录到magento中的后端管理订单

将用户记录到magento中的后端管理订单,magento,Magento,我已经将以下内容添加到我正在工作的magento站点中,它基本上会将登录用户名添加到对订单的任何评论中 我现在需要做的是添加一些东西到管理员中创建订单的用户日志中,或者在每个订单页面上显示消息“Ordered Online” 如有任何帮助,我们将不胜感激。为销售\订单\地点\创建一个观察者 <events> <sales_order_place_after> <observers> <orderenter

我已经将以下内容添加到我正在工作的magento站点中,它基本上会将登录用户名添加到对订单的任何评论中

我现在需要做的是添加一些东西到管理员中创建订单的用户日志中,或者在每个订单页面上显示消息“Ordered Online”


如有任何帮助,我们将不胜感激。

为销售\订单\地点\创建一个观察者

<events>
    <sales_order_place_after>
        <observers>
            <orderenteredby>
                <type>singleton</type>
                <class>orderenteredby/observer</class>
                <method>implementOrderMethod</method>
            </orderenteredby>
        </observers>
    </sales_order_place_after>

有关如何创建观察者的更多信息,请参见为销售、订单、地点创建观察者

<events>
    <sales_order_place_after>
        <observers>
            <orderenteredby>
                <type>singleton</type>
                <class>orderenteredby/observer</class>
                <method>implementOrderMethod</method>
            </orderenteredby>
        </observers>
    </sales_order_place_after>

有关如何创建观察者的更多信息,请参见

谢谢您的回答,您可以详细说明一下。我应该在哪里添加代码?提前感谢。您需要创建一个自定义magento模块。。。看一看我的例子谢谢你的回答,有没有可能你可以详细说明一下。我应该在哪里添加代码?提前感谢。您需要创建一个自定义magento模块。。。看看我的例子