I'm developing an ajax request handling extension of the default cart controller. How do I find out the correct URL to use in order to send information back to the server?

the controller (CartController.php) class definition is:

require_once 'Mage/Checkout/controllers/CartController.php';
class CompanyName_Checkout_CartController extends Mage_Checkout_CartController{
    function couponPostAction(){

the config.xml will look something like:

                <companyname_checkout before="Mage_Checkout">Companyname_checkout</companyname_checkout>

Assuming the above is correctly configured... what will be the resultant URL I will use to reach this controller?

1 Answer 1


The URL to use will just be the default URL as you are simply telling Magento to load your controller first. Therefore, for the shown action the url is simply checkout/cart/couponPost.

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.