0

enter image description here

My code:

xml code:

<?xml version="1.0"?>
<layout version="0.1.0">
<adminhtml_sales_order_create_index>        
    <reference name="root">
        <block type="clientpo/adminhtml_sales_order_create_client" template="clientpo/client.phtml" name="client" after="form_account" />
 </reference>
</adminhtml_sales_order_create_index>
</layout>

Block code:

<?php

class Module_Clientpo_Block_Adminhtml_Sales_Order_Create_Client extends    Mage_Adminhtml_Block_Sales_Order_Create_Abstract
{
}
?>

Phtml code:

<?php echo "Hii";?>

But its not working where i am wrong?

1 Answer 1

1

xml code

<?xml version="1.0"?>
<layout version="0.1.0">
    <adminhtml_sales_order_create_index>
        <reference name="data">
            <block type="clientpo/adminhtml_sales_order_create_client" template="clientpo/client.phtml" name="client" after="form_account" />  
        </reference>
    </adminhtml_sales_order_create_index>
</layout>

add childHtml block in phtml file app\design\adminhtml\default\default\template\sales\order\create\data.phtml

<div id="order-form_account"><?php echo $this->getChildHtml('client') ?></div>
2
  • I want to add without add getChildhtml so is it posssible?
    – Newbie
    Commented Nov 25, 2015 at 7:54
  • I think not posssible
    – Abdul
    Commented Nov 25, 2015 at 7:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.