PHPackages                             juicesweb/sylius-tierprice-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. juicesweb/sylius-tierprice-plugin

ActiveSylius-plugin

juicesweb/sylius-tierprice-plugin
=================================

A plugin that allows to add tierprices to Sylius

03PHP

Since May 2Pushed 3y agoCompare

[ Source](https://github.com/juicesweb/SyliusTierpricePlugin)[ Packagist](https://packagist.org/packages/juicesweb/sylius-tierprice-plugin)[ RSS](/packages/juicesweb-sylius-tierprice-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://camo.githubusercontent.com/5b98e02f3693c16fd3f40037251d70ca5e1ecd2a11608dd21c9c7e3933b8942e/68747470733a2f2f73796c6975732e636f6d2f6173736574732f62616467652d617070726f7665642d62792d73796c6975732e706e67)](https://sylius.com/plugins/)

Sylius Tier Price Plugin
========================

[](#sylius-tier-price-plugin)

[![Build Status](https://camo.githubusercontent.com/34d990a35a6c1dd709b5dffa1fda7cbcf3835e3f580ad2f71ce031d01580dd8e/68747470733a2f2f7472617669732d63692e6f72672f4272696c6c6532342f53796c697573546965727072696365506c7567696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Brille24/SyliusTierpricePlugin)

This plugin adds tier pricing to Sylius one product has different prices based on the quantity.

Installation
------------

[](#installation)

- Install the bundle via composer `composer require brille24/sylius-tierprice-plugin`
- Register the bundle in your `bundles.php`:

```
return [
    //...

    Brille24\SyliusTierPricePlugin\Brille24SyliusTierPricePlugin::class => ['all' => true],
];
```

- Add the `config.yml` to your local `config/config.yml`

```
imports:
    ...
    - { resource: '@Brille24SyliusTierPricePlugin/Resources/config/config.yml'}
```

and `resources.yml` to your local `config/resource.yml`

```
imports:
    ...
    - { resource: '@Brille24SyliusTierPricePlugin/Resources/config/resource.yml'}
```

That way all the Sylius resource overriding happens in the `app/config/resources.yml`

- For API functionality add the bundle's `routing.yml` to the local `app/config/routing.yml`

```
...
brille24_tierprice_bundle:
    resource: '@Brille24SyliusTierPricePlugin/Resources/config/routing.yml'
```

- Finally update the database, install the assets and update the translations:

```
bin/console doctrine:schema:update --force
bin/console assets:install
bin/console translation:update  --force
```

### Integration

[](#integration)

- This bundle overrides the `ProductVariant` class provided by Sylius. If you wish to override the class in your application too, you have to merge the configuration in the bundle's `resource.yml` with your own.
- This bundle decorates the `sylius.calculator.product_variant_price` service. If you wish to change that, you could register a [compiler pass](https://symfony.com/doc/current/service_container/compiler_passes.html).
- This bundle decorates the `sylius.order_processing.order_prices_recalculator` service. If you wish to use your own order processor or change its priority, you could register a [compiler pass](https://symfony.com/doc/current/service_container/compiler_passes.html).

Usage
-----

[](#usage)

First of all you have to set up a product with as many variants as you want. Then in each of these variants you can set the tier pricing based on the channels. The table automatically sorts itself to provide a better overview for all different tiers, you configured.

[![](images/Backend.png)](images/Backend.png)

In the frontend the user will see a nice looking table right next to the "add to cart" button that shows the discount for the different tiers like so:

[![](images/Front-End.png)](images/Front-End.png)

### Creating data

[](#creating-data)

You can easily create the tier prices with fixtures like that.

```
sylius_fixtures:
    suites:
        my_suite:
            fixtures:
                tier_prices:
                    options:
                        custom:
                            - product_variant: "20125148-54ca-3f05-875f-5524f95aa85b"
                              channel: US_WEB
                              quantity: 10
                              price: 5
```

For this the products need to be created first and the product variant must also exist.

Extending
---------

[](#extending)

> If you want to extend the tierprices please be aware that this plugin is using XML for configuration. This might collide with projects that use Annotations.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa339053a1e544d88884443e87a8a8fb17d4fc97d1b8ae7d74a58d709a9065b3?d=identicon)[juicesweb](/maintainers/juicesweb)

---

Top Contributors

[![pamil](https://avatars.githubusercontent.com/u/1897953?v=4)](https://github.com/pamil "pamil (190 commits)")[![mamazu](https://avatars.githubusercontent.com/u/14860264?v=4)](https://github.com/mamazu "mamazu (148 commits)")[![markbeazley](https://avatars.githubusercontent.com/u/17005579?v=4)](https://github.com/markbeazley "markbeazley (22 commits)")[![lchrusciel](https://avatars.githubusercontent.com/u/6213903?v=4)](https://github.com/lchrusciel "lchrusciel (19 commits)")[![Roshyo](https://avatars.githubusercontent.com/u/9363039?v=4)](https://github.com/Roshyo "Roshyo (17 commits)")[![bitbager](https://avatars.githubusercontent.com/u/28542010?v=4)](https://github.com/bitbager "bitbager (12 commits)")[![pjedrzejewski](https://avatars.githubusercontent.com/u/614970?v=4)](https://github.com/pjedrzejewski "pjedrzejewski (9 commits)")[![Zales0123](https://avatars.githubusercontent.com/u/6212718?v=4)](https://github.com/Zales0123 "Zales0123 (7 commits)")[![teohhanhui](https://avatars.githubusercontent.com/u/548843?v=4)](https://github.com/teohhanhui "teohhanhui (7 commits)")[![stefandoorn](https://avatars.githubusercontent.com/u/4903082?v=4)](https://github.com/stefandoorn "stefandoorn (7 commits)")[![pierre-H](https://avatars.githubusercontent.com/u/6079305?v=4)](https://github.com/pierre-H "pierre-H (5 commits)")[![bartoszpietrzak1994](https://avatars.githubusercontent.com/u/22262296?v=4)](https://github.com/bartoszpietrzak1994 "bartoszpietrzak1994 (5 commits)")[![antiseptikk](https://avatars.githubusercontent.com/u/1520152?v=4)](https://github.com/antiseptikk "antiseptikk (3 commits)")[![lsmith77](https://avatars.githubusercontent.com/u/300279?v=4)](https://github.com/lsmith77 "lsmith77 (2 commits)")[![tavy315](https://avatars.githubusercontent.com/u/6184412?v=4)](https://github.com/tavy315 "tavy315 (2 commits)")[![JakobTolkemit](https://avatars.githubusercontent.com/u/30623938?v=4)](https://github.com/JakobTolkemit "JakobTolkemit (2 commits)")[![juicesweb](https://avatars.githubusercontent.com/u/127143925?v=4)](https://github.com/juicesweb "juicesweb (2 commits)")[![marek-pietrzak-tg](https://avatars.githubusercontent.com/u/2435655?v=4)](https://github.com/marek-pietrzak-tg "marek-pietrzak-tg (2 commits)")[![RadnoK](https://avatars.githubusercontent.com/u/1699311?v=4)](https://github.com/RadnoK "RadnoK (1 commits)")[![jdubuisson](https://avatars.githubusercontent.com/u/11821135?v=4)](https://github.com/jdubuisson "jdubuisson (1 commits)")

### Embed Badge

![Health badge](/badges/juicesweb-sylius-tierprice-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/juicesweb-sylius-tierprice-plugin/health.svg)](https://phpackages.com/packages/juicesweb-sylius-tierprice-plugin)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
