Is there any observer event on frontend home page load?
On my custom module, I want to display a notice message on home page if certain conditions are met. Can I do this using event-observer?
event-observermagento-1.9
Is there any observer event on frontend home page load?
On my custom module, I want to display a notice message on home page if certain conditions are met. Can I do this using event-observer?
Best Answer
Add the following in the extension's config.xml
And here is the code to go in showCouponCodeWhenLoad() function in Observer.php
Hope this helps to someone!