• 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

Laravel Delete and Update

Show only featured products in Woocommerce shop page

Laravel Jetsream Profile page not loading on fresh install

How to test laravel controller method?

passwordless LDAP login and get user information using Kerberos ticket in PHP

Can I use a WooCommerce function without any WooCommerce page?

Laravel 5 session not persisting after user is logged in

How to access a var with "-" in PHP [duplicate]

Transform array, set each array element with parent key php

Warning: mysqli_stmt::bind_param(): Number of elements in type definition string doesn't match number of bind variables 11 [closed]

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

PHP password_verify

find in set in laravel ? example

How to change product Image when variables are selected in Shop and Archive Pages?

How to Make Laravel Eloquent "IN" Query?

About Contact Privacy policy Terms and conditions