• Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • English
    • Chinese
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • English
    • Chinese
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • English
    • Chinese

Mr. J Dev Smart Discount Rules

  • Home
  • Trends
  • Mr. J Dev Smart Discount Rules
Mr. J Dev Smart Discount Rules
  • 2026-05-19
  • by LethaldiranMX
  • Trends
  • 0 Comments
Developer Mr. J
Version v1.0.0
Active Installs 0 +
Requires / Tested 5.8 / 6.9.4
Last Updated 2026-05-19 12:07pm GMT
Official Link View Details →
Create advanced auto-apply discount rules beyond default WooCommerce coupons — with role, category, and day-of-week conditions.

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):

  1. All items in the cart are flattened into individual unit prices.
    e.g. Cart: 2× T-shirt @ ₹200, 1× Jeans @ ₹800, 1× Cap @ ₹150
    → unit prices: [200, 200, 800, 150]

  2. Prices are sorted cheapest-first:
    → [150, 200, 200, 800]

  3. The number of complete qualifying groups is calculated:
    group size = Buy + Get = 3 + 1 = 4
    total items = 4 → floor(4 ÷ 4) = 1 group qualifies

  4. 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

Combine with a Product Category condition to restrict the rule to specific product lines (e.g. only T-shirts, only Electronics).

  • auto apply,
  • buy x get y,
  • discount,
  • pricing rules,
  • woocommerce,
  • wordpress plugin
Previous Post

ShopperQuiz

Next Post

Anonindo Performance Optimizer

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Thoughts (1)
  • Trends (1,242)
  • Tutorials (1)

Recent Posts

2026-10-14
Agrunert E-Rechnung for ZUGFeRD
2026-10-13
Rotascore Live Scores Widget
2026-10-12
Ettrick Escape Room Booking
2026-10-11
Qrlastica – QR Code Generator with
2026-10-10
Anchormender – Internal Link Suggestions, Orphan

Archives

  • October 2026
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026

Tags

accessibility admin AI analytics automation backup blocks booking calendar chat chatbot checkout contact form contact form 7 content customer support ecommerce elementor forms GDPR GEO gutenberg lead generation live chat llms.txt login openai optimization payment gateway performance popup privacy products rest-api Schema security SEO shipping shortcode support tracking whatsapp widget woocommerce wordpress plugin
  • shape1
  • shape2
  • shape3
  • shape4
  • shape5
  • shape6
  • shape7

Newsletter SignUp!

    About Us

    GROWTH,ARCHITECTED.
    Empowering global brands through data-driven SEO, high-performance web development, and AI-forward strategies.

    Information

    • Extensions
    • Strategies
    • Creatives
    • Plugins

    Services

    • AI & Strategy
    • Growth Marketing
    • Operations & CRO
    • Tech & Analytics

    Office Address

    • Nan'an District, Chongqing
    • +86-133-1028-2690
    • [email protected]
    • +86-133-1028-2690
    © Copyright AEOSUB 2026 | Digital Growth & Full-stack Operations
    • Home
    • About
    • Case Study
      • Case Study 1
      • Case Study 2
      • Case Study 3
      • Case Study 4
      • Case Study 5
    • Elements
      • Blog
        • Blog Post 1
        • Blog Post 2
        • Blog Post 3
        • Blog Post 4
        • Blog Post 5
        • Blog Post 6
      • Service
        • Service Gallery 1
        • Service Gallery 2
        • Service Gallery 3
        • Service Gallery
        • Service Gallery 5
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Testimonial
        • Testimonial – 1
        • Testimonial – 2
        • Testimonial – 3
      • Contact Info Box
        • Contact Info Box 1
        • Contact Info Box 2
      • Info Box
        • Info Box 1
        • Info Box 2
        • Info Box 3
      • Miscellaneous
        • Brand Showcase
        • Counter 1
        • Progress Bar
        • Progress Box Image
        • Radius Button
        • Section Title Subtitle
      • Pricing
        • Pricing Plan 1
        • Pricing Plan 2
        • Pricing Plan 3
        • Pricing Plan 4
        • Pricing Plan 5
    • Pages
      • Service
        • Service Archive
      • Case Study
        • Case Study Archive
        • Single Case Study 1
        • Single Case Study 2
        • Single Case Study 3
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Typography
      • 404 Error
    • Blog
      • Blog 1
      • Blog 2
      • Blog 3
    • Contact
    Follow Us
    FREE ANALYSIS
    • Home
    • Services
      • Col 1
        • Tech & Analytics
        • Web Development
        • Technical Audit
        • Analytics & Tracking
      • Col 2
        • Growth Marketing
        • SEO Strategy
        • SEM & PPC
        • Social Growth
      • Col 3
        • AI & Strategy
        • Al Search (GEO)
        • SEO Content
        • Growth Consulting
      • Col 4
        • Operations & CRO
        • Conversion (CRO)
        • AI Automation
        • Full-stack Ops
    • Projects
      • Strategies
      • Plugins
      • Extensions
      • Creatives
    • Insights
    • About
    • Contact
    • English
      • Chinese
    Follow Us