• 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

Set quantity minimum, maximum and step at product level in Woocommerce

Get latest Tweets - What API

I want a way to give path to my files which are outside of public folder in laravel

Display a success custom notice after Placing an Order in WooCommerce

Star rating with half star support

Laravel: Why is my variable not being set while it's in the construct function of the controller?

Laravel get user data with profile

PHP Discord OAUTH2 code sample not working

Testing subscription renewals on Stripe

How to use React Router with Laravel?

Elastic Beanstalk with Laravel Envoy

Issue with laravel eloquent model property

How to solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

how to check version of codeigniter framework?

oauth-private.key does not exist or is not readable

About Contact Privacy policy Terms and conditions