哪个事件观察者在购物车页面中调用更新按钮操作

Muk*_*esh 1 magento magento-1.7

当用户点击magento购物车页面上的" 更新购物车"按钮时,我想编写自定义功能.

在我的config.xml中,我正在使用以下内容

<checkout_cart_product_update_after>
  <observers>
    <mymodule_observer>
        <type>singleton</type>
        <class>Mynamespace_Mymodule_Model_Observer</class>
        <method>updateMethod</method>
    </mymodule_observer>
  </observers>
</checkout_cart_product_update_after>
Run Code Online (Sandbox Code Playgroud)

但是,当我单击购物车页面中的编辑链接并单击更新按钮后进入产品页面时,会触发此事件操作.

当我点击购物车中的更新购物车时,我希望这种情况发生.

我应该使用哪个事件观察员?

小智 7

使用checkout_cart_update_items_before事件:

        <checkout_cart_update_items_before>
            <observers>
                <mymodule_observer>
                    <type>singleton</type>
                    <class>Mynamespace_Mymodule_Model_Observer</class>
                    <method>updateMethod</method>
                </mymodule_observer>
            </observers>
        </checkout_cart_update_items_before>
Run Code Online (Sandbox Code Playgroud)