简体   繁体   English

Magento - Function 调用事件触发器

[英]Magento - Function calling on an Event trigger

i want to call a function when a customer signs in. For that i need to create a function when an event is triggered,here in my case event should be "customer_login".我想在客户登录时调用 function。为此,我需要在触发事件时创建一个 function,在我的情况下,事件应该是“customer_login”。 Can anyone please help me by providing some sample.任何人都可以通过提供一些样本来帮助我。 i have came across so many tutorials.As i am a newbie am quite unaware of magento file structure.please help我遇到了很多教程。因为我是新手,所以对 magento 文件结构一无所知。请帮助

Please see Customize Magento using Event/Observer .请参阅使用 Event/Observer 自定义 Magento Especially the example steps 3, 4 & 5 which explain the files to create.尤其是解释要创建的文件的示例步骤 3、4 和 5。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM