Showing results for 
Search instead for 
Did you mean: 

checkout problems 1.9

checkout problems 1.9

Hi there, this morning we upgraded our magento site from 1.7 to 1.9.

I've fixed several know issues but can't seem to fix the checkout problem.


I know that i've need to adjust several template files

(because its a 1.7 theme which doesn't work with 1.9).


But which code do i search for and with what do i have to replace it with.


Hope someone can point me in the right direction!


Re: checkout problems 1.9


The main change from 1.7 > 1.9 will be the form keys on the frontend.


Basically anywhere you have a <form> you will need to add a form_key too now. The form key takes the form of a hidden input field -you can copy this form the base templates and you should be good to go.


Good luck.

Problem solved? Click Accept as Solution!
Magento Certified Developer Plus | | Magento Small Business Partner

Re: checkout problems 1.9

<?php echo $this->getBlockHtml('formkey') ?>

Needs to be added within the form tags on the checkout pages.

Re: checkout problems 1.9

One place to check is the file located app/design/frontend/<package>/<theme>/template/checkout/onepage/review/info.phtml. If your theme overrides that file then you will need to make sure the js that instantiates the review looks like this in your theme file.


<script type="text/javascript">
review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));


Notice it now has a form key.




Problem solved? Click Accept as Solution! | Magento Small Business Partner

Re: checkout problems 1.9

Thnxs guys,


Seems like it is working again.

The last solution from Sm4rt1e worked!


grtz Oddlaw