3brs/sylius-sorting-plugin

Sylius 排序插件

安装次数: 1,494

依赖者: 0

建议者: 0

安全: 0

星标: 2

关注者: 3

分支: 3

开放性问题: 1

类型:sylius-plugin

This package is auto-updated.

Last update: 2024-09-06 11:44:22 UTC


README

排序插件

功能

  • 通过简单拖放对分类中的产品进行排序
    • 分类中所有产品的整洁概览
    • 禁用产品以灰色显示
    • 直接链接到产品详情
    • 可选地隐藏分类树以获得更多空间

安装

  1. 运行 $ composer require 3brs/sylius-sorting-plugin
  2. 在您的 Kernel 中注册 \ThreeBRS\SortingPlugin\ThreeBRSSyliusSortingPlugin
  3. 在 routing.yml 中导入 @ThreeBRSSyliusSortingPlugin/Resources/config/routing.yml
    threebrs_sorting:
        resource: "@ThreeBRSSyliusSortingPlugin/Resources/config/routing.yml"
        prefix: /admin

使用

  • 登录管理面板
  • 在主菜单的“目录”部分点击“排序产品”
  • 选择分类
  • 拖放卡片
  • 点击右上角的“保存位置”按钮

开发

使用

  • 从 .env.dist 创建到 .env 的符号链接或创建自己的 .env 文件
  • /src 中开发您的插件
  • 查看 bin/ 以获取有用的命令

测试

更改后,您必须确保测试仍在通过。

$ composer install
$ bin/console doctrine:schema:create -e test
$ bin/behat
$ bin/phpstan.sh
$ bin/ecs.sh

许可

此库受 MIT 许可协议的约束。

致谢

3BRS 开发
manGoweb 分支。