• 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

Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model

I want to store data in new index as per my key in php [duplicate]

Display the WooCommerce product price inside a custom function

Distribute array row data to make multiple new rows

PHP mail function is sending blank message body

Inserting data into SQL Server Db An Invalid direction was specified

MISSING UPDATES FOR: MEDIA Drupal 9

Input and output values for php into the browser?

image source not readable

Laravel SQL query midnight time not showing

Dropdown with current value from Mysql

(Cache::lock()) -> get() -- Under what conditions does it return false?

Reorder attribute dropdown terms in Woocommerce single variable products

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

The "client_reference_id" argument is not passed

About Contact Privacy policy Terms and conditions