Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
管理パネルで請求書を作成するとき、オブザーバーのそのイベントの名前は何ですか?*sales_order_invoice_register*と*sales_order_invoice_pay*を試しましたが、機能しません。
Magento> = 1.4の場合、いくつかのオプションがあります。最良の選択は、リストしたイベントですsales_order_invoice_register。
sales_order_invoice_register
請求書モデルは_eventPrefixプロパティをsales_order_invoiceに設定するため、を観察できますsales_order_invoice_save_after。
_eventPrefix
sales_order_invoice
sales_order_invoice_save_after
正しいイベント構成領域(adminhtml、フロントエンド、グローバル)を使用していることを確認してください。