• 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

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

Laravel Database Strict Mode

php mysql + create a friend request system

How to display MySQL table using php and edit it in a web browser

PHPExcel_IOFactory::createWriter causes wrong behaviour

Spam Filter in Contact Form

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

WordPress Subquery returns more than 1 row on SELECT

How to pass security cloudflare server with php curl

Live search query using JS and PHP for QA forum

How to Make Laravel Eloquent "IN" Query?

Two buttons one form

No result using makeStyles Material UI in react 18

How to get the ID of the link in another page in php

How to assert parameter attribute sub-structures in PHPUnit mock call expectations

About Contact Privacy policy Terms and conditions