• 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

Detect emoticons in string

how to upload binary image to sql server using php laravel

Why does using salted hash on python and php give me different results?

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

PHP Imap , php 7.4.3 on mac osx catalina

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

Laravel query builder binding parameters more than once

Add custom text under order details on WooCommerce My account view order pages

Ajax GET request fails in laravel 8

Laravel no logout option from menu after successfull login

Call to a member function fetch_field() on a non-object MySQLiDB

Undefined Array Key error when uploading image on php

PHP - Store information with NO database

MySQL default time format UTC or GMT?

About Contact Privacy policy Terms and conditions