Tag Archives: order

  • Orders2CSV item not showing in order grid

    Posted on June 25, 2012 by ext4mage

    Problem:
    The Orders2CSV in not showing up in the massaction dropdown menu on order grid.

    Solution:
    If you are using Orders2CSV PRO - just upgrade to newest version. Below solution is only working for free version.

    Most common reason for this error, is that another extension is also overwriting the "Mage_Adminhtml_Block_Sales_Order_Grid" function _prepareMassaction. What you can do is either to call my Grid (Ext4mage_Orders2csv_Block_Sales_Order_Grid) from that extension, or call that other extension from the file Ext4mage_Orders2csv_Block_Sales_Order_Grid. Alternative you can also include Orders2CSV functionality into the other function or vice versa.

    Example:
    Other module code add into Orders2CSV _prepareMassaction function:

    protected function _prepareMassaction()
    {
      parent::_prepareMassaction();
      if (Mage::getStoreConfig(self::XPATH_CONFIG_SETTINGS_IS_ACTIVE)) {
         $this->getMassactionBlock()->addItem('orders2csv', array(
           'label'=> Mage::helper('sales')->__('Orders2CSV'),
           'url' => $this->getUrl('*/sales_order_orders2csv/makecsv'),
         ));
         // Below is the other Extension code
         $this->getMassactionBlock()->addItem('delete_order', array(
           'label'=> Mage::helper('sales')->__('Delete order'),
           'url' => $this->getUrl('*/sales_order/deleteorder'),
         ));
      }
    }

    Related product:

    Orders2CSV PRO extension


    This post was posted in FAQ and was tagged with order, orders2csv, orders2csvpro, orders2CSV PRO, grid

  • Order PDF error when preview

    Posted on May 23, 2012 by ext4mage

    When pressing preview of a order PDF template gives error

    Problem:
    Error is thrown when trying to preview a HTML2PDF order template, with the error code: Fatal error: Call to a member function children() on a non-object in app/code/community/Ext4mage/Html2pdf/Model/Order/Pdf/Abstract.php on line 47

    Solution:
    Upgrade HTML2PDF to the latest version - this is now handled within the extension.

    Related product:
      HTML2PDF extension


    This post was posted in FAQ and was tagged with html2pdf, magento, pdf, order, print

2 Item(s)