The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [event-observer]

Event/observer is used to work dynamically with Magento without altering the core code.

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

Email template variable missing when overriding observer of core module

Hello all i want to do some changes in Magento Enterprise's Gift card functionality so that i have override the observer of Enterprise_Giftcard module into my local module Essentiel_Giftcards and its ...
0
votes
1answer
195 views

Magento Event For Returning Visitor

I am looking to hook into a event that will tell me when a returning customer visits the site. I was thinking about hooking into one of the session events, my question is, how would you go about ...
3
votes
3answers
5k views

dynamically adding layout updates xml files

In an extension i am working on, i have this section in the module's config.xml- <config> <frontend> <layout> <updates> <...
1
vote
1answer
2k views

Need event observer for the import product save row controller

how can i catch import product Mage_Catalog_Model_Convert_Adapter_Product model saverow() event using observer. Mage::dispatchEvent('catalog_product_import_profile_after', array('adapter'=>$this));...
1
vote
3answers
780 views

Observer's getCollection() not being rewritten

Is this standard behavior, or am I doing something wrong? // in event 'catalog_product_collection_load_before' get_class($observer->getCollection()); > ...
1
vote
1answer
1k views

Which observer to use during checkout order lock?

We're currently searching for an observer to use while a submitted order is locked during the checkout process. We've found that Mage_CatalogInventory_Model_Observer::lockOrderInventoryData is ...
2
votes
2answers
212 views

Event is not firing up after the 2-3 hour long import process

I again ran into a weird issue. I have registered an observer for an event that is firing up when the Advance data flow profile finishes its execution completely. I have checked this successfully when ...
0
votes
2answers
1k views

Trouble while getting product collection in observer

i am trying building a small module which house a Observer for getting called when and event called when catalog_product_import_profile_after is fired this is custom event which i have fired using the ...
2
votes
1answer
15k views

Redirect to module/controller/action

How to redirect to module/controller/action when I'm inside an observer method? I need to redirect to myrouter/adminhtml_test/validate. Why I need this: I try to fire my controller's action which has ...
7
votes
4answers
11k views

Call action after “Save Config” was clicked in the admin

How can I call an action of my controller in a custom module after "Save Config" was clicked in System --> Configuration --> Catalog? (image) Settings of my module are inside that section, and I need ...
4
votes
3answers
1k views

Taking action on a cancelled Recurring Profile

Using the default Magento Recurring profiles, is it possible, either through Event/Observer or a cron job to determine which profiles have been cancelled or suspended and take some subsequent action, ...
3
votes
1answer
2k views

Custom observer events

I have created an API integration with a third-party retailer. I have created my own Mage::dispatchEvent calls before and after the communication. I mostly use these for logging/debug mode, but I now ...
5
votes
1answer
5k views

checkout_submit_all_after Observer only triggered from one store view?

Afternoon all, Run into a curious problem, I'm setting up an observer that will be triggered every time an order is made. Code is below; Config XML: <?xml version="1.0"?> <config> &...
16
votes
1answer
9k views

Why are my SOAP v2 WS-I calls so slow (7-10 sec. per product update)?

We're using the Magento SOAP v2 API with WS-I. The problem is, that the SOAP calls are extremly slow (7-10 seconds per product!). We're calling catalogProductUpdate without images. The shop itself ...
15
votes
2answers
11k views

Creating Custom option and prize to just added product to cart using observer

I want to add custom option to quoteitem using observer which observer checkoutCartProductAddAfter event and fires after product added to cart. public function checkoutCartProductAddAfter(...
8
votes
3answers
12k views

Observing order state change

It seems there is no order state event by default, so how do you usually go about observing order state change? There are two possibilities I see: a) Overwrite the sales/order model to create your ...
5
votes
2answers
92 views

No order until the first one is paid

I need to create a module where it checks if the Customer has an order, and if he does check if its Paid(aka in Complete state), if yes let him order again, if not do not let him order. I thought of ...
4
votes
1answer
925 views

checkout_cart_add_product_complete not fired. Bug or feature?

While trying to answer this question I ran into a strange behavior. The checkout_cart_add_product_complete event is working nice while adding a product to cart from a catalog. However if I try to ...
1
vote
1answer
953 views

Display Message On Thank You Page If Shipping Method Is Equal To

We have added an in-store pick up shipping method to our magento stores. We would like to display travel instructions to the store on the thank you page. Any ideas on how I can go about displaying ...
27
votes
4answers
3k views

Returning $this after observer

I see some conflicting information on the internet and in 3rd party modules alike - is it a requirement or best practice to return $this at the end of an observer method? E.g.: ...
4
votes
1answer
8k views

Hook into “order shipped” event and get order id for order shipped

I have created a module that hooks into the sales_order_shipment_save_after event. I have tested the hook is working with Mage::log, My question is, how do I get the order id for the shipment that ...
10
votes
3answers
2k views

How can I alter a string passed by an event?

In my observer function, I get a variable passed by the event like that: public function observerFunc(Varien_Event_Observer $observer) { $sth = $observer->getEvent()->getSth(); } If sth is ...
9
votes
4answers
2k views

Magento Observer Events - order of operations

I am attempting to inject functionality into the catalog_model_product_duplicate event. Part of this module will be to ensure that the stock status of the duplicated product is also duplicated; ...
1
vote
2answers
5k views

How to Know The Magento Event that We Want to Hook [duplicate]

My question is simple, how to know the Magento event that we want to hook? Is there any simple solution?
14
votes
2answers
15k views

Changing the layout of the layered navigation

I have a layered navigation, and the customer wants to have <select/> fields instead of a long list of links. I thought about just changing the template with a observer if the name/id of the ...
11
votes
2answers
828 views

What's the last event dispatched before content is sent to the browser?

I need to set or update a cookie, but I want to ensure that all (or as much as possible) of the request processing occurs before my cookie generation code runs. i.e. if the user logs in, I want to ...
94
votes
15answers
23k views

Where can I find a complete list of Magento events?

I know that Magento has a hook-like system called events. Does anyone have a complete list or a script which can be used to determine which events can be called?