• 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

How to install php_imagick on wamp64

Laravel post contact form giving me error 419

The "client_reference_id" argument is not passed

I want to display a sweetalert after the inserting of data in my database

How To Access A Column In M-M Relationship Table In Laravel

Filter WooCommerce related products by Polylang language

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

Error loading MySQLdb Module 'Did you install mysqlclient or MySQL-python?'

Laravel 5 session not persisting after user is logged in

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

MySQL default time format UTC or GMT?

OAuth2 Token PHP

Why "Class 'GuzzleHttpClient' not found" even after Installing it in Laravel?

json_encode turns array into an object

Webscraping Symfony/Panther: Can't get HTML

About Contact Privacy policy Terms and conditions