• 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

api response laravel doesn't show

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

Split a string array into pieces

Reading input in php from terminal

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

PhP how to calculate moments with variables rows

Change the alert text on add to cart action without selected variation in Woocommerce

Smarty if isset

sort() not affecting original array while inside foreach loop

Google Calendar API batch request PHP

Cut an arabic string

Make certain characters of a word from string bold

php mysql + create a friend request system

How to keep value of selected value after form submission?

About Contact Privacy policy Terms and conditions