in Magento, Programming

Magento 1.9 upgrade template changes needed

The main things I’ve found on upgrading:

Form Keys
Form keys are required on all the forms so in update cart,login,register etc…

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

Checkout SSL
If your on Nginx and have the redirect issue using SSL it’s because you forgot to add this in index.php

if( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) ) {
 if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
 $_SERVER['HTTPS'] = 'on';
 $_SERVER['SERVER_PORT'] = 443;
 }
}

Custom templates not loading

Make sure they are surrounded by the <cms> tag in your config.xml

<config>
 <global>
 <cms>
 <layouts>
 <new_template1>

Passwords disappearing
I had to enter all the configuration password info again e.g for Mandrill, Fishpig wordress, centinel 3ds etc.. Not sure if that’s because of the way I upgraded

Payment Gateways
Even re-entering and saving the data did not work here , I had to delete all data > save and then re-enter the data.

Review step not place order not working

Make sure your template looks like this

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

 

Write a Comment

Comment

  1. Hi for the last statement in your article: “Review step not place order not working”, what is the path of this template file? I wasn’t sure where I was looking for that code.

  2. Hi, my order is not saving. i have made people can pay using paypal, or sagepay but customer data is not saving e.g product he bought or order details. I can’t see anything at backend about this sale.
    can you please tell me which file name (path) and what value to add on which line. thanks

    sorry i am new to magento.