• 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 display validation error

How to make autocomplete work in foreach php loop? (vscode, intellisense)

Sagepay Error The Vendor failed to provide a RedirectionURL

Converting array to string and then back in PHP

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

Unsure why I am getting: Number of variables doesn't match number of parameters in prepared statement

Laravel: HTML in notification

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

PHP - installing Xdebug on Mac with XAMPP (Unix File)

PHP Form Not Inserting

advanced custom fields wordpress custom class

Laravel Displaying image from database

Symfony Mercure "Failed to send an update"

How to create custom authentication in laravel 8?

Cannot pass null argument when using type hinting

About Contact Privacy policy Terms and conditions