PHPackages                             dimadin/nth-order-discount-for-woocommerce - 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. dimadin/nth-order-discount-for-woocommerce

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

dimadin/nth-order-discount-for-woocommerce
==========================================

Automatic discounts after every nth order

1.0.0(7y ago)29[1 issues](https://github.com/dimadin/nth-order-discount-for-woocommerce/issues)GPL-2.0-or-laterPHPPHP &gt;=5.4

Since Jan 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dimadin/nth-order-discount-for-woocommerce)[ Packagist](https://packagist.org/packages/dimadin/nth-order-discount-for-woocommerce)[ RSS](/packages/dimadin-nth-order-discount-for-woocommerce/feed)WikiDiscussions master Synced yesterday

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

Nth Order Discount for WooCommerce
==================================

[](#nth-order-discount-for-woocommerce)

Nth Order Discount for WooCommerce is a WooCommerce extension that automatically creates discount for customer's order after every nth successful order by that customer. Discount will be in form of coupon that can be used only once by that customer. Customer must be registered and logged in for each order.

Usage
-----

[](#usage)

If you clone this repository, run `composer install`. Otherwise, require [`dimadin/nth-order-discount-for-woocommerce` package](https://packagist.org/packages/dimadin/nth-order-discount-for-woocommerce) in your project.

After activation, set preferences on *WooCommerce* &gt; *Settings* &gt; *General* page.

### Settings

[](#settings)

#### Completed orders before discount

[](#completed-orders-before-discount)

With this setting, you select how many completed orders user has to made before it gets automatic discount. For example, if you select *4*, that means that on its fifth order (and tenth, and fifteenth and so on), user will get automatic discount.

#### Discount amount

[](#discount-amount)

With this setting, you select what discount user will get. This setting depends on setting *Discount type*, so if you select *10* for *Discount amount* and *Percentage discount* for *Discount type*, user would get discount of 10%. If it is *Fixed discount* under *Discount type*, it means that discount is 10 units of selected currency (USD, EUR, RSD, etc).

#### Discount type

[](#discount-type)

See *Discount amount* for details.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

2684d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54c4bd393dafccafaf09bf6441bbd933db30b4d4fd153211f79636e8838cdac5?d=identicon)[dimadin](/maintainers/dimadin)

---

Top Contributors

[![dimadin](https://avatars.githubusercontent.com/u/2678421?v=4)](https://github.com/dimadin "dimadin (12 commits)")

---

Tags

woocommerce

### Embed Badge

![Health badge](/badges/dimadin-nth-order-discount-for-woocommerce/health.svg)

```
[![Health](https://phpackages.com/badges/dimadin-nth-order-discount-for-woocommerce/health.svg)](https://phpackages.com/packages/dimadin-nth-order-discount-for-woocommerce)
```

###  Alternatives

[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

942.9M66](/packages/php-stubs-woocommerce-stubs)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)

PHPackages © 2026

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