setono / sylius-promotion-extensions-plugin
Common promotion extensions for Sylius
Installs: 23 030
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 3
Open Issues: 7
Type:sylius-plugin
Requires
- php: >=7.3
- sylius/resource-bundle: ^1.6
- symfony/config: ^4.4 || ^5.0
- symfony/dependency-injection: ^4.4 || ^5.0
- symfony/form: ^4.4 || ^5.0
- symfony/http-kernel: ^4.4 || ^5.0
- symfony/options-resolver: ^4.4 || ^5.0
- symfony/validator: ^4.4 || ^5.0
- thecodingmachine/safe: ^1.3
- webmozart/assert: ^1.9
Requires (Dev)
- phpspec/phpspec: ^6.2
- phpunit/phpunit: ^9.4
- roave/security-advisories: dev-master
- setono/code-quality-pack: ^1.4
- sylius/sylius: ~1.8.0
- symfony/debug-bundle: ^5.1
- symfony/dotenv: ^5.1
- symfony/intl: ^4.4 || ^5.0
- symfony/web-profiler-bundle: ^5.0
- dev-master / 1.3.x-dev
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.1
- v1.0.0
- dev-renovate/configure
- dev-dependabot/github_actions/ramsey/composer-install-2
- dev-dependabot/github_actions/actions/checkout-3.1.0
- dev-dependabot/composer/sylius/sylius-approx-1.8.0or-approx-1.10.0
- dev-dependabot/composer/setono/code-quality-pack-tw-1.4or-tw-2.0
- dev-dependabot/github_actions/shivammathur/setup-php-2.11.0
- dev-dependabot/composer/phpspec/phpspec-tw-6.2or-tw-7.0
- dev-free-shipping-on-cheapest-shipping-method
This package is auto-updated.
Last update: 2024-11-15 16:44: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.