PHPackages                             davix/module-autocoupon - 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. davix/module-autocoupon

ActiveMagento2-module

davix/module-autocoupon
=======================

Auto Coupon|Automatically apply coupons to the basket.

1.2.0(1w ago)001OSL-3.0PHPPHP ~8.1.0||~8.2.0||~8.3.0

Since May 26Pushed 1w ago1 watchersCompare

[ Source](https://github.com/DavixHQ/module-autocoupon)[ Packagist](https://packagist.org/packages/davix/module-autocoupon)[ RSS](/packages/davix-module-autocoupon/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Davix - Module AutoCoupon
=========================

[](#davix---module-autocoupon)

```
``davix/module-autocoupon``

```

- [Main Functionality](#main-functionality)
- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Specifications](#specifications)
- [FAQ](#faq)

Main Functionality
------------------

[](#main-functionality)

This module lets you apply a coupon code to a customer's cart via a link, e.g. for email or affiliate campaigns:

```
http://www.yoursite.com/applydiscount/?code=DISCOUNT-CODE&redirect_url=http://www.yoursite.com/

```

`redirect_url` is only ever honoured when it points back at this store's own host - an external URL is ignored and the request falls back to the homepage instead.

For logged-in customers, the last coupon code they successfully applied is remembered and automatically reapplied the next time their cart has no coupon on it (e.g. after logging back in, or adding an item to a fresh cart). Applying a different coupon replaces what's remembered, and clearing it - either via this module's own link with an empty `code` param, or the cart page's own "Cancel Coupon" button - stops it being remembered too. This is per logged-in customer only - guests aren't tracked.

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

[](#requirements)

- Magento Open Source / Adobe Commerce 2.4.x
- PHP 8.1, 8.2, or 8.3

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

[](#installation)

\* = in production please use the `--keep-generated` option

### Type 1: Zip file

[](#type-1-zip-file)

- Unzip the zip file in `app/code/Davix`
- Enable the module by running `php bin/magento module:enable Davix_AutoCoupon`
- Apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

### Type 2: Composer

[](#type-2-composer)

- Make the module available in a composer repository for example:
    - private repository `repo.magento.com`
    - public repository `packagist.org`
    - public github repository as vcs
- Add the composer repository to the configuration by running `composer config repositories.repo.magento.com composer https://repo.magento.com/`
- Install the module composer by running `composer require davix/module-autocoupon`
- enable the module by running `php bin/magento module:enable Davix_AutoCoupon`
- apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

Configuration
-------------

[](#configuration)

- Status (ioauto\_coupon/general/status)
- Message (ioauto\_coupon/general/message)
- Error Message (ioauto\_coupon/general/error\_message)

The `status` and `message` settings are also exposed on the `StoreConfig` GraphQL type, as `ioauto_coupon_general_status` and `ioauto_coupon_general_message`.

Specifications
--------------

[](#specifications)

- Observer

    - checkout\_cart\_product\_add\_after &gt; Davix\\AutoCoupon\\Observer\\Frontend\\ApplyCoupon
    - customer\_login &gt; Davix\\AutoCoupon\\Observer\\Frontend\\ApplyCoupon
- Plugin

    - Magento\\Checkout\\Controller\\Cart\\CouponPost &gt; Davix\\AutoCoupon\\Plugin\\ClearStickyCouponOnCancelPlugin
- Controller

    - frontend &gt; applydiscount/index/index

FAQ
---

[](#faq)

If you have any issues while using any of our modules please feel free to get in touch and we will be happy to help resolve them for you.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance98

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Total

2

Last Release

11d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2516468?v=4)[Wei](/maintainers/Davix)[@davix](https://github.com/davix)

---

Top Contributors

[![DavaGordon](https://avatars.githubusercontent.com/u/4630696?v=4)](https://github.com/DavaGordon "DavaGordon (6 commits)")

---

Tags

adobe-commercecart-rulescheckoutmagento-2magento-extensionmagento-modulemagento2-extensionmagento2-extension-freemagento2-module-freemarketing-automation

### Embed Badge

![Health badge](/badges/davix-module-autocoupon/health.svg)

```
[![Health](https://phpackages.com/badges/davix-module-autocoupon/health.svg)](https://phpackages.com/packages/davix-module-autocoupon)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.5M1](/packages/fastly-magento2)[mollie/magento2

Mollie Payment Module for Magento 2

1142.0M17](/packages/mollie-magento2)[nosto/module-nostotagging

Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.

27714.5k4](/packages/nosto-module-nostotagging)[checkoutcom/magento2

Checkout.com Payment Gateway for Magento 2

34280.5k3](/packages/checkoutcom-magento2)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1861.2k](/packages/myparcelnl-magento)[doofinder/doofinder-magento2

Doofinder module for Magento 2

12256.9k1](/packages/doofinder-doofinder-magento2)

PHPackages © 2026

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