• 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 Post to .txt document before form submits

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

Laravel dosen't connect with Oracle

PhpSpreadSheet: How to save Workbook sheets in individual CSV files

How to redirect to another page and call a Function there on Angular ng-click

Add restriction to WooCommerce coupons by allowed user ID

How can i hide dt if dd got empty value

Minimum order amount except for specific shipping method in WooCommerce

Google API Heatmap Layer exception, why?

Using PHP to connect to a remote MSSQL database

How to create a cookie to store the timestamp of when a page is first loaded with php

Updating and Synchronizing Woocommerce Subscriptions to Custom Date

api response laravel doesn't show

How to run or debug php on Visual Studio Code (VSCode)

Insert And Retrieve Data in MySQL with $.post Noob Question

About Contact Privacy policy Terms and conditions