• 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

Parameter is not sent to Laravel route in Ajax

Getting output of MS stored procedure on php call

How to get Laravel's CSRF Token from Another Website?

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

Get data from accuweather api url

How can I get new CSRF token in LARAVEL by using ajax

The sum of the user's points

how to make my own auto increment in php?

How can I get user id from session in javascript?

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

PHP Sorting - getting 10, 11, 12 ... 1, 20, 2 rather than 1, 10, 11, 12 ... 2, 20

woocommerce_wp_select options array from product attribute terms

Laravel unique validation on multiple columns

Show Custom Data in Woocommerce Order Details Admin Area

getting error while enter Command => php artisan route:list

About Contact Privacy policy Terms and conditions