• 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

SilverStripe unable to populate multiple member Childs

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

PHP my timezone is no setting up in PHP.ini File in xampp

Symfony process run throws exception - executing on command line works

How to Generate PDF invoice to XML format using mPDF

What is PHP's equivalent of JavaScript's "array.every()"?

How can I create a Download Page with post php method?

CodeIgniter 3 is generating a session file on each request, why?

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

Remove product downloads section in woocommerce email notifications

Open a popup box after receiving result from ajax

Prestashop cUrl Login

php - add comma thousands separator but remove trailing zeros

About Contact Privacy policy Terms and conditions