Skip to content

B2B Net Terms & Credit Limits changelog

All notable changes to B2B Net Terms & Credit Limits (kv_net_terms_credit_limit) are documented here. The format follows Keep a Changelog and the project uses Semantic Versioning.

  • Compatibility: CS-Cart and Multi-Vendor 4.22.x
  • Rate limits can no longer be bypassed with a forged X-Forwarded-For header; new “Trusted proxies” setting (Settings > Client IP). Before, the credit request limits used the visitor address from CS-Cart’s fn_get_ip(), which believes X-Forwarded-For and other headers any visitor can send, so sending a new fake address with every request reset the limit. The add-on now uses the connection address (IPv6 visitors are counted per /64 network) and reads a forwarded header only from a proxy: it works out of the box behind Cloudflare (the official ranges are built in) and behind private reverse proxies such as nginx, Varnish (the 4.21 full page cache) or a load balancer on a loopback or private address, where X-Forwarded-For is read from the right and the first non-proxy address is the visitor. A proxy with a public address goes into the new “Trusted proxies” list; $config['kv_client_ip_mode'] / $config['kv_client_ip_trusted_proxies'] in config.local.php set it for every Kavio Labs add-on. Settings and data are kept on upgrade.
  • Net terms (pay by invoice) payment method with a PO number field, shown only to customers with an active credit account.
  • Credit accounts per customer (limit, Net 0-365 terms from the invoice date or end of month, status, over-limit rule) and usergroup terms.
  • Credit check at checkout (available credit = limit - open balance) with block or credit review, serialised per customer.
  • Order statuses “Awaiting payment (net terms)” and “Credit review” (stock reserved, not paid, not counted for vendor payouts).
  • Invoices with due dates, PO numbers and terms on order pages, e-mails and the CS-Cart invoice document (plus the kv_net_terms document variable).
  • Secure payment link to pay an invoice online on the same order; failed payments keep the order open.
  • Full and partial payments per invoice or per account (oldest due first), with receipts.
  • Reminders before and after the due date, store notices, optional automatic account hold and release.
  • Customer “Invoices & credit” page, account statements (print / save as PDF, CSV) and an aging report with CSV export.
  • Net terms applications with admin approval or decline.
  • Multi-Vendor: one invoice per vendor sub-order, read-only invoice panel for vendors.