setono / sylius-promotion-extensions-plugin
Common promotion extensions for Sylius
Package info
github.com/Setono/SyliusPromotionExtensionsPlugin
Type:sylius-plugin
pkg:composer/setono/sylius-promotion-extensions-plugin
Requires
- php: >=7.4
- sylius/resource-bundle: ^1.6
- symfony/config: ^5.4 || ^6.4
- symfony/dependency-injection: ^5.4 || ^6.4
- symfony/form: ^5.4 || ^6.4
- symfony/http-kernel: ^5.4 || ^6.4
- symfony/options-resolver: ^5.4 || ^6.4
- symfony/validator: ^5.4 || ^6.4
- webmozart/assert: ^1.9
Requires (Dev)
- phpspec/phpspec: ^6.2
- phpunit/phpunit: ^9.4
- setono/code-quality-pack: ^1.4
- sylius/sylius: ~1.10.0
- symfony/debug-bundle: ^5.4 || ^6.4
- symfony/dotenv: ^5.4 || ^6.4
- symfony/intl: ^5.4 || ^6.4
- symfony/web-profiler-bundle: ^5.4 || ^6.4
This package is auto-updated.
Last update: 2026-06-11 17:53:50 UTC
README
Adds common promotion rules and actions for you to use in Sylius.
Installation
Step 1: Download the plugin
$ composer require setono/sylius-promotion-extensions-plugin
Step 2: Enable the plugin
Then, enable the plugin by adding it to the list of registered plugins/bundles
in the config/bundles.php file of your project:
<?php return [ // ... Setono\SyliusPromotionExtensionsPlugin\SetonoSyliusPromotionExtensionsPlugin::class => ['all' => true], // ... ];
Promotion rule checkers
Has at least n from taxons
Will return true if the cart contains n or more products that have the given taxons.
Promotion actions
Unit fixed price
You set a price that all matching products will cost no matter their original price.
Fixed lot price
This is specially suited for 'x for y' promotions, i.e. '2 for $50'. You set a lot price (i.e. $50) and a lot size (i.e. 2) and then the promotion will distribute the discount among the eligible products in the cart.