Magento 1.8.1 Javascript Undefined error when placing order

I just recently upgrade one of my magento ecommerce website from 1.7.x to 1.8.1 and one of my customer feedback that he encounter a javascript undefined error upon checkout.

After some comparison with the base folder of magento 1.8.1, i figured out that you need to amend the following page.

app/design/frontend/default/THEME_NAME/template/checkout/onepage/review/info.phtml

Search for the following line or similar

echo $this->getUrl('checkout/onepage/saveOrder');

and change it to

echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey()));

Similar Posts:

VN:F [1.9.22_1171]
Rating: 5.5/10 (2 votes cast)
Magento 1.8.1 Javascript Undefined error when placing order, 5.5 out of 10 based on 2 ratings