• 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

Show rotation of tweets using current day of month

Implode columnar values between two arrays into a flat array of concatenated strings

hidden INPUT value not available in $_POST

User pool client {id}does not exist

Laravel Passport - Not able to get token string in response?

Convert string to lowercase AND then convert it to its original form in PHP, is it possible?

Laravel eloquent update record without loading from database

how to upload binary image to sql server using php laravel

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

Get keys from associative array [duplicate]

Select option menu read from database and use it's values

How do I remove this delivery notification from here?

PHP: convert all UTF-8 characters to HTML entities

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Woocommerce redirect after add-to-cart error

About Contact Privacy policy Terms and conditions