Download the PHP package monsieurbiz/sylius-no-commerce-plugin without Composer
On this page you can find all versions of the php package monsieurbiz/sylius-no-commerce-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download monsieurbiz/sylius-no-commerce-plugin
More information about monsieurbiz/sylius-no-commerce-plugin
Files in monsieurbiz/sylius-no-commerce-plugin
Package sylius-no-commerce-plugin
Short Description Disable the e-commerce on your Sylius.
License MIT
Informations about the package sylius-no-commerce-plugin
No Commerce for Sylius
This plugin disables the e-commerce parts of Sylius.
Basically it disables the routes and updates the admin and frontend templates.
Compatibility
Sylius Version | PHP Version |
---|---|
1.12 | 8.1 - 8.2 - 8.3 |
1.13 | 8.1 - 8.2 - 8.3 |
1.14 | 8.1 - 8.2 - 8.3 |
Installation
If you want to use our recipes, you can configure your composer.json by running:
For the installation without flex, follow these additional steps
Change your `config/bundles.php` file to add this line for the plugin declaration: Then create the config file in `config/packages/monsieurbiz_sylius_nocommerce_plugin.yaml`:
Add some annotations to your src/Entity/Channel/Channel.php
entity to prevent error during Channel saving:
Use a different trait for your src/Kernel.php
:
(don't forget the use MonsieurBiz\SyliusNoCommercePlugin\Kernel\SyliusNoCommerceKernelTrait;
statement or course).
Copy the templates we override:
Create the new migrations, and run them:
Re-enable features
In the config file config/packages/monsieurbiz_sylius_nocommerce_plugin.yaml
, add this lines:
You can allow different sections by changing the parameters to true
.
Ignore routes
By default, the disable firewall listener will ignore the following routes for the developer toolbar.
You can ignore additional routes, such as the preview route for error pages, by adding them to the config/packages/monsieurbiz_sylius_nocommerce_plugin.yaml
file:
Contributing
You can open an issue or a Pull Request if you want! 😘
Thank you!
All versions of sylius-no-commerce-plugin with dependencies
php Version ^8.1
sylius/sylius Version >=1.12 <2.0