Thursday, July 5, 2012

Magento 1.6.1.0 : Custom option values not displaying at Orders in the Admin Page

In Magento 1.6.1.0 , when a product with custom option is ordered, the custom option values which are selected by customer do not display in  Orders in the Admin Page.( Sales >> Orders ). Also it is not displayed in the Invoice too.
But the values are visible at the order mails . Also when we will try to edit the order at Admin Orders itself, we will be able to see the values which are chosen by custome.

A simple solution to fix this bug:

Comment this line
<?php //$_option = $this->getFormattedOption($_option['value']); ?>

at line 44
in file "/app/design/adminhtml/default/default/template/sales/items/column/name.phtml"


ENJOY!!!!!!!!!

Wednesday, July 4, 2012

Magento : Inject custom module block to other modules

Magento inject custom module block to any module code sample



<firecheckout_index_index>

       <reference name="checkout.onepage.review.info.items.after">

           <block type="sendfriend/send" after="media"  name="sendfriend.send" template="sendfriend/send.phtml" />

       </reference>

   </firecheckout_index_index>