PHPackages                             amwal/magento-discount-auto-apply - 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. amwal/magento-discount-auto-apply

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

amwal/magento-discount-auto-apply
=================================

Amwal Discount Auto Apply is a Magento 2 plugin that allows you to automatically apply discounts to the cart based on the user's eligibility.

1161PHP

Since Aug 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/amwal-tech/magento-discount-auto-apply)[ Packagist](https://packagist.org/packages/amwal/magento-discount-auto-apply)[ RSS](/packages/amwal-magento-discount-auto-apply/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Amwal Discount Auto Apply
=========================

[](#amwal-discount-auto-apply)

Amwal Discount Auto Apply is a Magento 2 plugin that allows you to automatically apply discounts to the cart based on the user's eligibility.

### Using composer (Recommended)

[](#using-composer-recommended)

Go to your magento root directory in your server

Require the composer package

```
composer require amwal/magento-discount-auto-apply:dev-main
```

Enabling the plugin
-------------------

[](#enabling-the-plugin)

From the command prompt or terminal run the following commands to enable the plugin:

1. Enable the module in Magento

```
bin/magento module:enable Amwal_Discount
```

2. Run the Magneto Setup Upgrade command, Compile DI, Deploy static content, and finally flush the cache

```
bin/magento setup:upgrade && \
bin/magento setup:di:compile && \
bin/magento setup:static-content:deploy && \
bin/magento cache:flush
```

Configuring Amwal Discount Rule
-------------------------------

[](#configuring-amwal-discount-rule)

To ensure that the Amwal Discount Auto Apply plugin works correctly, you need to create a specific discount rule that will be automatically applied to eligible users. Follow these steps to set up the Amwal discount rule in the Magento Admin panel:

1. Log in to Magento Admin:
    - Access your Magento Admin panel by navigating to .
2. Navigate to Cart Price Rules:
    - In the Magento Admin sidebar, go to `Marketing > Promotions > Cart Price Rules`.
3. Create a New Rule:
    - Click on the "Add New Rule" button in the top right corner.
4. General Information:
    - Rule Name: Enter a descriptive name for your Amwal discount rule (e.g., "Amwal Payments Discount").\*
    - Description: Optionally, add a description for the rule.
    - Active: Set the rule to "Yes" to activate it.
    - Websites: Select the websites where the rule should be applied.
    - Customer Groups: Select the customer groups that will be eligible for the discount.
    - Coupon: Select "Specific Coupon" from the dropdown menu and enter a unique coupon code (e.g., "AMWAL\_DISCOUNT"). This coupon code will be automatically applied by the plugin.
5. Conditions:
    - In the Conditions tab, define the conditions under which the discount should be applied. For the Amwal Discount plugin to work, ensure that the rule includes a condition related to Amwal Payments.
    - Click on the green plus icon to add a new condition. Choose `Payment Method` from the options, then select the payment method related to Amwal (e.g., "Amwal Payments").
    - Example: `If Payment Method is Amwal_Payments`.
6. Actions:
    - In the Actions tab, define the discount amount and type (e.g., Percentage of product price discount, Fixed amount discount, etc.).
    - Discount Amount: Specify the discount amount you want to offer.
    - Apply To Shipping Amount: Choose whether the discount applies to the shipping amount as well.
    - Stop Further Rules Processing: Set this to "Yes" if you want to stop other rules from applying after this one.
7. Labels:
    - In the Labels tab, enter a label that will be displayed in the cart when the discount is applied.
8. Save the Rule:
    - Click on `"Save Rule"` to apply your changes.

Testing the Discount Auto Apply
-------------------------------

[](#testing-the-discount-auto-apply)

After configuring the Amwal discount rule, you can test it by placing an order:

1. Add Products to Cart:
    - Go to the storefront and add products to the cart.
2. Proceed to Checkout:
    - Begin the checkout process and select `"Amwal Payments"` as the payment method.
3. Verify Discount Application:
    - Ensure that the discount is automatically applied to the cart as per the rule you configured.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity17

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/c2c3d13363af9a9a6274de93e9cf9e497790807fde344d0ed583d89dfc7383d6?d=identicon)[ahmardi](/maintainers/ahmardi)

---

Top Contributors

[![ahmardi](https://avatars.githubusercontent.com/u/141551822?v=4)](https://github.com/ahmardi "ahmardi (5 commits)")

### Embed Badge

![Health badge](/badges/amwal-magento-discount-auto-apply/health.svg)

```
[![Health](https://phpackages.com/badges/amwal-magento-discount-auto-apply/health.svg)](https://phpackages.com/packages/amwal-magento-discount-auto-apply)
```

###  Alternatives

[vpietri/adm-quickdevbar

QuickDevBar is a developer toolbar for magento 2

577348.6k](/packages/vpietri-adm-quickdevbar)[minime/annotations

The KISS PHP annotations library

229378.6k37](/packages/minime-annotations)[data-uri/data-uri

PHP DataURI component

60627.5k4](/packages/data-uri-data-uri)[friendsoftypo3/frontend-editing

Enable editors to work with the content in the most intuitive way possible

110123.8k2](/packages/friendsoftypo3-frontend-editing)[rockettheme/toolbox

RocketTheme Toolbox Library

22526.9k3](/packages/rockettheme-toolbox)[holiday-jp/holiday_jp

Japanese holidays

20161.3k](/packages/holiday-jp-holiday-jp)

PHPackages © 2026

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