Magento – 2 Extensions using Sales Order Gri

Hi trying to get 2 extensions to work in the Sales Order Grid, Amasty’s Mass Order Actions and Orders2CSV.

As it stands Orders2CSV is on the list and works fine. It has the following code to overwrite the Sales_Order_Grid:

 * Ext4mage Orders2csv Module
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to Henrik Kier <> so we can send you a copy immediately.
 * @category   Ext4mage
 * @package    Ext4mage_Orders2csv
 * @copyright  Copyright (c) 2012 Ext4mage (
 * @license  Open Software License (OSL 3.0)
 * @author     Henrik Kier <>
 * */ class Ext4mage_Orders2csv_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid {  const XPATH_CONFIG_SETTINGS_IS_ACTIVE       = 'orders2csv/settings/is_active';

    protected function _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'),
        }     } } ?>

However MassActions has the following which I belive instead of overwriting the orignal block it is adding to it:

* @author Amasty Team
* @copyright Copyright (c) 2010-2011 Amasty (
* @package Amasty_Oaction
class Amasty_Oaction_Block_Adminhtml_Widget_Grid_Massaction extends Mage_Adminhtml_Block_Widget_Grid_Massaction
    public function isAvailable()
        Mage::dispatchEvent('am_grid_massaction_actions', array(
            'block' => $this,
            'page'  => $this->getRequest()->getControllerName(),

        return parent::isAvailable();

    public function getJavaScript()
        $result = new Varien_Object(array(
            'js'   => parent::getJavaScript(),
            'page' => $this->getRequest()->getControllerName(),

        Mage::dispatchEvent('am_grid_massaction_js', array('result' => $result));

        return $result->getJs();

Any idea how to add the MassAction code into the Orders2CSV code?

Any help would be greatly appreciated


Magento 2 installation error

I am trying to install magento2 in my localhost,i have also installed the composer.

But i am getting following error

Fatal error: Class 'MagentoFrameworkAutoloadAutoloaderRegistry' not found in C:xampphtdocsmagento2appautoload.php on line 40

i have goggled but everyone saying to install composer i have also checked whether composer is installed or not using composer -V and i am getting version of the composer

i have tried to re-install composer but it is showing

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files

How can I get product list with its detail in rest API backend is magento2

I’m working on native mobile application backend is magento2 and I want to display product after customer selected a category. I am able to get list of the product by category in rest request but that list don’t have much details about the product.

Request : http://localhost/magento2/index.php/rest/V1/categories/24/products

(24 is category ID)

Response : [{“sku”:”WH01″,”position”:1,”category_id”:”24″},…]

Earlier in Magento 1.9 product list was something like

    2: {
    entity_id: "2"
    type_id: "simple"
    sku: "Levis Bagpack"
    description: "Bagpack"
    short_description: "Bagpack"
    meta_keyword: null
    name: "Levis Bagpack"
    meta_title: null
    meta_description: null
    regular_price_with_tax: 45
    regular_price_without_tax: 45
    final_price_with_tax: 45
    final_price_without_tax: 45
    is_saleable: true
    image_url: ""

What should I do to get more info about product so I can show image and other things in mobile app ?

magento how to change session handler to memcached?

I am a newbie at Magento and my server’s default php session handler is memcached. I just installed Magento (version 2) and I keep getting error:

open(localhost:11211/sess_qmnpedun2j0ie0jed9g8r08pd0, O_RDWR) failed: No such file or directory

It is trying to use File Handler for Memcached sessions. How should I change it in Magento? Google-ing keeps telling me to go to local.xml and add the following:


But the problem is that, I don’t have MAGENTO_DIR/app/etc/local.xml, so I really don’t know what to do.

I installed Magento2 through the links given in their github page (command line install). The installation went successful and database and everything is created.

How can I change the session handler to use memcached in Magento-2?

LEMP – Magento displays blank page

Trying to setup Magento2 on my LEMP stack. Was following the instructions here and here (did that after compiling from sources for multiple time since it was hard to fulfill composer requirements for Magento2)

  • Installed composer
  • Configured and run php, php-fpm
  • Did some trivial tests (success)

However, a blank screen is all I get. The nginx configuration

server {
    listen   2000;

    root /usr/share/nginx/html/magento2;
    index index.php;

    location / {
            try_files $uri $uri/ /index.php;

    location ~ .php$ {

    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param           SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param           SCRIPT_NAME $fastcgi_script_name;
    include fastcgi_params;


The permission set is to -R 777 (test purpose only), user and group is www-data. Was able to run .php scripts, problem applies to Magento2.

Read also some related issues (without any positive results) :

Magento 2 static files not generated

Cloned Magento2 from github sources here :

The installation went fine. However some issues appeared when browser is downloading static files. Multiple files missing from:


The installation went fine, AFAIK all static files were loaded.


This might be somehow related but it seems that URL’s are not rewritten correctly – throwing 404 page. I guess there is some strong correlation, but I can’t see where exactly? Did some research (applied them) but without results