Link to shipment page in Magento Order Grid

Tags:

  • coding
  • general
  • magento
  • php
  • programa
  • software
  • tips
Link to shipment page in Magento Order Grid

Link to shipment page in Magento Order Grid

Hey folks. How about a good “tweak” for Magento? This tweak will add a link on the orders grid that takes you directly to shipment page. Coo, right? Take a look how it looks:

grid

It’s pretty simples, just copy the file app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php to app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php and open it, now, search for this term: if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) { and right before this part $this->addColumn('action', paste the below code:

// add link $this->addColumn('ship', array( 'header' => Mage::helper('sales')->__('Shipment'), 'width' => '50px', 'type' => 'action', 'getter' => 'getId', 'actions' => array( array( 'caption' => Mage::helper('sales')->__('Ship'), 'url' => array('base'=>'*/sales_order_shipment/new'), 'field' => 'order_id' ) ), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true, )); // end

Pretty simples, right? Cya

Did you like it? Why don't you try also...

Sending emails using NFePHP

Sending emails using NFePHP

Sending emails using NFePHP

Tags:

  • coding
  • email
  • emissor
  • emitir
  • enviar
  • general
  • nfe
  • software