• 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

AJAX call fails with SyntaxError: Unexpected end of JSON input

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

How to get the total hour from starting time to end time in php

get folder directory from input type file - PHP

Creating Combinations of Elements

Encrypt in php and decrypt in Dart(flutter)

Filter WooCommerce related products by Polylang language

get data-value with variable value

how to pass row id in href of a tag in codeigniter controller?

Laravel display validation error

How to fix bootstrap multiselect search data using ajax

Submitting a form with ajax in Wordpress

PHP error: "The zip extension and unzip command are both missing, skipping."

Detect emoticons in string

How to find the date a user created their Google account

About Contact Privacy policy Terms and conditions