Re - Authorize + Order Editor + Grid manager + Invoice Editor
Extension Name
Re - Authorize + Order Editor + Grid manager + Invoice Editor
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.
- Edit /app/design/adminhtml/default/default/template/rewards/sales/order/create/search/js.phtml
- 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) : ?>
- At the end of the file add the code below.
<?php endif; ?>
- Upload the file
- Flush all Magento Cache and 3rd party caches if installed