• 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

Transpose csv file data [duplicate]

How to install php_imagick on wamp64

Change the alert text on add to cart action without selected variation in Woocommerce

Implode array with array of glue strings

Laravel 5.5 change unauthenticated login redirect url

Applying programmatically a coupon to an Order in WooCommerce3

google content api for shopping

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

Reload parent page after submit in iframe

How to edit Records using CodeIgniter

Laravel php artisan serve to mimic HTTPS

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

Match csv filenames to table names and import

How to install LDAP in Docker php-fpm alpine

PHP date() with timezone?

About Contact Privacy policy Terms and conditions