PHPackages                             phong/module-fixed-percent-max-amount - 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. phong/module-fixed-percent-max-amount

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

phong/module-fixed-percent-max-amount
=====================================

Percent of Product Price with Max Discount

00PHP

Since Mar 23Pushed 3mo agoCompare

[ Source](https://github.com/phongnguyen1412/FixedPercentDiscountAmount)[ Packagist](https://packagist.org/packages/phong/module-fixed-percent-max-amount)[ RSS](/packages/phong-module-fixed-percent-max-amount/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Cart Price Rule — Percent of Product Price with Max Discount
============================================================

[](#cart-price-rule--percent-of-product-price-with-max-discount)

Overview
--------

[](#overview)

This extension introduces a new **Cart Price Rule action** in Magento:

**Percent of Product Price with Max Discount**

The rule allows store administrators to apply a percentage-based discount on product prices while limiting the total discount amount using a configurable **maximum discount value**.

This helps control promotional costs while still offering flexible percentage discounts.

---

How It Works
------------

[](#how-it-works)

When the rule is applied, the system calculates the discount amount based on:

> **The minimum value between:**
>
> - Percentage discount calculated from the quote total
> - Configured maximum discount amount

This ensures that the applied discount will **never exceed the defined maximum limit**.

---

Discount Calculation Logic
--------------------------

[](#discount-calculation-logic)

### Rule Parameters

[](#rule-parameters)

- **Discount Percent** — Percentage discount applied to quote total
- **Max Discount Amount** — Maximum allowed discount value

### Calculation Formula

[](#calculation-formula)

```
discount_amount = MIN(
    quote_total × discount_percent,
    max_discount_amount
)

```

---

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

[](#installation)

Install the module via Composer:

```
composer require phong/module-fixed-percent-max-amount
```

Then run Magento commands:

```
php bin/magento module:enable Phong_FixedPercentMaxAmount
php bin/magento setup:upgrade
php bin/magento cache:flush
```

---

Compatibility
-------------

[](#compatibility)

- Magento Open Source **2.4.6+**
- Magento Commerce **2.4.6+**
- PHP **8.1+**

---

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance55

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3750c017adf319f167d093cee9f55b68a9ac439510cf6a757efb537c19e30d68?d=identicon)[phongnguyen1412](/maintainers/phongnguyen1412)

---

Top Contributors

[![phongnguyen1412](https://avatars.githubusercontent.com/u/49425261?v=4)](https://github.com/phongnguyen1412 "phongnguyen1412 (2 commits)")

### Embed Badge

![Health badge](/badges/phong-module-fixed-percent-max-amount/health.svg)

```
[![Health](https://phpackages.com/badges/phong-module-fixed-percent-max-amount/health.svg)](https://phpackages.com/packages/phong-module-fixed-percent-max-amount)
```

###  Alternatives

[ayeo/gs1_barcode

Generate GS1-128 standard barcode

52117.2k](/packages/ayeo-gs1-barcode)

PHPackages © 2026

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