Magento One Page Checkout Not Working After Upgrade to 1.8
If you’ve recently upgraded your Magento site to version 1.8 but are now facing issues with the one page checkout not working properly, don’t worryâyou’re not alone. In this post, we’ll guide you through some common solutions and troubleshooting steps.
Understanding the Issue
After an upgrade from a previous version of Magento, you might encounter problems where:
- The checkout progress bar doesn’t update as you complete each step.
- The ‘Place Order’ button is unresponsive.
- Payment methods (like PayPal or credit card) don’t redirect to their respective pages.
Steps to Troubleshoot the Problem
1. Check for Incompatible Extensions
Before diving into code changes, ensure that none of your installed extensions are causing conflicts with Magento 1.8’s new features. Disable any third-party modules temporarily and see if the issue persists.
2. Verify File Permissions and Ownership
Incorrect file permissions can cause one page checkout to malfunction. Make sure all files within the mage folder have proper ownership and permissions:
cd mage
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
3. Update Your Theme Files
Some theme files might need to be updated or modified after the upgrade. Check if your current theme has been properly migrated and is compatible with Magento 1.8.
Editing Template Files for One Page Checkout
If the above steps don’t resolve the issue, you may need to make some template file changes. Here’s how you can do it:
Editing onepage/payment.phtml
Open the following file: app/design/frontend/base/default/template/checkout/onepage/payment.phtml.
Find this line:
<fieldset>
<?php echo $this->getChildHtml('methods') ?>
</fieldset>
And replace it with:
<fieldset id="checkout-payment-method-load">
<?php echo $this->getChildHtml('methods') ?>
</fieldset>
Save the changes and proceed to the next file.
Editing review/info.phtml
Now, open this file: app/design/frontend/default/mobileshoppe/template/checkout/onepage/review/info.phtml.
Locate this line:
review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements'));
And update it as follows:
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'));
Further Debugging Steps
If you’re still experiencing issues, consider enabling Magento’s logging to gain more insights:
- Open
app/etc/local.xml. - Find the
<global>section. - Add or modify the following lines:
<logs>
<log>
<active>true</active>
<model>var/log/mage-*.log</model>
</log>
</logs>
- Save and clear your cache using Magento’s built-in system.
The log files will provide more detailed information about any errors or warnings that might be preventing the one page checkout from working properly.
Conclusion
Fixing a broken one page checkout after upgrading to Magento 1.8 requires a systematic approach, combining general troubleshooting steps with specific file edits. Remember to always make a backup of your files before editing them directly.
If you’re still having difficulty, consider reaching out to Magento support or consulting the official Magento documentation for further assistance.
With proper troubleshooting and careful attention to detail, you should be able to get your one page checkout working smoothly on Magento 1.8 in no time.