Created
November 6, 2015 19:08
-
-
Save ryaan-anthony/8eea6aaf90084e7f94b5 to your computer and use it in GitHub Desktop.
handle various controllers from a single pre-dispatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Observer | |
{ | |
public function handleControllerActionPredispatch(Varien_Event_Observer $observer) | |
{ | |
$controllerAction = $observer->getEvent()->getControllerAction(); | |
if ($controllerAction instanceOf Mage_Checkout_OnepageController) { | |
// currently handling a onepage checkout route | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment