• 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

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

Send same name multiple checkbox values via ajax

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

Split a string array into pieces

PHP, how to convert Int value to Week days

WooCommerce Additional Information - if empty, hide

Creating a config file in PHP

image source not readable

Why does using salted hash on python and php give me different results?

How to add a heading in between checkout fields of WooCommerce

PHP my timezone is no setting up in PHP.ini File in xampp

Get WooCommerce products from specific category

Laravel print last executed SQL query with Query log

PHP if in_array() how to get the key as well?

woocommerce get_order_report_data to show order_item_id

About Contact Privacy policy Terms and conditions