• 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

What is my SQL missing?

disable two buttons after clicking another button

Adding Multiple Custom Post Types in Wordpress

PHP Discord OAUTH2 code sample not working

Laravel Get Days In Month From Month Number?

How to run a shell as root from php (apache)

Only on Firefox "Loading failed for the <script> with source"

Display a success custom notice after Placing an Order in WooCommerce

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

Sentry + Laravel: how to log an already catched Exception?

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

How to fix Call to undefined method AppModelsTableName::factory?

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

Change user role if checkout custom checkbox is checked in WooCommerce

shell errors running php exec

About Contact Privacy policy Terms and conditions