• 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

Laravel multi auth - Authentication user provider [] is not defined

How do I get friend list from Friends table with counts of friends of my friends

Use Python plotly chart in PHP

Parameter is not sent to Laravel route in Ajax

Add Class in html Dynamically in PHP

How to make a array inside array?

How to convert a carbon into string, to take the date only?

Unable to Edit config.inc.php

protect my blog content

Mysqli Output to a table

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

Download & Save Zoom Recording in directory by PHP

Hide email address with stars (*)

Convert PHP array into HTML tag attributes separated by spaces

TesseractOCR not working for Laravel

About Contact Privacy policy Terms and conditions