• 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

Best way to scrolldown onpageload

Elastic Beanstalk with Laravel Envoy

How to Make Laravel Eloquent "IN" Query?

Natural ORDER in Laravel Eloquent ORM

How To Access A Column In M-M Relationship Table In Laravel

Laravel 5.2: Unable to locate factory with name [default]

How to remove from a multidimensional array all duplicate elements including the original?

Hide specific products from unlogged users based in product category in WooCommerce

How to make autocomplete work in foreach php loop? (vscode, intellisense)

selected value from the listbox in php

How in Laravel run JavaScript code stored in php variable?

how to youtube api data to print in toolset metabox using a button click before save-post

PHP drop down list using array's and foreach (else and for) code

protect my blog content

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

About Contact Privacy policy Terms and conditions