checkout_onepage_controller_success_action之后的Magento Lost Style

时间:2014-01-30 12:57:12

标签: magento

        <events>
        <checkout_onepage_controller_success_action>
            <observers>
                <sendmail>
                    <type>singleton</type>
                    <class>Xkey_Redegrupo_Model_Observer</class>
                    <method>sendMailRGroup</method>
                </sendmail>
            </observers>
        </checkout_onepage_controller_success_action>
    </events>

如果我将checkout_onepage_controller_success_action更改为sales_order_after_save,但是工作但发送2次电子邮件,当我使用它时,电子邮件发送成功但是/ onepage / checkout / success / lost style的布局?为什么? !帮帮我Ç.Ç

1 个答案:

答案 0 :(得分:0)

Kin checkout_onepage_controller_success_action是订单成功放置后发生的事件,并重定向到c heckout/onepage/success pages.it an fronted event.sales_order_after_保存为全局事件,并在保存订单时运行。 several time are occurs during order procedure.... 事件的例子

<checkout_onepage_controller_success_action>
                <observers>
                    <create_invoice_for_zero_payment>
                        <class>zerosubtotalpaymentmethod/createinvoice</class>
                        <method>automaticinovoice</method>
                    </create_invoice_for_zero_payment>
                </observers>
            </checkout_onepage_controller_success_action>