• 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

Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

Symfony/Form add attribute based on the data

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

How do I Post to .txt document before form submits

How to install php_imagick on wamp64

Remove product downloads section in woocommerce email notifications

Laravel 8 factory state afterCreating

How do I call a php file with axios?

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Respond with status code 401 on authentication failure using Laravel and Passport?

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Laravel with App Engine Standard Class 'FacadeIgnitionIgnitionServiceProvider' not found

Insert a DIV after the 6th product only once in WooCommerce category archives

Get WooCommerce product variation attribute terms in admin products general box

How do I call Validator from a namespace with an already existing Validator class

About Contact Privacy policy Terms and conditions