• 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

Facebook API, get page post link (PHP)

Hide specific products from unlogged users based in product category in WooCommerce

wordpress : How to specify the cause "This site can’t be reached"

Laravel Factory not calling callback 'afterCreating'

How to get page number on dompdf PDF when using "view"

How to extract price from given url using Xpath?

500 (Internal Server Error) with Laravel & Docker [duplicate]

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

Smarty if isset

get folder directory from input type file - PHP

Convert string to lowercase AND then convert it to its original form in PHP, is it possible?

How can I easily switch between PHP versions on Mac OSX?

How to reset Laravel AuthManager/guards in between API calls in tests?

Xdebug 3 not showing in phpinfo on m1 Monterey

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

About Contact Privacy policy Terms and conditions