• 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

Error when uploading certain .png files "Interlace handling should be turned on when using png_read_image"

Problem with fetching data from database in Laravel

Prevent blank space in pdf pages (DomPdf)

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

What is my SQL missing?

Encrypt in php and decrypt in Dart(flutter)

How to execute sql code based on fetch array

Submitting a form with ajax in Wordpress

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

How to debug in WooCommerce 3+

Adding Multiple Custom Post Types in Wordpress

MySQL order by field in Eloquent

Refresh specific HTML content that retrieves data from MySQL

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

add uri parameter to Route name in laravel

About Contact Privacy policy Terms and conditions