Repeat Postcode

How to spot repeat deliveries to the same postcode in WooCommerce

Flag orders from repeat customers shipping to a familiar postcode

Badges orders where the destination postcode has received more than 2 previous orders and the customer has 3 or more previous paid orders, identifying frequent same-postcode deliveries that may benefit from grouped shipping or local discounts.

Shipping info
The problem

When a loyal customer repeatedly orders to the same postcode, there may be opportunities for delivery consolidation, local courier partnerships, or loyalty rewards. Without a flag, these patterns go unnoticed and cost-saving or retention opportunities are missed.

The solution

OrderBadger can flag orders from loyal customers who repeatedly ship to the same postcode area.

Who this is for

Home goods, grocery, and subscription stores with repeat customers who order regularly to the same address, especially in areas where grouped or local delivery could reduce costs.

At a glance
Registered customers with 3+ prior orders More than 2 previous orders to same postcode Identifies grouped delivery opportunities Badge: Repeat Postcode (grey, info)
People also search for
WooCommerce detect frequent deliveries to same address area how to identify grouped delivery opportunities WooCommerce flag repeat postcode orders for local courier discount WooCommerce WooCommerce consolidate deliveries to recurring postcodes

How it works

Combines two conditions: more than 2 previous orders must have been shipped to the same destination postcode, and the customer must have 3 or more previous paid orders. This identifies habitual same-address deliveries from established customers.

Consider offering local delivery options, grouped shipping discounts, or loyalty rewards for repeat deliveries. If the postcode represents a business address, explore trade or bulk pricing opportunities.

Rule template

Plain English rule Previous orders to same postcode count is more than £2 and customer has 3 or more previous paid orders

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 £2' previous postcode orders to 'more than £5' if you only want to flag highly concentrated delivery clusters.
  • Lower '3 or more previous paid orders' to '2 or more previous paid orders' to catch customers earlier in their repeat pattern.
Add or remove conditions
  • Add 'and order total is over £50' to focus on meaningful repeat deliveries rather than small add-on orders. …more than £2 and customer has 3 or more previous paid orders and order total is over £50
  • Add 'and shipping is not international' to limit this to domestic deliveries where local courier consolidation is feasible. …more than £2 and customer has 3 or more previous paid orders and shipping is not international

Badge preview

Default: Repeat Postcode

When this rule matches

Loyal Customer Frequent Postcode
Previous paid orders: 5  |  Guest: no
Customer has 5 previous paid orders and 4 previous orders to the same postcode. Both conditions exceeded.
Boundary 3 Orders 3 Postcode
Previous paid orders: 3  |  Guest: no
Customer has exactly 3 previous paid orders and 3 previous orders to the same postcode. Both boundary conditions met (postcode count is more than £2, order count is 3 or more).

When this rule does not match

Loyal Customer New Postcode
Previous paid orders: 6  |  Guest: no
Customer has 6 previous paid orders but only 1 previous order to this postcode - below the more-than-2 threshold.
New Customer Repeat Postcode
Previous paid orders: 2  |  Guest: no
Postcode has 5 previous orders but this customer has only 2 previous paid orders - below the 3-order threshold.
Boundary 2 Postcode Exact
Previous paid orders: 4  |  Guest: no
Customer has 4 previous paid orders but exactly 2 previous orders to this postcode. The rule requires more than £2, so the boundary does not pass.

Good to know

  • Postcode matching is based on the full postcode string. Different addresses within the same postcode area all count towards the total.
  • The postcode count includes orders from all customers, not just the current one. A popular delivery area may inflate the count.
  • Guest checkouts are excluded from the customer order count condition.

Frequently asked questions

  • Does the postcode count include orders from other customers to the same postcode?
    Yes. The previous_orders_to_same_postcode_count tracks all orders to that postcode regardless of customer. However, the second condition ensures the current customer is also a repeat buyer.
  • Will exactly 2 previous orders to the same postcode trigger the badge?
    No. The rule requires more than 2 previous orders to the same postcode. The badge appears starting at the 3rd previous order to that postcode.
  • How does this differ from the repeat-destination-postcode rule?
    The repeat-destination-postcode rule only checks postcode frequency. This rule adds a second condition requiring the customer to have 3+ previous orders, so it only flags established customers with a repeat delivery pattern.

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