Magento Process Order Button Not Working

Ok,. so today’s fun lesson has to do with Magento CE, or community edition.

Recently there was a pile of patches released to stop bad guys from doing bad things with your magento store. We decided to upgrade to the latest stable release and opted for Magento CE 1.9.2 which includes these patches.

All went smoothly and everything seemed to be working fine then when a customer notified us that you couldn’t finish checking out I knew something was wrong.

After spending more than an hour it became obvious that something was wrong with the final step of check out and when you would press Process Order it would just reload the same screen.

We had created a full blown template with the file /default/{template}/template/checkout/onepage/review/info.phtml and in the upgrade process this was protected as it’s in our custom template folder, however the file functions related to that page have been updated in version 1.9.2.

To fix our problem I copied the line from /base/default/template/checkout/onepage/review/info.phtml to my custom template and it began working instantly.

:: review function 1.4
// review = new Review(‘getUrl(‘checkout/onepage/saveOrder’) ?>’, ‘getUrl(‘checkout/onepage/success’) ?>’, $(‘checkout-agreements’));

:: review function magento 1.9.2 ::
review = new Review(‘getUrl(‘checkout/onepage/saveOrder’, array(‘form_key’ => Mage::getSingleton(‘core/session’)->getFormKey())) ?>’, ‘getUrl(‘checkout/onepage/success’) ?>’, $(‘checkout-agreements’));

So simply comment out the old version if you’re in the same boat and update to the newer version.

Comments are closed.