• 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

Server-sent events in PHP (without echo or print)

ORA-12546: TNS:permission denied error connection to remote oracle server

How to get total pages of PDF with FPDF?

Access denied for user 'homestead'@'localhost' (using password: YES)

XDebug not working in VScode for php debugging

PHP web3 ERC20 token function call

enroll_table three field fetch to payment form to create payment field in laravel 5.5

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

Invalid value in field "itemtype" in Google Search Console

php 7 php.ini upload_max_filesize not working

Laravel update hasMany relationship using saveMany

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

What is my SQL missing?

How to test a php login connected to a mysql db through xampp?

Laravel Excel::store file empty after stored

About Contact Privacy policy Terms and conditions