• 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

How do I pass the dynamic output of a php variable or php function to a CSS variable?

How To Access A Column In M-M Relationship Table In Laravel

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

Target Individual Form Instance/Counter Inside A PHP While Loop

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

advanced custom fields wordpress custom class

Send same name multiple checkbox values via ajax

Error Class "LaravelFortifyFeatures" not found

GuzzleHttp Hangs When Using Localhost

Remove categories with all childs derived from parent category

How to write PHP in XSLT

I cannot create a auto generated date time in mysql workbench

How to execute sql code based on fetch array

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

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

About Contact Privacy policy Terms and conditions