定制 fkruidhof/adminquickview 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fkruidhof/adminquickview

Composer 安装命令:

composer require fkruidhof/adminquickview

包简介

Magento 2 module to quickly access products, orders and customer from admin menu

README 文档

README

Introduction

The Magento 2 backend can be sluggish.

Ever wanted to access a product or order via the backend? Going to the list view, wait for the list to load, enter filter, wait for the results, look for the item you want and click it.... it takes too long if you already know where you want to go.

This module tries to help out with that. It creates an extra menu item called "Quick View". Using this you can enter a product sku, product id, order increment id, order id, customer email or customer id, and you will view that item directly. No more filtering and waiting.

Extending the module to add custom fields to the menu has been made easy, see below.

Installation

Install package using composer

composer require fkruidhof/adminquickview

This will install fkruidhof/adminquickview

Enable module and run installers

php bin/magento module:enable Fkruidhof_AdminQuickView
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Configuration

There are no configurations. When the module is installed it is automatically active. An extra "Quick View" menu item will be displayed in the admin menu. The module does have an ACL resource, so please make sure to activate the "Admin Quick View actions" role resource for the roles of the users that wish to use the module.

Extending the functionality

Extra fields can be easily added to the menu. Just make a new module with a model class that implements QuickViewInterface and add it to the QuickViewPool via adminhtml/di.xml.

adminhtml/di.xml example:

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Fkruidhof\AdminQuickView\Model\QuickViewPool">
        <arguments>
            <argument name="quickViews" xsi:type="array">
                <item name="custom_quickview" xsi:type="object" sortOrder="10">Vendor\Module\Model\QuickView\Custom</item>
            </argument>
        </arguments>
    </type>
</config>

Keep in mind that the idea behind this module is to redirect to a url, nothing more, nothing less.

Security considerations

The module uses it's own ACL resources, but more importantly: it just redirects the user to a url. No access controls are bypassed using this module.

Compatibility

PHP >=7.4

Only tested on Magento 2.4.x with the default admin theme.

统计信息

  • 总下载量: 2.43k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2021-12-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固