PHPackages                             magestyapps/magento2-fix-discount-rules - 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. magestyapps/magento2-fix-discount-rules

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

magestyapps/magento2-fix-discount-rules
=======================================

Fix for shopping cart rules 'Payment Method' condition in Magento 2

1.1.1(6y ago)114063[3 issues](https://github.com/MagestyApps/magento2-fix-discount-rules/issues)OSL-3.0JavaScriptPHP &gt;=5.5.0

Since May 18Pushed 6y ago2 watchersCompare

[ Source](https://github.com/MagestyApps/magento2-fix-discount-rules)[ Packagist](https://packagist.org/packages/magestyapps/magento2-fix-discount-rules)[ RSS](/packages/magestyapps-magento2-fix-discount-rules/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Fix cart price rules by Payment Method in Magento 2
===================================================

[](#fix-cart-price-rules-by-payment-method-in-magento-2)

If you try to create a new discount rule in Magento 2, you'll see a condition called "Payment Method" there. This condition means that the discount will be applied in case a customer selects a certain payment method. But actually, this rule will not work due to a small omission in Magento 2 checkout. The module in the repo fixes the issue.

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

[](#installation)

#### via Composer (recommended)

[](#via-composer-recommended)

Run the following command from your Mangento root folder:

```
   composer require magestyapps/magento2-fix-discount-rules

```

#### Manually

[](#manually)

- Create folder 'app/code/MagestyApps/FixRules/' in you Magento setup
- Extract the repo files to the folder
- Open console (terminal)
- In the console (terminal) navigate to your magento root folder:

    ```
    cd /path/to/your/magento

    ```
- Install the new module using the command below:

    ```
    php bin/magento setup:upgrade

    ```

Description
-----------

[](#description)

You can find some code explanations in our blog post: [Cart Price Rules Based on Payment Method Don't Work](https://www.magestyapps.com/blog/post/issue-cart-price-rules-based-on-payment-method-dont-work/)

Some of code parts have been taken from our [Payment Fees extension for Magento 2](https://www.magestyapps.com/magento-2-extensions/m2-payment-fees.html)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

2237d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11487119?v=4)[MagestyApps](/maintainers/magestyapps)[@MagestyApps](https://github.com/MagestyApps)

---

Top Contributors

[![MagestyApps](https://avatars.githubusercontent.com/u/11487119?v=4)](https://github.com/MagestyApps "MagestyApps (9 commits)")

---

Tags

bugfixcart-price-rulesdiscount-rulemagento2magento2-extensionmagento2-module

### Embed Badge

![Health badge](/badges/magestyapps-magento2-fix-discount-rules/health.svg)

```
[![Health](https://phpackages.com/badges/magestyapps-magento2-fix-discount-rules/health.svg)](https://phpackages.com/packages/magestyapps-magento2-fix-discount-rules)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[code4business/freeproduct2

Adds a sales rule action to add a product to cart. Can be used to create sales rules to add gifts to cart.

66175.0k](/packages/code4business-freeproduct2)[smile/module-gift-sales-rule

Extension of Magento2 Sales Rule to provide gifted (free) products.

35124.3k2](/packages/smile-module-gift-sales-rule)[faonni/module-price

Rounding Price to Prettier Value for Multi-Currency Stores.

63124.5k](/packages/faonni-module-price)[buckaroo/magento2

Buckaroo Magento 2 extension

32420.3k8](/packages/buckaroo-magento2)[joseph-leedy/module-custom-fees

Adds configurable custom fees to orders

361.1k](/packages/joseph-leedy-module-custom-fees)

PHPackages © 2026

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