• 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

Access denied for user 'homestead'@'localhost' (using password: YES)

Changing font color in javascript

Error Class "LaravelFortifyFeatures" not found

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

Laravel unique validation on multiple columns

How to display MySQL table using php and edit it in a web browser

Toggle between a textbox and a select using PHP

woocommerce_wp_select options array from product attribute terms

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

How to get the ID of the link in another page in php

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

How to check user Permissions using Custom Middleware in Laravel

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

About Contact Privacy policy Terms and conditions