• 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 | "The requested PHP extension bcmath is missing from your system."

How to fix bootstrap multiselect search data using ajax

Filter WooCommerce products with post__in and additional meta queries

Form repeater send wrong data with last element in Laravel

Wordpress wpdb->delete issue

php echo remove slashes from url [duplicate]

PHP returning an error message and false

Laravel Route issues with Route order in web.php

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]

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

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

How to make dot match newline characters using regular expressions

generating a random code in php?

Laravel set default language not working

XDebug not working in VScode for php debugging

About Contact Privacy policy Terms and conditions