Question: Add and edit update custom block admin sales order page

Question

Add and edit update custom block admin sales order page

Answers 0
Added at 2016-12-22 12:12
Tags
Question

I am newly magento developer i work on sales order page custom form display. i work on demo code but not working. Please help me...

app/design/adminhtml/default/default/layout/vendor.xml

    <?xml version="1.0" encoding="UTF-8"?>

<layout>
  <adminhtml_sales_order_view>
    <reference name="order_info">
      <block type="vendor/adminhtml_sales_order_view_info_block" name="vendor.order.info.custom.block" template="vendor/custom.phtml" before="order_info"/>
    </reference>
  </adminhtml_sales_order_view>
</layout>

2. app/design/adminhtml/default/default/template/vendor/custom.phtml

    <?php $order = $this->getOrder(); ?>

<div class="entry-edit box-left">
  <div class="entry-edit-head">
    <h4 class="icon-head"><?php echo $this->__('My Custom Field') ?></h4>
  </div>
  <fieldset>
<div class="" id="vendor_custom_block">
special message...
</div>
  </fieldset>
</div>
Answers
Source Show
◀ Wstecz