1

I would like to rewrite checkout router and have my own controller.

like this mysite.com/checkout/mycontroller/myaction

How can this be possible in magento.

<frontend>
    <routers>
        <checkout>
            <args>
                <modules>
                    <My_Checkout before="Mage_Checkout">My_Checkout_Checkout</My_Checkout>
                </modules>
            </args>
        </checkout>
    </routers>
</frontend>

Which does not work.

What is configuration for this.

1 Answer 1

0
<My_Checkout before="Mage_Checkout">My_Checkout_Checkout</My_Checkout>

should be

<My_Checkout before="Mage_Checkout">My_Checkout</My_Checkout>

and your controller should go into My/Checkout/controllers/ folder.

2
  • i had that previousl which did not work . Should the folder structure for module then be app/code/local/My/Checkout/controllers/MyController.php or app/code/local/My/Checkout/controllers/Checkout/MyController.php Nov 25, 2015 at 15:22
  • app/code/local/My/Checkout/controllers/MyController.php
    – Marius
    Nov 25, 2015 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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