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 Mar 11 '14 at 12:22
  • How can i fix this? – hacompany Mar 11 '14 at 17:32

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 Mar 12 '14 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? – Fabian Blechschmidt Mar 12 '14 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 Mar 13 '14 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 Mar 13 '14 at 10:01
  • Try this: Mage::helper('checkout/cart')->getAddUrl($_product); – Fabian Blechschmidt Mar 13 '14 at 11:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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