Skip to content

Configuration

Open Add-ons → Manage add-ons → Lot & Batch Traceability + Recall Notices → Settings.

Setting Default Description
Enable On Master switch. Off: lots are not allocated and lot numbers are not printed; your records stay in the admin panel.
Track every product by lot Off Off: only products with the Lots & batches tab switched on (or with at least one lot) are allocated. On: every product that has lots is allocated from them. A product you explicitly set to “not tracked” stays untracked.
Default allocation FEFO FEFO takes the lot that expires first (lots without an expiry date last). FIFO takes the lot received first. Manual allocates nothing at placement; you choose on the order page. A product can override this.
Do not sell lots that expire within (days) 0 The automatic allocation skips lots closer to their expiry date than this. 0 skips only lots that already expired. A product can override this.
Order statuses that give the lot stock back Canceled, Declined, Failed When an order reaches one of these statuses its units go back to their lots. An order that leaves such a status is allocated again.
Show lots as “expiring” this many days before the expiry date 30 Used for the “Expiring soon” counter and the amber expiry label.
Setting Default Description
Show the lot number on orders, invoices, packing slips and order e-mails On Adds a Lot entry to the options of each order line, in the admin order page, the customer order page, invoices, packing slips and order e-mails. The core invoice and packing slip templates print it with the other options; no template edit is needed.
Show the lot number to customers On Off: the lot is shown only in the admin panel and in documents printed there.
Also show the expiry date to customers Off Adds “exp. ” after the lot number for customers.
Setting Default Description
Public “Product recalls” page On index.php?dispatch=kv_lbt.recalls lists every active recall that is marked public (product, lot numbers, what is wrong, what to do). Customers who are signed in also get a link in the account menu.
Let visitors check a lot number On A form at index.php?dispatch=kv_lbt.check: a visitor types the lot number from the package and sees the recall notices that name it. Orders and customers are never shown. Limited to 30 checks per visitor address and hour.
Send a copy of the first notice of each batch to the store e-mail On The first notice of each send batch (up to 100 customers) is also sent to the store’s orders department address, so you see what customers receive.

Multi-Vendor only.

Setting Default Description
Vendors manage the lots and recalls of their own products On Vendors get Products → Lots & recalls in their panel for their own products and orders. You see the lots and recalls of the whole marketplace and can run a recall across vendors.

Each product has a Lots & batches tab:

Setting Description
Track by lot Orders take this product from its lots and print the lot number. Turned on automatically when you receive the first lot.
Allocation Store default, FEFO, FIFO or Manual for this product.
Skip lots that expire within (days) Own shelf-life rule for this product. Empty = the store setting.

The tab also shows the units in active lots next to the product stock, the latest lots, and buttons to open or add lots.

The recall notice is an ordinary e-mail template: Administration → E-mail templates → Customer → Recall notice (code kv_lot_batch_traceability_recall). Edit the text there. Available variables: customer_name, title, reason_lines, instr_lines, contact, authority_ref, lines (product, lot, qty, order_id), notice_url.

The add-on checks its license key for your store’s domain once a day from the admin panel (never from the storefront). Development hosts such as localhost always work.

License status card

Key Enter it in Settings → License, or use the CS-Cart Marketplace license number in Add-ons → Manage add-ons.
Check now The Check now button on the License tab repeats the check at once.
Server not reachable The add-on keeps working during a grace period.

Without a valid license: lots are no longer allocated to new orders, lot numbers are not printed on orders and documents, and new lots, recalls and notices cannot be created. Your lot register, order history, recall records, exports and the notice pages that are already published stay available, because a safety notice should not disappear.

The lot check on the storefront counts requests per visitor address. A forwarded header such as X-Forwarded-For can be sent by anyone, so the add-on only reads it when the connection really comes from a proxy. This works out of the box behind Cloudflare and behind private reverse proxies (nginx, Varnish, a load balancer on a loopback or private address). Open the Client IP tab of the add-on settings only if you need to change it:

Setting Default Description
Where the visitor IP address comes from Automatic: Cloudflare and private reverse proxies Automatic: CF-Connecting-IP when the connection comes from a Cloudflare address; X-Forwarded-For (read from the right, proxies skipped) when the connection comes from a loopback or private address or a listed proxy. Direct connection only: every forwarded header is ignored.
Trusted proxies empty Only for proxies with a public address: addresses or CIDR blocks, one per line or separated by commas (IPv4 and IPv6).

To set it once for every Kavio Labs add-on, put this in config.local.php (a value there wins over the add-on setting):

$config['kv_client_ip_mode'] = 'cloudflare'; // cloudflare (automatic) | proxy | direct
$config['kv_client_ip_trusted_proxies'] = '203.0.113.50'; // public proxy addresses only