PHPackages                             silvershop/discounts - 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. silvershop/discounts

ActiveSilverstripe-vendormodule

silvershop/discounts
====================

Adds Discount and Coupon support for SilverShop.

3.1.0(9mo ago)926.2k↓100%43[18 issues](https://github.com/silvershop/silvershop-discounts/issues)BSD-3-ClausePHPCI failing

Since Aug 30Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/silvershop/silvershop-discounts)[ Packagist](https://packagist.org/packages/silvershop/discounts)[ RSS](/packages/silvershop-discounts/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (17)Used By (0)

SilverShop - Discounts
======================

[](#silvershop---discounts)

[![Latest Stable Version](https://camo.githubusercontent.com/52e1011e98f874c983df341b57f7fb89272c13817c923b5591bc5a9798a5b5fd/68747470733a2f2f706f7365722e707567782e6f72672f73696c76657273686f702f646973636f756e74732f762f737461626c652e706e67)](https://packagist.org/packages/silvershop/discounts)[![Latest Unstable Version](https://camo.githubusercontent.com/e8753b813095416e38cc2267333399cdce84b46566f45423675d475ca9d07525/68747470733a2f2f706f7365722e707567782e6f72672f73696c76657273686f702f646973636f756e74732f762f756e737461626c652e706e67)](https://packagist.org/packages/silvershop/discounts)[![CI](https://github.com/silvershop/silvershop-discounts/actions/workflows/ci.yml/badge.svg)](https://github.com/silvershop/silvershop-discounts/actions/workflows/ci.yml)[![Code Coverage](https://camo.githubusercontent.com/eb60a7b6ee8cc540aabff824591907746d1a8a0128c03c92130a411cd02fe346/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696c76657273686f702f73696c76657273686f702d646973636f756e74732f6261646765732f636f7665726167652e706e673f733d63616530313430663664396139396333356232306332336238626265383837313164353236323436)](https://scrutinizer-ci.com/g/silvershop/silvershop-discounts/)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/a2eec17a5ff9f259adc3417da132db89f6a97ec0e6e2f6aad066de0bbe37f03b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696c76657273686f702f73696c76657273686f702d646973636f756e74732f6261646765732f7175616c6974792d73636f72652e706e673f733d38303237333165323335363562356137303531623536323261353666636362376237363436363261)](https://scrutinizer-ci.com/g/silvershop/silvershop-discounts/)[![Total Downloads](https://camo.githubusercontent.com/776140359e0c0b8236c11fb99df035186f78e0ed5ecc79eeb0f3f1d6cf41b3ea/68747470733a2f2f706f7365722e707567782e6f72672f73696c76657273686f702f646973636f756e74732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/silvershop/discounts)

Allows creating discounts for products / orders.

- Discount by various criteria, including:
- Time
- User group
- Product/Category
- Number of uses
- Order value
- Shipping zone
- Coupon codes
- Gift voucher products
- Shipping discount

Discounts can be applied to individual products, cart subtotal, or shipping. Discounts can be globally enabled/disabled.

Requirements
------------

[](#requirements)

- SilverShop Module

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

[](#installation)

```
	composer require silvershop/discounts dev-master
```

If you are using the stepped checkout, add the `CheckoutStep_Discount` checkout step:

```
SilverShop\Page\CheckoutPage:
  steps:
    'discount' : 'SilverShop\Discounts\Checkout\Step\CheckoutStepDiscount'
```

If you would like to display the coupon form seperately to the checkout form, apply the following extension. This will make `CouponForm` available in the checkout template:

```
SilverShop\Page\CheckoutPageController:
  extensions:
    - SilverShop\Discounts\Extensions\CouponFormCheckoutDecorator
```

Add the `OrderDiscountModifier` modifier to your order modifiers yaml config:

```
SilverShop\Model\Order:
  modifiers:
    - SilverShop\Discounts\Model\Modifiers\OrderDiscountModifier
```

Specific Pricing
----------------

[](#specific-pricing)

Extend `Product` and/or `ProductVariation` with the `SpecificPricingExtension`to introduce a pricing table for each product. This allows admins to set prices according to things like, date, and membership group.

```
SilverShop\Page\Product:
  extensions:
    - SilverShop\Discounts\Extensions\SpecificPricingExtension
```

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance57

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community30

Small or concentrated contributor base

Maturity71

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~264 days

Recently: every ~164 days

Total

16

Last Release

298d ago

Major Versions

1.3.0 → 2.0.02019-03-21

1.4.0 → 2.0.12020-10-26

2.x-dev → 3.0.02023-09-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/485dfc9fc93cad085c83c3276f19b6e9322ee910ab0e1685de0db42228dbf97b?d=identicon)[markguinn](/maintainers/markguinn)

![](https://avatars.githubusercontent.com/u/1356335?v=4)[Jeremy Shipman](/maintainers/jedateach)[@jedateach](https://github.com/jedateach)

![](https://avatars.githubusercontent.com/u/101629?v=4)[Will Rossiter](/maintainers/wilr)[@wilr](https://github.com/wilr)

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

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

---

Top Contributors

[![jedateach](https://avatars.githubusercontent.com/u/1356335?v=4)](https://github.com/jedateach "jedateach (137 commits)")[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (81 commits)")[![wernerkrauss](https://avatars.githubusercontent.com/u/1043925?v=4)](https://github.com/wernerkrauss "wernerkrauss (18 commits)")[![AntonyThorpe](https://avatars.githubusercontent.com/u/1023740?v=4)](https://github.com/AntonyThorpe "AntonyThorpe (16 commits)")[![anhld](https://avatars.githubusercontent.com/u/4111365?v=4)](https://github.com/anhld "anhld (8 commits)")[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (7 commits)")[![shoosah](https://avatars.githubusercontent.com/u/5318710?v=4)](https://github.com/shoosah "shoosah (3 commits)")[![TheBnl](https://avatars.githubusercontent.com/u/1334195?v=4)](https://github.com/TheBnl "TheBnl (3 commits)")[![bummzack](https://avatars.githubusercontent.com/u/1006185?v=4)](https://github.com/bummzack "bummzack (3 commits)")[![benjicarson](https://avatars.githubusercontent.com/u/84831726?v=4)](https://github.com/benjicarson "benjicarson (3 commits)")[![gordonbanderson](https://avatars.githubusercontent.com/u/7060?v=4)](https://github.com/gordonbanderson "gordonbanderson (2 commits)")[![sparkcom](https://avatars.githubusercontent.com/u/4200947?v=4)](https://github.com/sparkcom "sparkcom (2 commits)")[![chromos33](https://avatars.githubusercontent.com/u/2787884?v=4)](https://github.com/chromos33 "chromos33 (1 commits)")[![pmhou](https://avatars.githubusercontent.com/u/4292357?v=4)](https://github.com/pmhou "pmhou (1 commits)")[![sn4h](https://avatars.githubusercontent.com/u/131519602?v=4)](https://github.com/sn4h "sn4h (1 commits)")[![oliver-norden](https://avatars.githubusercontent.com/u/50394007?v=4)](https://github.com/oliver-norden "oliver-norden (1 commits)")[![djmattski](https://avatars.githubusercontent.com/u/3836638?v=4)](https://github.com/djmattski "djmattski (1 commits)")[![fonsekaean](https://avatars.githubusercontent.com/u/143939?v=4)](https://github.com/fonsekaean "fonsekaean (1 commits)")[![IgorNadj](https://avatars.githubusercontent.com/u/667652?v=4)](https://github.com/IgorNadj "IgorNadj (1 commits)")[![christopherbolt](https://avatars.githubusercontent.com/u/16007412?v=4)](https://github.com/christopherbolt "christopherbolt (1 commits)")

---

Tags

silverstripeshopecommerceshopping cartcouponsdiscount

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/silvershop-discounts/health.svg)

```
[![Health](https://phpackages.com/badges/silvershop-discounts/health.svg)](https://phpackages.com/packages/silvershop-discounts)
```

###  Alternatives

[silvershop/core

Provides an ecommerce product catalog, shopping cart, and order management system

11340.0k37](/packages/silvershop-core)[jsdecena/laracom

Laravel powered e-commerce

2.0k4.4k](/packages/jsdecena-laracom)

PHPackages © 2026

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