Limited quantity (product limit)

Limited quantity (product limit)

UA

US

UA

US

RU

1. Introduction

Definition

"Limited quantity" is an offer setting in Leeloo.AI that lets you set a finite stock of a product whose sales need to be tracked. When the product is sold out, the platform automatically blocks new orders and redirects the buyer to a default "out of stock" page or to a custom URL set by the B2B operator.

This setting belongs to the Convert stage of the customer lifecycle — it directly affects the moment of payment and prevents oversell (selling a product that does not exist). At the same time, the setting participates in the Manage stage — operational stock accounting, sync of offline and online sales, and manual quantity correction.

Architecturally, "Limited quantity" is a parameter of the Offer entity in the Sales Tunnels → Offers module. The field is written to the offer card and read by Payment Gateways (stock check before charge), Orders & Sales (sales statistics), and Dashboard (turnover metrics).

The B2B operator (administrator, product manager, marketer) uses "Limited quantity" to control scarce items — limited-edition products, event seats, capsule collections, one-time services. The operator sets the starting quantity, can adjust the stock manually at any time, and can specify a custom redirect URL if needed.

The B2C customer interacts with the setting indirectly: they see an active offer, place an order — if the product is out of stock, clicking "Buy" redirects them to the default out-of-stock placeholder or to the page specified by the operator. This preserves trust in the brand and avoids the frustration of paying for a non-existent product.

In the Client's Card, at the moment of a successful purchase, the fact of ordering a limited-stock item is recorded — which enables further analysis of scarce-item buyer behavior and segmentation for repeat offers.

After reading you will understand:

  • how to enable the "Limited quantity" setting in an offer;

  • how to set the starting quantity and change it manually;

  • what happens to the buyer when the product is sold out;

  • how to configure a custom redirect page for sold-out items;

  • how to synchronize stock when sales happen offline;

  • which lifecycle stages this feature belongs to and which modules it interacts with.

Purpose

The "Limited quantity" setting closes a key operational e-commerce task — preventing oversell and keeping accurate stock right at the payment moment. This reduces refunds, protects the brand reputation, and helps plan replenishments.

At the Manage stage the setting gives the operator an accurate picture of stock: the offer card field always reflects real available quantity. The operator can manually "zero out" a position when sold offline or, conversely, raise the quantity after restock. Job — keep stock accuracy in real time.

At the Convert stage the setting acts as a payment-funnel safeguard: while the counter is positive — the buyer flows from view to payment; the moment the counter hits zero — the "Buy" button leads to the placeholder or the operator's custom URL. Job — don't lose conversion to a technical glitch and don't sell what isn't there.

At the Retain stage the custom redirect page becomes a recovery touchpoint: the operator can route the buyer to a "back in stock" notification form, a similar offer, or a landing with alternatives. Job — turn a stock-out rejection into preserved interest and a new sale opportunity.

2. Configuring limited quantity

The setting is managed from the offer card under "Sales Tunnels" → "Offers". Inside the card, open the additional-settings block and activate the corresponding checkbox.

2.1. Enabling the limit and setting the starting quantity

To enable a quantity limit, follow these steps:

  1. Go to the additional settings of the offer;

  2. Check the box next to "Limited quantity";

  3. Enter the available product quantity in the field on the right.

Once saved, the counter becomes active: each successful purchase decreases it by one. When the counter reaches zero, the offer automatically closes to new orders — but stays visible in the catalog for browsing and analytics.

2.2. Behavior when out of stock

When the product is sold out, the quantity in the offer settings changes to 0, and customers clicking the "Buy" button are redirected to a default page with a message that the product is out of stock.

You can set your own redirect page to which customers will be sent if the product is out of stock. This is useful for customer retention — for example, to offer a similar item or a back-in-stock subscription.

To do this, check the box next to "Redirect to page when out of stock" (1) and enter the page URL (2):

2.3. Manual stock adjustment

The available product quantity can be changed at any time — even if the product is already sold out in the offer and the settings display "0". Just open the offer card and update the field.

Also, if the product is actually out of stock (e.g., purchases happened outside the platform — offline, at an event, through another channel) but the offer shows a positive quantity, set the product quantity to "0". This closes online sales and prevents oversell.

Tip: if you sell through multiple channels (platform + offline), sync stock regularly — otherwise customers may pay for items that are physically gone. For frequent syncs, consider automating via API.

Warning: when you manually drop the quantity to zero, already placed but unpaid orders remain valid — the system will not auto-cancel them. To cancel pending purchases, do it manually in the "Orders & Sales" section.

Related instructions

Instruction

Purpose

Instruction

Purpose

Creating and editing offers

Base instruction on creating and editing offers in Leeloo.AI.

Orders & Sales

"Orders & Sales" section — placed order accounting, payment statuses, manual cancellation.

Analytics within the offer

Analytics for a specific offer — orders, rejections, returns, and views statistics.

Sales Tunnels

Sales Tunnels — the module that hosts offers and the conversion logic.

Notification on failed payment

A companion mechanism for cases where the buyer could not complete payment due to stock.

Key terms

Term

Explanation

Term

Explanation

Limited quantity (Product Limit)

Leeloo.AI offer setting that caps the number of available purchases of a given product at a finite number. On reaching zero it blocks new orders and redirects the buyer to a placeholder or custom URL.

Offer

A Sales Tunnels entity describing a paid product or service: price, payment method, terms, variables. Limited quantity is one of the additional offer fields.

Sales Tunnels

Leeloo.AI platform module where offers, message chains, and lead-to-customer conversion logic live.

Oversell

A situation where the platform accepts an order and payment for a product that is physically unavailable. Limited quantity is the standard defense against oversell.

Redirect when out of stock

An additional offer setting specifying the URL to which the buyer is redirected when attempting to purchase a sold-out item. Without it, the default Leeloo.AI page is used.

Client's Card

The platform's central data entity: a single client record that every module reads from and writes to. The fact of purchasing a limited item is recorded here.

Orders & Sales

A module for tracking placed orders: payment statuses, manual cancellation, returns. Connected to "Limited quantity" — cancellation of pending orders after the counter hits zero happens here.

Convert

A customer lifecycle stage in Leeloo.AI PRD: moment of payment, lead-to-customer transition. The "Limited quantity" setting operates at this stage.

Manage

A customer lifecycle stage in Leeloo.AI PRD: operational control over platform processes and data, including stock accounting and sales sync.