Php – Magento One page checkout not working after upgrade to 1.8

magentopaypalPHP

I have upgraded my site to Magento 1.8. I didnt upgraded the magento using magento downloader. I have used fresh magento 1.8 and moved my skin to this version. Now everything working fine Except the one page checkout page. The checkout progress bar is updating as i complete steps and also the payment is working neither paypal not the creditcard. The place order button does nothing, the site is not directing to payment page.
Here are the couple of steps i have followed with no success
in /app/design/frontend/base/default/template/checkout/onepage/payment.phtm
i have changed this line

       <fieldset>
            <?php echo $this->getChildHtml('methods') ?>
         </fieldset>

to

        <fieldset id="checkout-payment-method-load">
                <?php echo $this->getChildHtml('methods') ?>
         </fieldset>

This didnt worked.
And also in
app/design/frontend/default/mobileshoppe/template/checkout/onepage/review/info.phtml

i have changed this line

    review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));

to

       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'));

Both didnt worked for me.
Is there any other solutions except this?
Can someone help me to fix this problem?

Best Answer

Replace the base file the following path app/design/frontend/default/your_theme/template/checkout/onepage/review/info.phtml

(or)

Replace the line number 81 in info.phtml by following code:

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

Related Topic