WordPress plugin intelligence profile

Mr. J Dev Smart Discount Rules

Create advanced auto-apply discount rules beyond default WooCommerce coupons — with role, category, and day-of-week conditions.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.9
Current version1.0.0
WordPress coverageTested up to WordPress 6.9
Minimum stackWP 5.8 · PHP 7.4
Directory statusactive
Last directory update19 May 20265mo ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Mr. J Dev Smart Discount Rules version 1.0.0 as active, updated 5mo ago and tested up to WordPress 6.9.

Overview

About this plugin

Mr. J Dev Smart Discount Rules gives you a flexible, priority-based discount engine on top of WooCommerce. Rules are evaluated automatically at cart/checkout — no coupon code needed.

Discount Types:

  • Percentage — e.g. “10% off the entire cart”
  • Fixed Amount — e.g. “₹100 off cart”
  • Buy X Get Y — e.g. “Buy 2, get 1 free” (cheapest eligible items are discounted)

Conditions (can be combined):

  • Minimum cart spend
  • User role (customer, wholesale, subscriber, etc.)
  • Product category slug present in cart
  • Day(s) of the week (time-based deals like weekend sales)

Rule Control:

  • Priority system — only the highest-priority matching rule fires (no stacking)
  • Enable / disable rules without deleting them
  • Delete rules permanently

The discount appears as a cart fee line item with the rule name as its label, keeping the cart transparent to customers.

Usage Examples

Weekend 15% sale for all users:

  • Type: Percentage | Value: 15
  • Conditions → Days: Saturday, Sunday

₹500 spend → ₹50 off for Wholesale customers:

  • Type: Fixed | Value: 50
  • Min Spend: 500 | Conditions → Role: wholesale_customer

Buy 2 T-shirts, get 1 free (cheapest):

  • Type: Buy X Get Y | Buy: 2 | Get: 1
  • Conditions → Category: t-shirts

How Buy X Get Y Works

The Buy X Get Y rule uses a group-based algorithm that always gives the cheapest qualifying items for free.

Algorithm (step by step):

-

All items in the cart are flattened into individual unit prices.

g. Cart: 2× T-shirt @ ₹200, 1× Jeans @ ₹800, 1× Cap @ ₹150

→ unit prices: [200, 200, 800, 150]

-

Prices are sorted cheapest-first:

→ [150, 200, 200, 800]

-

The number of complete qualifying groups is calculated:

group size = Buy + Get = 3 + 1 = 4

total items = 4 → floor(4 ÷ 4) = 1 group qualifies

-

For each group, the cheapest Get items are free:

→ ₹150 (cap) is free → discount applied = −₹150

The discount is added as a negative cart fee line item labelled with the rule name, keeping the breakdown transparent to customers.

Why cheapest-first?

This prevents customers from gaming the rule by adding one cheap item to get an expensive item free. The cheapest item always fills the free slot.

Only complete groups qualify:

With Buy 2 Get 1 and 5 items in the cart:

→ floor(5 ÷ 3) = 1 complete group → 1 item free (the cheapest)

The leftover 2 items do not form a group and get no discount.

Configuration examples:

  • Buy 1 Get 1 Free → Buy: 1, Get: 1
  • Buy 2 Get 1 Free → Buy: 2, Get: 1
  • Buy 3 Get 2 Free → Buy: 3, Get: 2
  • Buy 4 Get 1 Free (BOGO4) → Buy: 4, Get: 1

g. only T-shirts, only Electronics).

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • auto apply
  • buy x get y
  • pricing rules
  • discount
  • woocommerce
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.9
Minimum requirementsWordPress 5.8 · PHP 7.4
Update activity19 May 20265mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.