Friday , September 22 2017
Home >> Tag Archives: Magento tutorial for beginner (page 5)

Tag Archives: Magento tutorial for beginner

Magento Developers’ Guide – Part 10: Rewrite to modify a Magento controller

How to make a rewrite of a controller ? Because your module will not know where to search for your extended class…you have to make a require in your controller. require_once “Mage/Checkout/controllers/CartController.php”; This gives you something like: require_once “Mage/Checkout/controllers/CartController.php”; class Pfay_Checkout_CartController extends Mage_Checkout_CartController {     # Rewrite of indexAction     public function indexAction() {         die(‘your method has been rewrited !!’);     } } The require_once is important if your ...

Read More »