• 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

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Get sum of arrays inside array

Show date difference as "20" instead of "20 years ago"

PHP contact form configuration [duplicate]

protect images from being copied

Find out the name of the last script that included the current one

Don't show recurring price for WooCommerce subscriptions worth 0$

I can't delete my image when it is liked because of the foreign key in mysql

how to get value from array in laravel

Remove categories with all childs derived from parent category

Must be of the type array, null given,

Problems getting instance of UploadedFile in Yii2

PHP function Not Working As Expected From functions.php Include File

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

About Contact Privacy policy Terms and conditions