• 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

Using Associative arrays

GuzzleHttp Hangs When Using Localhost

find in set in laravel ? example

PHP mail function is sending blank message body

How to debug in WooCommerce 3+

array_map triple dimensional array [duplicate]

Override default Auth routes in Laravel 7

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

WordPress Subquery returns more than 1 row on SELECT

correct PHP headers for pdf file download

Where do I need to place a hook for phpunit?

How can I make Laravel return a custom error for a JSON REST API

Laravel Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) on a sub query with "ROW_NUMBER() OVER PARTITION"

Live search query using JS and PHP for QA forum

How to install php_imagick on wamp64

About Contact Privacy policy Terms and conditions