PHPackages                             agoradesign/commerce\_discounted\_product - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. agoradesign/commerce\_discounted\_product

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

agoradesign/commerce\_discounted\_product
=========================================

Extends Drupal Commerce by storing information about which products are affected by promotions.

1.0.0-alpha8(9mo ago)21.9k[1 issues](https://github.com/agoradesign/commerce_discounted_product/issues)GPL-2.0-or-laterPHP

Since Feb 24Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/agoradesign/commerce_discounted_product)[ Packagist](https://packagist.org/packages/agoradesign/commerce_discounted_product)[ Docs](https://github.com/agoradesign/commerce_discounted_product)[ RSS](/packages/agoradesign-commerce-discounted-product/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

Commerce Discounted Product
===========================

[](#commerce-discounted-product)

This module extends Drupal Commerce by storing information about which products are affected by promotions, in order to be able to query currently discounted products - and further to be able to build blocks and/or pages based on that information.

The Commerce Discounted Product module does not try to pre-calculate prices, neither it saves any pricing data at all. What it does, is to try to solely determine, which products are affected by the existing promotion entities. It is designed for rather simple use cases, where you'll define promotion rules for a number of specific products, or for products of a certain category, tag, etc. In other words - an usage of the Commerce Promotion module that fit for the majority of online shops.

Given the fact that both the promotion and pricing system of Commerce is nearly endlessly extensible and flexible, it's in fact impossible to have this module cover every use case and working in every setup. There are lots of advanced use cases that cannot by covered by this module. E.g. if you define conditions based on customer context (user role, address, etc) - this module won't deliver the desired result most likely. This module works under the assumption that every user is treated equally regarding promotions rules. It still could help in these situations though, as long as you take care of these conditions, when you build your blocks upon this module's information.

Another limitation is that this module is designed to work against product entities only, not any purchasable entity. As described above, it's already to complex to find the right conditions, if you stick to products only. Supporting any custom purchasable entity would even be harder.

And yes, the description above is correctly speaking of "products" and not "product variations", although the latter one are the purchasable entities. Variations do not exist on their own, they are always owned by their parent product. That's the concept of Commerce Product. So you won't ever render a block listing product variations, only products. You'll also never define Promotion conditions based on variation selection, but rather on products.

The module will by default only evaluate promotions based on conditions that are shipped with Commerce. But the good news is, that it is made extensible, so that you can add your own logic for your custom conditions. E.g. if you write a condition plugin that let you select products based on a referenced Taxonomy Term, you'll be able to easily add the necessary logic to get these rules handled by this module.

The module is currently not hosted on drupal.org. It's currently in an experimental state. We have to find out first, if we can cover at least such a high amount of use cases, so that it makes any sense at all to create a "real" Drupal project. In the meantime, the module will be hosted on Github exclusively: [Githup repo](https://github.com/agoradesign/commerce_discounted_product)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance46

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~386 days

Recently: every ~610 days

Total

8

Last Release

295d ago

### Community

Maintainers

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

---

Top Contributors

[![agoradesign](https://avatars.githubusercontent.com/u/5078744?v=4)](https://github.com/agoradesign "agoradesign (8 commits)")

### Embed Badge

![Health badge](/badges/agoradesign-commerce-discounted-product/health.svg)

```
[![Health](https://phpackages.com/badges/agoradesign-commerce-discounted-product/health.svg)](https://phpackages.com/packages/agoradesign-commerce-discounted-product)
```

###  Alternatives

[farmos/farmos

A web-based farm record keeping application.

1.2k6.7k1](/packages/farmos-farmos)

PHPackages © 2026

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