I have recently set up a new magento store. Everything seems to be working apart from the most important thing, the add to cart button. It's odd because the smaller green add to cart buttons on the home page www.creations-online.co.uk work fine. However the larger orange add to car button on the individual product pages says error when pressed?!

I have tried starting again by re installing magento but it hasn't made any difference...

I can see an error message when I inspect with Google chrome either:

Failed to load resource: the server responded with a status of 404 (Not Found) http://www.creations-online.co.uk/index.php/creations/ajax/index/add/uenc/a…lvbmVyLTUwMG1sLmh0bWw_X19fU0lEPVU,/product/3368/form_key/dxLgYvodbd0VPQzZ/



http://www.creations-online.co.uk/index.php/creations/ajax/index/add/uenc/a…lvbmVyLTUwMG1sLmh0bWw_X19fU0lEPVU,/product/3368/form_key/dxLgYvodbd0VPQzZ/ 404 (Not Found)

I can't figure this out!

Thanks for reading, any help would be greatly appreciated.

This is from the button that works:



  • Looks like the module creations does not exist or does not have a route declared, or the ajax controller in the module is missing or the index action inside the ajax controller.
    – Marius
    Commented Mar 11, 2014 at 12:22
  • How can i fix this?
    – hacompany
    Commented Mar 11, 2014 at 17:32

1 Answer 1


The url looks wrong:


Normally the url has this structure:


But your url has four parts, so either the package's name is creations_ajax or the controller is Ajax/IndexController.php or the action is indexAddAction? Whatever it is, happy fixing.

  • I still can't figure this out?!
    – hacompany
    Commented Mar 12, 2014 at 8:24
  • What is the name of the package you want to call? The name of the controller and the name of the action? Commented Mar 12, 2014 at 8:55
  • i've added the command from the button that works, i have just added it to me original question as it wouldn't fit in this box!
    – hacompany
    Commented Mar 13, 2014 at 9:49
  • I can see the difference i need to change the /ajax/index/ part with /checkout/cart/ But where do I do this in magento?
    – hacompany
    Commented Mar 13, 2014 at 10:01
  • Try this: Mage::helper('checkout/cart')->getAddUrl($_product); Commented Mar 13, 2014 at 11:03

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.