• 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

Wordpress wpdb->delete issue

How to install php_imagick on wamp64

Why do I have invalid argument supply for foreach in Laravel for json response? [duplicate]

How update php.ini on a Mac OS X Mojave?

How to loop sql table data inside a html table

How to get company posts from LinkedIn via API?

PHP: remove filename from path

Timber: Single post pagination does not work (wp_link_pages)

Inserting Country Selection into MySQL PHP [duplicate]

In PHP, which is faster: preg_split or explode?

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

CodeIgniter 4: Like and Dislike Functionality

Upload a file Using PHP and JavaScript

dockerizing Laravel + vue

How to get total pages of PDF with FPDF?

About Contact Privacy policy Terms and conditions