• 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

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

PHP: PDO + CSV export not downloading (headers issue?)

PHP how to detect if running on arm64 cpu?

How to insert data from multiple select dropdown values into database?

Remove country code from phone number?

Upload a file Using PHP and JavaScript

PHP rotate matrix counter-clockwise

json_encode turns array into an object

Parsing JSON File to array in PHP

PHP usort() order in case of equality

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

PHP mail sending empty mails

PHP Deprecated issue when running artisan command

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

Unable to Edit config.inc.php

About Contact Privacy policy Terms and conditions