• 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

Laravel/docker-compose/redis - Class 'Redis' not found

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

RabbitMQ PRECONDITION_FAILED - unknown delivery tag

How to get values inside <![CDATA[values]] > using php DOM?

How to generate QR CODE for dynamic generating link and logo using Simple QrCode in laravel?

Encrypt in php and decrypt in Dart(flutter)

Wordpress how to get the post thumbnail inside a figure tag

How can I make good efficent AJAX live forms with just jQuery and

Mysqli multi query error

Laravel eloquent update record without loading from database

PHP password_verify

How to install LDAP in Docker php-fpm alpine

mysql_result is defined but mysql_free_result warns it expected a resource

Don't show recurring price for WooCommerce subscriptions worth 0$

Whats the point of running Laravel with the command 'php artisan serve'?

About Contact Privacy policy Terms and conditions