• 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

Unit (real unit test) of test laravel relationship

How to give apache permission to write to home directory?

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

Mysqli Output to a table

PHP contact form configuration [duplicate]

Laravel after login Two factor not working

Unable to run composer install

Update Total in checkout of Woocommerce with Ajax Request

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?

Transpose csv file data [duplicate]

Image upload not working through ajax Laravel

Laravel Multi-language routes without prefix

I want to display default profile image if user do not have profile image

Creating command to backup MySql database in Laravel

About Contact Privacy policy Terms and conditions