📦 Orders
Abandoned Cart Detection

Automatic Abandoned Cart Detection

Rolly automatically tracks unpaid orders that have not been completed and turns them into abandoned carts after 24 hours of inactivity.

How it works

Every hour, Rolly checks your orders and updates them if they match all of these conditions:

  • The order is still pending and unpaid.
  • It was last updated more than 24 hours ago.
  • The customer hasn't been identified (no customer ID, phone number, or email).
  • The order hasn't been deleted or archived.

When all of these apply, the order type changes from regular to abandoned_cart.

Why it matters

This helps you:

  • See which carts were never completed.
  • Measure drop-off rates accurately.
  • Trigger marketing or reminder workflows only on real abandoned carts.
  • Keep analytics clean by separating abandoned carts from active or paid orders.

Frequency

The check runs automatically every hour. You don't need to schedule or run anything manually.

Automatic Reclassification

When a customer returns and interacts with their abandoned cart - for example, updating items or starting checkout again - Rolly automatically reclassifies it back into a regular order.

How it works

Each time an order is updated, Rolly checks:

  • Was it previously marked as an abandoned cart?
  • Did the system detect a new activity or change (like an item edit, quantity update, or new timestamp)?

If both are true, Rolly resets the order type from abandoned_cart back to regular.

Why it matters

  • Keeps your analytics clean - carts that come back to life aren't counted as lost.
  • Helps automation rules (like follow-up emails) stop once the customer is active again.
  • Keeps your order list consistent and easier to track in reports.

No action needed

This happens automatically whenever the order record changes. You don't need to manually switch the type or run any scripts.

Notes

  • If a customer completes payment later, Rolly automatically returns the cart to the correct paid status.
  • Orders with valid contact info or linked customers are not marked as abandoned.