I found a minor bug in Magento’s admin layout, when a giftcard amount is refunded. When you are creating your refund, the giftcard amount is displayed. But, if you update quantities or when you display your creditmemo, the giftcard amount is not displayed.

You can find the bug on the giftcard admin layout file : “app/design/adminhtml/default/default/layout/enterprise/giftcardaccount.xml”, look for this code :

    <adminhtml_sales_order_creditmemo_updateqty>
        <reference name="invoice_totals">
            <block type="adminhtml/sales_order_totals_item" name="giftcardaccount" template="enterprise/giftcardaccount/sales/creditmemo/totals/giftcardaccount.phtml" after="-">
                <action method="setBeforeCondition"><param>customerbalance</param></action>
            </block>
        </reference>
    </adminhtml_sales_order_creditmemo_updateqty>

    <adminhtml_sales_order_creditmemo_view>
        <reference name="invoice_totals">
            <block type="adminhtml/sales_order_totals_item" name="giftcardaccount" template="enterprise/giftcardaccount/sales/creditmemo/totals/view.phtml" after="-">
                <action method="setBeforeCondition"><param>customerbalance</param></action>
            </block>
        </reference>
    </adminhtml_sales_order_creditmemo_view>

The “reference name=” tag is not correct, make this change :

    <adminhtml_sales_order_creditmemo_updateqty>
        <reference name="creditmemo_totals">
            <block type="adminhtml/sales_order_totals_item" name="giftcardaccount" template="enterprise/giftcardaccount/sales/creditmemo/totals/giftcardaccount.phtml" after="-">
                <action method="setBeforeCondition"><param>customerbalance</param></action>
            </block>
        </reference>
    </adminhtml_sales_order_creditmemo_updateqty>

    <adminhtml_sales_order_creditmemo_view>
        <reference name="creditmemo_totals">
            <block type="adminhtml/sales_order_totals_item" name="giftcardaccount" template="enterprise/giftcardaccount/sales/creditmemo/totals/view.phtml" after="-">
                <action method="setBeforeCondition"><param>customerbalance</param></action>
            </block>
        </reference>
    </adminhtml_sales_order_creditmemo_view>

Don’t forget to clear the cache !

Magento bug when displaying creditmemo with giftcard
Share on FacebookTweet about this on TwitterShare on Google+Email this to someone
Tagged on:                     

Leave a Reply

Your email address will not be published. Required fields are marked *

We use cookies to ensure that we give you the best experience on our website.
Ok