- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: checkout problems 1.9
Hi,
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.
Magento Certified Developer Plus | www.iwebsolutions.co.uk | Magento Small Business Partner
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: checkout problems 1.9
<?php echo $this->getBlockHtml('formkey') ?>
Needs to be added within the form tags on the checkout pages.
http://stackoverflow.com/questions/30012170/after-upgrading-to-to-1-9-from-1-7-new-order-not-saving
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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">
//<![CDATA[
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'));
//]]>
</script>
Notice it now has a form key.
Regards,
Andy
www.iwebsolutions.co.uk | Magento Small Business Partner
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content