• 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 to use extended ASCII instead of unicode in PHP

PHP mail function is sending blank message body

Why does codeigniter & Linux server throws unserialize() session data error when user tries to login

PHPExcel_IOFactory::createWriter causes wrong behaviour

Problem with fetching data from database in Laravel

Currently Using CodeIgniter Framework i have an Error

Form Validation and Submission to database

How to fix bootstrap multiselect search data using ajax

How to put php code inside opening and closing shortcodes

Group rows by column and sum another column within groups [duplicate]

how to remove white space in select 2

Can I write PHP code across multiple lines per statement?

Image upload not working through ajax Laravel

How to extract price from given url using Xpath?

how to redirect the user back to desired URL after login page in PHP?

About Contact Privacy policy Terms and conditions