• 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

SQL to convert multiple rows into a single row of variable length

Center point of multiple gps coordinates with php

Laravel 8 factory state afterCreating

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

Correctly determine if date string is a valid date in that format

Open a popup box after receiving result from ajax

Laravel: Why is my variable not being set while it's in the construct function of the controller?

PHP password_verify

Return new collection without modifying original collection

Require a class from another class - php

Use Python plotly chart in PHP

Change the alert text on add to cart action without selected variation in Woocommerce

Select option from dropdown menu with PHP and mySql

PHP Startup Unable to load dynamic library /usr/lib/php/20151012/php_mysqli.dll

Array to string conversion

About Contact Privacy policy Terms and conditions