定制 3brs/sylius-sorting-plugin 二次开发

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

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

3brs/sylius-sorting-plugin

最新稳定版本:v2.0.0

Composer 安装命令:

composer require 3brs/sylius-sorting-plugin

包简介

Sorting plugin for Sylius

README 文档

README

Sorting Plugin

Features

  • Sort products in taxons by simple drag and drop
    • Well-arranged overview of all products in the taxon
    • Disabled products greyed out
    • Direct links into product details
    • Optionally hidden taxon tree and product images to get even more space

Installation

  1. Run composer require 3brs/sylius-sorting-plugin.

  2. Register plugin to your config/bundles.php:

    return [
        ...
        ThreeBRS\SortingPlugin\ThreeBRSSyliusSortingPlugin::class => ['all' => true],
    ];
  3. Import plugin configuration in config/packages/_sylius.yaml:

    imports:
        - { resource: "@ThreeBRSSyliusSortingPlugin/config/config.yaml" }
  4. Import routing configuration in config/routes.yaml:

    threebrs_sorting:
        resource: "@ThreeBRSSyliusSortingPlugin/config/routing.yaml"
        prefix: '%sylius_admin.path_name%'
  5. Import plugin JS in webpack.config.js

    // App admin config
    Encore
       .addEntry('threebrs-sorting-admin', path.resolve(__dirname, 'vendor/3brs/sylius-sorting-plugin/assets/admin/js/sorting-plugin.js'))
  6. Require JavaScript library sortablejs:

    yarn add sortablejs@1.15.6
  7. Rebuild assets:

    yarn build

Usage

  • Log into admin panel
  • Click on Sorting products in the Catalog section in main menu
  • Select taxon
  • Drag and drop cards
  • Click Save positions button in the top right corner

Development

Usage

  • Create symlink from .env.dist to .env or create your own .env file
  • Develop your plugin in /src
  • See bin/ for useful commands

Testing

After your changes you must ensure that the tests are still passing.

make ci

License

This library is under the MIT license.

Credits

Developed by 3BRS
Forked from manGoweb.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-03