• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Store / Website Column in Magento 2 Admin Grid - Custom Module

phpmysqlmagento2


PHP Snippet 1:

 /**
 * Check is single store mode
 */
 if (!$this->_storeManager->isSingleStoreMode()) {
    $this->addColumn(
        'store_id',
         [
             'header' => __('Store View'),
             'index' => 'store_id',
             'type' => 'store',
             'store_all' => true,
             'store_view' => true,
             'sortable' => false,
             'filter_condition_callback' => [$this, '_filterStoreCondition']
            ]
        );
    }

Related Snippets

dompdf and img tag, image wont show

PHP array, move keys and values to new array, but mix it up

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

MongoDB Duplicate Documents even after adding unique key

Natural ORDER in Laravel Eloquent ORM

How to retrieve Active Directory group policy maximum password age using LDAP

WHERE IN array binding in DB::raw laravel 5.4

How do I call a php file with axios?

How to get multiple values with same key from an array PHP

CONCAT columns with Laravel 5 eloquent

Installing Composer - Internal Error

Wordpress add responsive srcset header image to theme

About Contact Privacy policy Terms and conditions