如何为登录Magentoobserver
的客户创建一个?
<events>
<customer_login> <!-- identifier of the event we want to catch -->
<observers>
<Vi_Cartproduct> <!-- identifier of the event handler -->
<type>singleton</type> <!-- class method call type; valid are model, object and singleton -->
<class>cartproduct/observer</class> <!-- observers class alias -->
<method>removeProduct</method> <!-- observer's method to be called -->
<args></args> <!-- additional arguments passed to observer -->
</Vi_Cartproduct>
</observers>
</customer_login>
</events>
上述事件不起作用