• 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

Is there a way to use Foundry Model for Authentification inside Functional Tests?

Coinpayments create_transaction "ERROR: Invalid command!"

How to make dot match newline characters using regular expressions

How to properly start Laravel 8 with Bootstrap & authentication

How to upload mpdf file after generating to s3 bucket in php

How can I make a full text index of the column?

Get WooCommerce product variation attribute terms in admin products general box

How to modify CSS in a specific page of the WP admin dashboard (backend)

How to create custom authentication in laravel 8?

Destroy session upon refresh

Find out the name of the last script that included the current one

how to prevent float variables displaying as scientific notation when printing [duplicate]

The difference when using if statement true === something() vs something() === true [duplicate]

PHP Deprecated issue when running artisan command

how to youtube api data to print in toolset metabox using a button click before save-post

About Contact Privacy policy Terms and conditions