What are the peculiarities of installing the extension on older versions of Magento?

Magento 1.4.x and 1.5.x themes don't support adding buttons to customer account pages without modifying them or without replacing the template. However, adding the button manually doesn't require a lot of effort and you can do it by yourself:

  1. Additionally copy the contents of the folder install_14_15 to the root folder of your website — where your index.php is located;
  2. If there is no template /app/design/frontend/default/YOURTHEME/template/sales/order/info.phtml in your theme, copy it from /app/design/frontend/base/default/template/sales/order/info.phtml
  3. Open the file /app/design/frontend/default/YOURTHEME/template/sales/order/info.phtml in any text editor and after the line

    <div class="page-title title-buttons">
    

    insert the following code:

    <?php
    if (Mage::helper('etchangepaymentmethod')->isChangeMethodEnabledOnFrontend() &&
     Mage::helper('etchangepaymentmethod')->canChangePaymentMethod($_order)
     ):?>
    <span class="separator">|</span>
    <a href="#" class="link-print payment-method-button">
    <?php echo Mage::helper('etchangepaymentmethod')->__('Change payment method')?>
    </a>
    <?php endif;?>
    

Last modify date: Thursday, October 20, 2016