*/ class Mage_Adminhtml_Block_Sales_Order_Create_Sidebar extends Mage_Adminhtml_Block_Sales_Order_Create_Abstract { protected function _prepareLayout() { if ($this->getCustomerId()) { $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array( 'label' => Mage::helper('sales')->__('Update Changes'), 'onclick' => 'order.sidebarApplyChanges()', 'before_html' => '
', 'after_html' => '
' )); $this->setChild('top_button', $button); } if ($this->getCustomerId()) { $button = clone $button; $button->unsId(); $this->setChild('bottom_button', $button); } return parent::_prepareLayout(); } public function canDisplay($child) { if (method_exists($child, 'canDisplay')) { return $child->canDisplay(); } return true; } }