1

My Config.xml

<global>
      <admin>
                <routers>
                    <adminhtml>
                        <args>
                            <modules>
                                <product_warranty before="Mage_Adminhtml">product_warranty</product_warranty>
                            </modules>
                        </args>
                    </adminhtml>
                </routers>
            </admin>
</global>

My productcontroller.php

<?php
 require_once 'Mage/Adminhtml/controllers/catalog/ProductController.php';
// include_once("Mage/Adminhtml/controllers/Catalog/ProductController.php");
class Product_Warranty_Catalog_ProductController extends Mage_Adminhtml_Catalog_ProductController
{

    public function saveAction()
    {


        echo "pankaj"; die;

     }
}

Not working..whats wrong with my code.....

2
  • remove <global> tag and then try Commented May 24, 2016 at 7:36
  • also add the Productcontroller.php file path Commented May 24, 2016 at 7:42

1 Answer 1

1

remove <global> tag and replace

<product_warranty before="Mage_Adminhtml">product_warranty</product_warranty>

with

 <Product_Warranty before="Mage_Adminhtml">Product_Warranty</Product_Warranty>

Not the answer you're looking for? Browse other questions tagged or ask your own question.