如何創建一個observer
爲客戶登錄在Magento?創建一個觀察者爲客戶登錄magento
<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>
不工作
你能解釋更多的細節您的要求,意味着你要自定義的頁面? – MagentoDiary 2013-04-10 10:25:18
@Amit我更新了問題 – 2013-04-10 10:41:57