天天看點

magento -- Magento事件一覽表

magento

module

event name

parameters

mage

admin

  admin_session_user_login_success

array('user'=>$user)

admin_session_user_login_failed

array('user_name'=>$username, 'exception' => $e)

admin_user_authenticate_after

array('username' => $username,'password' => $password,'user' => $this,'result' => $result)

adminhtml

adminhtml_block_html_before

array('block' => $this)

adminhtml_catalog_category_tabs

array('tabs' => $this)

adminhtml_catalog_category_tree_is_moveable

array('options'=>$options)

adminhtml_catalog_category_tree_can_add_root_category

array('category' => $this→getcategory(),'options' => $options,'store' => $this→getstore()→getid())

adminhtml_catalog_category_tree_can_add_sub_category

adminhtml_product_attribute_types

array('response'=>$response)

adminhtml_catalog_product_edit_prepare_form

array('form'=>$form)

adminhtml_catalog_product_edit_element_types

adminhtml_catalog_product_attribute_set_main_html_before

adminhtml_catalog_product_attribute_set_toolbar_main_html_before

adminhtml_catalog_product_form_prepare_excluded_field_list

array('object'=>$this)

adminhtml_catalog_product_edit_tab_attributes_create_html_before

adminhtml_cms_page_edit_tab_content_prepare_form

array('form' => $form)

adminhtml_cms_page_edit_tab_design_prepare_form

adminhtml_cms_page_edit_tab_main_prepare_form

adminhtml_cms_page_edit_tab_meta_prepare_form

adminhtml_widget_grid_filter_collection

array('collection' => $this→getcollection(), 'filter_values' => $this→_filtervalues)

adminhtml_widget_container_html_before

adminhtml_controller_action_predispatch_start

array()

adminhtml_customer_prepare_save

array('customer' => $customer, 'request' => $this→getrequest())

adminhtml_customer_save_after

array('customer' => $customer)

on_view_report

array('report' => 'search')

catalog_category_prepare_save

array('category' => $category,'request' => $this→getrequest())

catalog_controller_category_delete

array('category'=>$category)

catalog_product_new_action

array('product' => $product)

catalog_product_edit_action

catalog_product_prepare_save

array('product' => $product, 'request' => $this→getrequest())

catalog_controller_product_delete

catalog_product_to_website_change

array(

cms_page_prepare_save

array('page' => $model, 'request' => $this→getrequest())

adminhtml_cmspage_on_delete

array('title' => $title, 'status' => 'success')

array('title' => $title, 'status' => 'fail')

admin_permissions_role_prepare_save

array('object' => $role, 'request' => $this→getrequest())

adminhtml_controller_catalogrule_prepare_save

array('request' => $this→getrequest())

adminhtml_controller_salesrule_prepare_save

adminhtml_sales_order_create_process_data

$eventdata

adminhtml_sales_order_creditmemo_register_before

$args

admin_system_config_changed_section_{$section}

array('website' => $website, 'store' => $store)

store_group_save

array('group' => $groupmodel)

store_edit

array('store'=>$storemodel)

store_add

store_delete

array('store' => $model)

sales_convert_order_to_quote

array('order' => $order,'quote' => $this→getquote())

sales_convert_order_item_to_quote_item

array('order_item' => $orderitem,'quote_item' => $item)

api

api_user_authenticated

array('model' => $this,'api_key' => $apikey)

bundle

bundle_product_view_config $args

prepare_catalog_product_index_select

array('select' => $select,'entity_field' => new zend_db_expr('e.entity_id'),'website_field' => new zend_db_expr('cw.website_id'),'store_field' => new zend_db_expr('cs.store_id'))

prepare_catalog_product_price_index_table

array('index_table' => array('i' => $this→_getdefaultfinalpricetable()),'select' => $select,'entity_id' => 'i.entity_id

catalog_product_prepare_index_select

array('website' => $website,'select' => $select)

catalog_product_get_final_price

array('product'=>$product)

catalog

catalog_block_product_list_collection

array('collection'=>$this→_getproductcollection(),)

catalog_product_view_config

array('response_object'=>$responseobject)

catalog_product_upsell

array('product' => $product,'collection' => $this→_itemcollection,'limit' => $this→getitemlimit())

catalog_controller_category_init_before

array('controller_action'=>$this)

catalog_controller_category_init_after

array('category'=>$category, 'controller_action'=>$this)

catalog_controller_product_init_before

catalog_controller_product_init

catalog_controller_product_init_after

array('product'=>$product, 'controller_action' => $this)

catalog_controller_product_view

catalog_product_compare_add_product

catalog_product_compare_remove_product

array('product'=>$item)

catalog_helper_output_construct

array('helper'=>$this)

catalog_category_tree_move_before

$eventparams

$this→_eventprefix.'_move_before'

$this→_eventprefix.'_move_after'

catalog_category_tree_move_after

category_move

$this→_eventprefix.'_validate_before'

array($this→_eventobject=>$this)

$this→_eventprefix.'_validate_after'

catalog_model_product_duplicate

array('current_product'=>$this, 'new_product'=>$newproduct)

catalog_product_is_salable_before

array('product' => $this)

catalog_product_is_salable_after

array('product' => $this,'salable' => $object)

$this→_eventprefix.'_delete_after_done'

catalog_product_import_after

catalog_product_website_update_before

array('website_ids' => $websiteids,'product_ids' => $productids,'action' => $type)

catalog_product_website_update

catalog_product_status_update

array('product_id' => $productid,'store_id' => $storeid,'status' => $value)

catalog_category_change_products

array('category' => $category,'product_ids' => $productids)

$this→_eventprefix . '_load_before'

array($this→_eventobject => $this)

$this→_eventprefix . '_load_after'

$this→_eventprefix . '_add_is_active_filter'

catalog_category_tree_init_inactive_category_ids

array('tree'=>$this)

array('category' => $category,'prev_parent' => $prevnode,'parent' => $newparent)

array('category' => $category,'prev_node' => $prevnode,'parent' => $newparent)

catalogindex_prepare_price_select

$eventargs

catalog_prepare_price_select

catalog_product_collection_load_before

array('collection'=>$this)

catalog_product_collection_load_after

catalog_product_collection_before_add_count_to_categories

catalog_product_collection_apply_limitations_after

array('collection' => $this)

catalog_product_compare_item_collection_clear

catalog_product_flat_prepare_columns

array('columns' => $columnsobject)

catalog_product_flat_prepare_indexes

array('indexes' => $indexesobject)

catalog_product_flat_rebuild

array('store_id' => $store,'table' => $this→getflattablename($store))

catalog_product_flat_update_product

array('store_id' => $store,'table' => $this→getflattablename($store),'product_ids' => $productids)

array('select' => $select,'entity_field' => new zend_db_expr('pid.entity_id'),'website_field' => new zend_db_expr('cs.website_id'),'store_field' => new zend_db_expr('cs.store_id'))

array('select' => $select,'entity_field' => new zend_db_expr('pvd.entity_id'),'website_field' => new zend_db_expr('cs.website_id'),'store_field' => new zend_db_expr('cs.store_id'))

array('select' => $select,'entity_field' => new zend_db_expr('l.parent_id'),'website_field' => new zend_db_expr('cs.website_id'),'store_field' => new zend_db_expr('cs.store_id'))

prepare_catalog_product_price_index_select

catalogindex

catalogindex_plain_reindex_after

array('products' => $products)

catalogindex_get_minimal_price

  $args

catalogrule

catalogrule_before_apply

array('resource'=>$this)

catalogrule_after_apply

array('product'=>$product,'product_condition' => $productcondition)

catalogsearch

catalogsearch_reset_search_result'

checkout

checkout_cart_add_product_complete

array('product' => $product, 'request' => $this→getrequest(), 'response' => $this→getresponse())

checkout_controller_multishipping_shipping_post

array('request'=>$this→getrequest(), 'quote'=>$this→_getcheckout()→getquote())

checkout_multishipping_controller_success_action'

checkout_onepage_controller_success_action'

checkout_controller_onepage_save_shipping_method

array('request'=>$this→getrequest(), 'quote'=>$this→getonepage()→getquote())

checkout_allow_guest

array('quote' => $quote,'store' => $store,'result' => $result)

checkout_cart_product_add_after

array('quote_item'=>$result, 'product'=>$product)

checkout_cart_update_items_before

array('cart'=>$this, 'info'=>$data)

checkout_cart_update_items_after

checkout_cart_info_item_unset_product_before

checkout_quote_init

array('quote'=>$quote)

checkout_quote_destroy

array('quote'=>$this→getquote())

checkout_type_multishipping_set_shipping_items

checkout_type_multishipping_create_orders_single

array('order'=>$order, 'address'=>$address)

checkout_type_onepage_save_order

array('order'=>$order, 'quote'=>$this→getquote())

checkout_type_onepage_save_order_after

cms

cms_controller_router_match_before

array('router' => $this,'condition' => $condition)

cms_page_get_available_statuses

array('statuses' => $statuses)

core

core_block_abstract_prepare_layout_before

core_block_abstract_prepare_layout_after

core_block_abstract_to_html_before

core_block_abstract_to_html_after

http_response_send_before

array('response'=>$this)

controller_action_layout_load_before

array('action'=>$this, 'layout'=>$this→getlayout())

controller_action_layout_generate_xml_before

controller_action_layout_generate_blocks_before

controller_action_layout_generate_blocks_after

controller_action_layout_render_before'

controller_action_layout_render_before_'.$this→getfullactionname()

controller_action_predispatch

controller_action_predispatch_'.$this→getrequest()→getroutename()

controller_action_predispatch_'.$this→getfullactionname()

controller_action_postdispatch_'.$this→getfullactionname()

controller_action_postdispatch_'.$this→getrequest()→getroutename()

controller_action_postdispatch

controller_action_noroute

array('action'=>$this, 'status'=>$status)

controller_action_nocookies

array('action' => $this,'redirect' => $redirect)

controller_front_init_before

array('front'=>$this)

controller_front_init_routers

model_load_after

$this→_eventprefix.'_load_after'

model_save_commit_after

$this→_eventprefix.'_save_commit_after'

model_save_before

$this→_eventprefix.'_save_before'

model_save_after

$this→_eventprefix.'_save_after'

model_delete_before

$this→_eventprefix.'_delete_before'

model_delete_after

$this→_eventprefix.'_delete_after'

model_delete_commit_after

$this→_eventprefix.'_delete_commit_after'

application_clean_cache

array('tags' => $tags)

core_locale_set_locale

array('locale'=>$this)

resource_get_tablename

array('resource' => $this, 'model_entity' => $modelentity, 'table_name' => $tablename)

core_layout_update_updates_get_after

array('updates' => $updatesroot)

core_collection_abstract_load_before

core_collection_abstract_load_after

customer

customer_registration_is_allowed

array('result' => $result)

customer_customer_authenticated

array('model' => $this,'password' => $password,)

customer_session_init

array('customer_session'=>$this)

customer_login

array('customer'=>$customer)

customer_logout

array('customer' => $this→getcustomer())

eav

adminhtml_block_eav_attribute_edit_form_init

array('form' => $this→getform())

eav_attribute_get_backend_type_by_input

array('model'=>$this, 'type'=>$type)

eav_attribute_get_default_value_by_input

eav_collection_abstract_load_before

googlecheckout

google_checkout_discount_item_price

array('quote' => $this→getquote(), 'discount_item' => $discountitem)

log

log_log_clean_before

array('log' => $object)

log_log_clean_after

log_visitor_collection_load_before

oscommerce

payment

payment_method_is_active

array('result' => $checkresult,'method_instance' => $this,'quote' => $quote,)

paypal

array('order'=>$order, 'quote'=>$this→getreview()→getquote())

paypaluk

review

review_controller_product_init_before

review_controller_product_init

review_controller_product_init_after

review_review_collection_load_before

rss

rss_catalog_category_xml_callback

rss_catalog_new_xml_callback

rss_catalog_special_xml_callback

rss_catalog_tagged_item_xml_callback

rss_order_new_collection_select

array('collection' => $collection)

rule

rule_environment_collect

array('env'=>$this)

sales

sales_order_place_before

array('order'=>$this)

sales_order_place_after

sales_quote_remove_item

array('quote_item' => $item)

sales_quote_add_item

$this→_eventprefix . '_collect_totals_before'

$this→_eventprefix . '_collect_totals_after'

$this→_eventprefix . '_merge_before'

array($this→_eventobject=>$this,'source'=>$quote)

$this→_eventprefix . '_merge_after'

array('order'=>$order, 'quote'=>$quote)

sales_convert_quote_to_order

sales_convert_quote_address_to_order

array('address'=>$address, 'order'=>$order)

sales_convert_quote_address_to_order_address

array('address' => $address, 'order_address' => $orderaddress)

sales_convert_quote_payment_to_order_payment

array('order_payment' => $orderpayment, 'quote_payment' => $payment)

sales_convert_quote_item_to_order_item

array('order_item'=>$orderitem, 'item'=>$item)

sales_quote_item_collection_products_after_load

array('product_collection'=>$productcollection)

sales_sale_collection_query_before

sales_order_creditmemo_refund

sales_order_creditmemo_cancel

sales_order_invoice_pay

sales_order_invoice_cancel

sales_order_item_cancel

array('item'=>$this)

sales_order_payment_place_start

array('payment' => $this)

sales_order_payment_place_end

sales_order_payment_capture

array('payment' => $this, 'invoice' => $invoice)

sales_order_payment_pay

sales_order_payment_cancel_invoice

sales_order_payment_void

array('payment' => $this, 'invoice' => $document)

sales_order_payment_refund

array('payment' => $this, 'creditmemo' => $creditmemo)

sales_order_payment_cancel_creditmemo

sales_order_payment_cancel

sales_quote_item_qty_set_after

sales_quote_item_set_product

array('product' => $product,'quote_item'=>$this)

$this→_eventprefix . '_import_data_before'

array($this→_eventobject=>$this,'input'=>$data,)

sales_quote_address_discount_item

salesrule

salesrule_validator_process

array('rule' => $rule,'item' => $item,'address' => $address,'quote' => $quote,'qty' => $qty,'result' => $result,)

salesrule_rule_condition_combine

array('additional' => $additional)

sendfriend

sendfriend_product

tag

tag_tag_product_collection_load_after

tax

tax_rate_data_fetch

array('request'=>$this)

tax_settings_change_after'

wishlist

wishlist_add_product

array('wishlist'=>$wishlist, 'product'=>$product)

wishlist_share

array('wishlist'=>$wishlist)

繼續閱讀