Re - Authorize + Order Editor + Grid manager + Invoice Editor

Extension Name

Re - Authorize + Order Editor + Grid manager + Invoice Editor

( https://www.magentocommerce.com/magento-connect/re-authorize-order-editor-grid-manager-invoice-editor.html)

Developer

MageExtensions

Version

Oeditor Ordereditor 1.4.1

Issue Status

The issue is not related to MageRewards. Even default Magento JS is duplicated without ST active which could cause doubled operations (performance issue) and/or infinite js loops (see image below). We've contacted the module developers and mentioned them the issue.

Problem

It duplicates our js.phtml file and also default Magento javascript.

Resolution

We added failsafe  inside our js.phtml to not render twice.

  1. Edit /app/design/adminhtml/default/default/template/rewards/sales/order/create/search/js.phtml
  2. Before
    <div id="product_rewards_configure_modal" style="display:none;"></div>
    add the code below
    <?php
    $rewardsJsLoadContentFlag = false;
    
    if (!Mage::registry('rewards_adminhtml_order_create_js_load')) {
        $rewardsJsLoadContentFlag = true;
        Mage::register('rewards_adminhtml_order_create_js_load', true);
    }
    ?>
    <?php if ($rewardsJsLoadContentFlag) : ?>
  3. At the end of the file add the code below.
    <?php endif; ?>
  4. Upload the file
  5. Flush all Magento Cache and 3rd party caches if installed

Still need help? Get Help Get Help