• 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

PHP rotate matrix counter-clockwise

Having issue with matching rows in the database using PDO

javascript html popup window

"cannot list resources" error from WooCommerce REST API

MOODLE: What does it mean to aggregate h5p assets?

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

Laravel PHP: multiple project run at the same time [closed]

php echo xml documents with header

WHERE IN array binding in DB::raw laravel 5.4

PHP: Telegram Bot: Insert line break to text message

Issue saving card for customer

Adding Multiple Custom Post Types in Wordpress

"There is no active transaction" when refreshing database in Laravel 8.0 test

Two buttons one form

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

About Contact Privacy policy Terms and conditions