Qty Limit Check

How to enforce medicine quantity limits on WooCommerce pharmacy orders

Enforce quantity limits on pharmacy and medicine orders

Badges orders containing Pharmacy or Medicines category products when total quantity exceeds 3 items. Regulated products often carry per-order quantity restrictions, and this rule surfaces orders that need pharmacist review before they can be released.

Compliance critical
The problem

Online pharmacies operate under strict regulatory frameworks that limit how much of certain products a single customer can purchase in one transaction. Paracetamol, codeine-containing products, and other over-the-counter medicines are commonly restricted to small quantities. Dispatching an order that breaches these limits exposes the retailer to regulatory penalties and creates a genuine public safety concern.

The solution

OrderBadger can flag pharmacy orders that exceed a quantity threshold and require pharmacist approval before dispatch, with a 1-hour SLA to keep the review process tight.

Who this is for

Online pharmacies, health retailers with a medicines category, and any WooCommerce store selling regulated health products that carry per-order quantity restrictions.

At a glance
Pharmacy or Medicines categories required Threshold: total quantity more than 3 items Severity: critical with 60-minute SLA Approve or Reject interaction buttons Badge: Qty Limit Check (red)
People also search for
WooCommerce pharmacy order quantity limit compliance how to flag orders exceeding medicine purchase limits enforce over-the-counter medicine quantity restrictions WooCommerce WooCommerce paracetamol quantity limit check pharmacy compliance order review for quantity limits WooCommerce

How it works

Checks two conditions: at least one product must be in the Pharmacy or Medicines category, AND total quantity across all items in the order must exceed £3. When triggered, the order lands in your inbox with Approved/Rejected interaction buttons and a 60-minute SLA that starts from the moment the order is created.

Route these orders to your pharmacist or compliance officer for review. If the quantity is within regulatory limits for the specific products ordered, mark as Approved and dispatch. If the order breaches quantity restrictions, mark as Rejected and contact the customer to explain the limit and offer to split the order.

Rule template

Plain English rule At least one product is in the Pharmacy or Medicines category and total quantity is more than £3

Write this (or something similar) in the OrderBadger rule builder. The AI compiler turns it into executable logic automatically.

Make it yours

Adjust thresholds
  • Raise 'more than £3' to 'more than £5' if your regulatory environment allows higher quantities per transaction and you want to reduce false positives.
  • Lower 'more than £3' to 'more than £1' for products with stricter limits, such as codeine-containing medicines where some jurisdictions restrict to 1 pack per sale.
Add or remove conditions
  • Add 'and customer has 0 previous paid orders' to apply stricter scrutiny on first-time buyers, where the risk of stockpiling is harder to assess. …acy or Medicines category and total quantity is more than £3 and customer has 0 previous paid orders
  • Add 'or at least one product is in the Controlled Substances category' if you sell products under additional regulatory categories beyond Pharmacy and Medicines. …acy or Medicines category and total quantity is more than £3 or at least one product is in the Controlled Substances category

Badge preview

Default: Qty Limit Check
Passed: Qty Limit Check
Failed: Qty Limit Check

This badge appears in the WooCommerce order view with action buttons. Your team can respond directly from the badge pill.

When this rule matches

Pharmacy Items Over Limit
Order contains 6 items across Pharmacy and Medicines categories - well above the 3-item threshold.
Pharmacy Boundary Quantity
Total quantity is 4 - just above the 'more than £3' threshold. Even a single unit over the limit requires review.

When this rule does not match

Pharmacy Within Limit
Order includes Pharmacy products but total quantity is 3 - does not exceed the 'more than £3' threshold.
Non Pharmacy High Quantity
Total quantity is 10 but all items are in Vitamins and Supplements - no Pharmacy or Medicines category present.
Mixed Cart Pharmacy Under Limit
Order has 8 items total but only 2 are in the Pharmacy category. Total quantity includes all items, which is 8, but since total quantity counts all items and exceeds £3, this would fire - WAIT, total quantity IS more than £3 here. Correcting: the order has only 2 Pharmacy items and 1 non-pharmacy item, total quantity 3.

Workflow

This rule includes workflow features that help your team act on flagged orders.

Inbox
Yes
Interaction
Approved / Rejected
SLA
1h (from created at)

Good to know

  • The quantity threshold applies to total order quantity, not per-product quantity. An order with 2 different medicines at quantity 2 each totals 4 and triggers the badge.
  • Regulated quantity limits vary by product and jurisdiction. The fixed threshold of 3 is a conservative starting point - your pharmacist should determine the appropriate limit for your product range.
  • The rule does not prevent the order from being placed. It flags it post-purchase for manual review before dispatch.

Frequently asked questions

  • What happens if the pharmacist does not respond within the 60-minute SLA?
    The SLA shows as breached in the OrderBadger dashboard, but the order is not automatically cancelled or released. The breach serves as an escalation signal that the review is overdue.
  • Does total quantity count non-pharmacy items in the order?
    Yes. The total quantity condition counts all items in the order, not just pharmacy items. This is intentional - a large mixed basket that includes medicines warrants the same scrutiny.
  • Can I set different limits for different product types?
    Not within a single rule. Create separate rules for each product type with different quantity thresholds - for example, one rule for paracetamol at quantity 2 and another for antihistamines at quantity 5.
  • Is the Rejected button connected to WooCommerce order status?
    No. The interaction buttons record a decision within OrderBadger. Your team must manually update the WooCommerce order status (cancel, refund, or hold) based on the rejection.

Related rules

Try this rule in your store

OrderBadger is free on WordPress.org. Install it and create this rule in minutes - no code required.

Install OrderBadger Free