• 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

How to send upload image through email

Laravel insert dynamic input values with radio button

Inserting Country Selection into MySQL PHP [duplicate]

How to reset Laravel AuthManager/guards in between API calls in tests?

Fatal error: [] operator not supported for strings

Unable to uninstall brew php from homebrew

Invalid value in field "itemtype" in Google Search Console

Symfony there are no commands defined in the "make" namespace

Converting array to string and then back in PHP

Add record for each array elements if missing in table

PHP using str_starts_with for array to exclude same as with wildcard

image source not readable

generate an Excel file using PHP

Printing more than one array using print_r or any other function in php

auth pages not getting css in laravel

About Contact Privacy policy Terms and conditions