• 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

Zig-zag scan an N x N array

Get lat/lon from google maps url ftid (hex)

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

Telegram bot doesn't answer

"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

how to search for a file with php

Where do I need to place a hook for phpunit?

Laravel UUID generation

Match single unknown parameter php (Morse-code Regex)

Dynamic table in HTML using MySQL and php

Add record for each array elements if missing in table

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

PHP/HTML: Creating A SubMenu

zsh: command not found: php

How to Generate PDF invoice to XML format using mPDF

About Contact Privacy policy Terms and conditions