findologic/plugin-shopware-6
Composer 安装命令:
composer require findologic/plugin-shopware-6
包简介
Findologic plugin for Shopware 6
README 文档
README
Official Findologic plugin for Shopware 6.
Installation
Production
Please see our Shopware 6 documentation.
Development
-
Install the shopware-cli
-
Set up the test shop
- https://sw-cli.fos.gg/commands/project/
shopware-cli project create [folder] [version]
-
Install dependencies for tests
composer require --dev symfony/test-pack
-
Configure test database within the .env.test file (Create file if not present)
- If you want to use a docker database, run
docker-compose up -d
- If you want to use a docker database, run
-
Navigate to the plugins folder
cd custom/plugins -
Clone this repository
git clone git@github.com:findologic/plugin-shopware-6.git
-
Install dependencies
cd plugin-shopware-6 && composer install
-
Navigate back to the shop root
cd ../../.. -
Refresh plugin list
bin/console plugin:refresh --env="test" -
Install and activate the plugin
bin/console plugin:install FinSearch --activate --clearCache --env="test"
Run linting
CLI linting
The Makefile includes commands for all relevant tasks:
make storefront-lintmake administration-lintmake storefront-fixmake administration-fix
PHPStorm linting
There are different configurations for administration and storefront. Depending on the current project, use the corresponding configuration.
Storefront
Administration
Run PHPUnit tests
Prerequisites
- MySQL >= 8.0
- PHP >= 8.1
Setup
- Create a database user
appwith the passwordapp, which should have permissions to create, update and delete all databases. - In the development templates root, initialize the test setup (run locally, outside the app container)
./psh.phar init
- Navigate to the plugin and run tests
cd custom/plugins/plugin-shopware-6 && composer test
Tests can also be run separately within the IDE. Simply ensure to set phpunit.xml.dist as configuration file.
Run Storefront Jest tests
Prerequisites
- npm
- node
- See Shopware 6 environment requirements minimal required versions.
Setup
- Navigate to the storefront folder
cd src/Resources/app/storefront - Install dependencies
npm install
- Run unit-tests using jest
npm run test
After dependency installation all tests can also be run via the IDE without any additional configuration.
Developing custom JavaScript plugins
- Check out the offical guide on how to extend js storefront plugin.
- Create your plugin files inside
src/Resources/app/storefront/src/js/[your-plugin-name].plugin.js - Register your extended plugin
- For a development build:
./psh.phar storefront:dev - For a production build:
./psh.phar storefront:build
Please note:
- The build commands will create a minified JS file in
src/Resources/app/storefront/dist/storefront/js/[plugin-name].js. - Before committing ensure that all files were built and added to your commit.
- Make sure to also commit the minified JavaScript files.
Libraries
We are using some of our libraries that are especially relevant for this and other plugins. Note that these libraries already come with the plugin itself, so you do not need to install them yourself.
- findologic/libflexport Helps generating the shop's data feed aka. export. We use it to generate an XML based on the product data of the shop.
- findologic/shopware6-common Includes the basic logic for the export.
- findologic/findologic-api Handles requests to FINDOLOGIC. This includes everything from sending query parameters like selected filters, output attributes, to parsing the response with response objects.
Export customization
In some cases you may want to export additional, custom export data. To still provide you plugin updates, we have an extension plugin. It overrides logic of the base plugin to reflect your own logic.
Use the FINDOLOGIC Shopware 6 extension plugin to customize your export. There are already pre-defined examples, that guide you on how you can customize certain entities, like attributes or properties.
Deployment and Release
- Update the changelogs
CHANGELOG_en-GB.mdandCHANGELOG_de-DE.md. - Ensure that all changes, including the changelog changes have been merged into the
developbranch. - Switch to the
developbranch locally and pull the most recent changes.git checkout develop git pull
- Start the release process and follow the instructions.
composer release
- Ensure that the GitHub Actions release is successful.
- Upload it to Google Drive, by downloading the built zip file from the Releases page.
Upload it to the folder
Development/Plugins/Shopware/Shopware 6 DI & API Pluginand move the old version toalte Versionen. - Notify everyone in the
#releasesSlack channel.
findologic/plugin-shopware-6 适用场景与选型建议
findologic/plugin-shopware-6 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 617 次下载、GitHub Stars 达 6, 最近一次更新时间为 2024 年 04 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 findologic/plugin-shopware-6 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 findologic/plugin-shopware-6 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 617
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-04-22



