• 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

Yii2 redirecting to previous page after login

PHP - CURL using HTTPS [closed]

getting error while enter Command => php artisan route:list

How to display table header in every page using FPDF library?

How to add class name to an existing tag in php

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

Get all WooCommerce products within own plugin

backup files to google drive using PHP

How to edit Records using CodeIgniter

Ajax GET request fails in laravel 8

What is the function of the (new Date()).getTime() in PHP?

how to search for a file with php

Cut an arabic string

backup files to google drive using PHP

Trying to iterate over a mongodb cursor twice - failing

About Contact Privacy policy Terms and conditions