End-to-end quotation engine for Vendure:
Works on MySQL, MariaDB and PostgreSQL. Admin UI included (Quotes, editor with catalogue search, Settings, a Help drawer and a set-up checklist), a dashboard widget, and a weekly report by email. Licence activation in the admin, one-click in-app updates.
Catalogue search in the editor reads Vendure's search index once the
channel has been indexed (the default search plugin's search_index_item
table) and falls back to the live product tables when it is empty or absent,
so it works with or without the default search plugin.
SMTP comes from SMTP_SERVER / SMTP_PORT / SMTP_USER / SMTP_PASSWORD
/ SMTP_FROM (or pass smtp in init()).
Post JSON from your storefront (server-side or from the browser — the
endpoint is public and CORS follows your Vendure apiOptions.cors). Send
the channel's token so the request lands on the right channel:
The quote appears under Sales → Quotations as requested; price any
free-text lines, then Send to customer. Turn requests off per channel in
Settings. Requests are throttled (10 an hour per client and 10 an hour per e-mail
address, the latter counted in the database) and a hidden website field
discards bots. A request posted with the customer's shop session (cookie or
bearer token) is linked to their account and shows under "My quotes"; guest
requests are never linked by e-mail address.
Prices and VAT. Catalogue lines are priced the way the channel prices them. On a channel with prices include tax the variant price already carries VAT, so the quote is VAT-inclusive: its total is the basket total and the VAT inside it is shown separately ("Includes VAT (20%)"). Otherwise VAT is added on top. The rate is the variant's own (its tax category in the channel's default tax zone). New admin quotes follow the channel too, and the editor's Pricing step has a Line prices include VAT switch.
If your storefront relays the request from its own server, every visitor
reaches the API from that server's address and shares one per-IP budget. Pass
the visitor's address in x-real-client-ip with a shared secret, and tell the
plugin to trust it (off by default; the header is ignored without the secret):
The address the request was counted against is kept on the quote
(requestIp) for the admin.
Only quotes linked to the customer's account are listed (staff link them with the customer picker); drafts are never shown.
Every message the plugin sends shares one design: a 600px white card, your logo (or business name) over a 3px bar in your accent colour, a heading, the quote's reference, validity and total in a summary box, a button, a "Kind regards" sign-off with your reply-to address, and a footer strip with your address, phone, website and footer note. Inline styles only, with a plain-text part. It is set from Settings (business name, logo URL, accent colour, reply-to, address, phone, website, footer note); nothing extra.
{{quoteUrl}} on a line of its own, else before your sign-off.GET /quotations/quote/:token/pdf (the customer link, rate-limited, never
cached, does not count as opening the quote) and GET /quotations/quotes/:id/pdf
(admin). Built in, no dependency: A4, Helvetica, Western European text
(other scripts print as "?"; the customer page shows every language). Turn on
Settings → Attach the quote as a PDF to attach it to the quote e-mail.
With HULO Payments for Vendure installed (or your own provider passed as
payLinks in init()), an accepted quote can be paid online: the quote
becomes a draft order at the quoted total, the order moves to
ArrangingPayment (a free shipping method is chosen when the channel has one;
otherwise the admin is told what is missing), and the customer gets a pay
link. Turn on Settings → Pay link on acceptance to do this the moment the
customer accepts, or use Create pay link on the quote. The quote is marked
paid when the order's settled payments cover the quoted total. Quotations
works the same with or without HULO Payments.
Deposits (premium): set a percentage (and optionally a per-currency
threshold, e.g. GBP 1000, EUR 1200) or a per-quote override. The customer
pays the deposit link first, then the balance link, both on the same order;
deposit + balance equal the quoted total exactly.
Types: created, requested, updated, sent, viewed, accepted,
declined, expired, cancelled, converted, paid, payment,
approval, followup, deleted.
X-Hulo-Signature: sha256=HMAC-SHA256(secret, "<X-Hulo-Timestamp>.<body>")),
Slack or Microsoft Teams. Events: request created, quote sent, opened,
accepted, declined, paid, expired, converted, approval requested. Public
addresses only, retries with back-off, a 30-day delivery log.Sales → Quotations (requires the ReadSettings permission; writes need
UpdateSettings). The page has five tabs — Quotes (inbox, KPIs per
currency, detail with payment, deposit and approval, activity trail), the
step-by-step editor, Reports (12 months; sales by staff and source),
Templates, and Settings — plus a
Help button in the header that opens a three-step drawer (New quote →
Send → Convert).
Dashboard → Add widget → Quotations adds a card with the last 7 days' quotes sent, accepted and value won, the licence notice when one applies, and a link into the page.
The weekly report and the set-up checklist are premium (licence or the 14-day evaluation). Without premium the report is not sent and the checklist is not shown; their settings are kept and they resume when a licence is active.
Set-up checklist. The top of the Quotes tab shows what is left to do,
each item checked against the real state: an email server reachable
(SMTP_* env or the smtp option), a reply-to or notify address saved
for a channel, your business name or logo saved, quote requests arriving
from the storefront (or dismissed, if you only quote by hand) and the
first quote sent. Hide collapses it; it disappears for good once every
item is done and comes back if one becomes undone.
Weekly report. Every Monday at 08:00 (server-local time) the plugin emails one short report for the week just gone: quotes created, sent and accepted, value won from accepted quotes, storefront requests received and the win rate on quotes sent, each against the previous week, plus up to three next steps taken from the checklist. The numbers are the same ones the plugin reports anonymously to the licence server (counts and totals only, never customer data).
SMTP_SERVER,
SMTP_PORT, SMTP_USER, SMTP_PASSWORD, SMTP_FROM or smtp in
init()); without them nothing is sent and the test button says why.disableCron: true also disables it.Endpoints (admin session): GET /quotations/setup,
POST /quotations/setup/dismiss, GET|POST /quotations/digest/settings,
POST /quotations/digest/send-test, GET /quotations/digest/preview,
GET /quotations/widget.
Unlicensed installs run in the free tier, with a 14-day evaluation of the premium features (no card). Free: building, sending, test sends, mark as sent, the customer page with signature, PDF, storefront requests, "My quotes", the chaser and expiry reminder, auto-expiry, pay links on acceptance, KPIs, the 12-month report and EventBus events. Premium (licence from https://huloglobal.com/vendure-plugins/quotations/): converting to a draft order from the admin, templates, follow-up sequences, discount approval, webhooks, sales reports with CSV, deposits, the weekly report and the set-up checklist.
Pick monthly or annual on the plugin's admin banner and click Subscribe (cancel any time), or choose lifetime — checkout opens in a new tab and the key installs itself within a minute. You can also buy at https://elite.charity/licence/buy/vendure-plugin-quotations and paste the emailed key into the admin.
All notable changes to @huloglobal/vendure-plugin-quotations are
documented here. The format follows
Keep a Changelog and this project
adheres to semantic versioning.
publicBaseUrl host and the HULO licence server keeps one evaluation per site
(localhost and private hosts are keyed on the install's public address network). A reinstall, a
new database or a new container hostname picks up the original evaluation; once it has ended it
stays ended. Days left come from a signed answer counted on a monotonic clock, so changing the
system clock or blocking the licence server can't extend it. Licensed installs are unaffected.@huloglobal/vendure-licence-sdk ^0.15.8.pricesIncludeTax setting: a request, and a new admin quote, follow the channel. On a VAT-inclusive quote
the lines and a fixed discount are gross, the total is the basket total exactly, and the VAT inside it is
split out (net = total ÷ (1 + rate)); subTotalPence/discountPence stay ex-VAT and
subtotal − discount + VAT = total, so conversion, the order surcharge, deposits, reports, webhooks and
events read them as before. The quote page, the PDF and the admin show "Unit inc. VAT", "Subtotal (inc.
VAT)", "Total" and "Includes VAT (x%)". Converting such a quote adds no VAT surcharge (the draft order
already matches), and the checkout re-balance ignores Vendure's per-line net rounding.trustedClientIp: { secret, header?, secretHeader?, trustedProxies? }: x-real-client-ip is believed only
with the shared secret (header x-quotations-proxy by default, or HULO Checkout Guard's
x-checkout-guard-proxy) and, if listed, from a trusted peer. Off by default. The counted address is
stored on the quote (requestIp).pricesIncludeTax = 0, as they were priced. Requests that
nobody has edited or sent yet (status requested) on a VAT-inclusive channel are re-priced once at start-up,
with a "repriced" trail entry showing the old and new totals. Quotes already sent are left as they are.^0.15.7; dev dependencies refreshed to the latest minor versions (TypeScript 5.9, Vitest
2.1, @types/nodemailer 6.4). Held back: TypeScript 7, Vitest 5 (the monorepo harness pins Vitest 2) and
@types/nodemailer 8 (the types for nodemailer 8+, while the peer range starts at 6).Parity with HULO Quotations for WordPress (free 0.1.4 and Pro).
PREMIUM_FEATURES lists what is actually gated (storefront requests were listed but never gated).GET /quotations/stats
reports valueByCurrency per status, pipelineByCurrency and last30.valueWonByCurrency (minor units per
currency; value and last30.valueWonPence are gone). The weekly report, the admin banner and the dashboard
widget show value won per currency ("£1,234.56 + €500.00"). The anonymous heartbeat figure valueWonPence
counts the store's main currency only.QuotationEvent (exported) for created, requested, updated, sent, viewed, accepted,
declined, expired, cancelled, converted, paid, payment, approval, follow-up and deleted, with a quote summary
(no token, no internal notes).POST /quotations/quotes/:id/mark-sent): the store shared the quote itself; a draft or
request opens for the customer without an e-mail.validityDays) and its date starts
when it is first sent (or marked as sent). A resend keeps the date; a quote whose date has passed must be
extended first.GET /quotations/quotes/:id/page): not counted as an opening, the
accept form is switched off.GET /quotations/quote/:token/pdf from the customer link
(rate-limited, not an opening, never cached), GET /quotations/quotes/:id/pdf for staff, a Download PDF
button on the customer page and an optional attachment on the quote e-mail (Settings → Attach the quote as
a PDF).GET /quotations/my (shop session, channel from vendure-token)
lists the customer's own quotes (by account, never by e-mail; drafts hidden; requests as "awaiting price")
with quote, PDF and pay links. A request posted while signed in is linked to the account; guest requests are
no longer linked to an account by e-mail address.GET /quotations/reports/monthly, Reports tab): created, sent, accepted, win rate and
value won per currency per month.payLinks provider to init(). The quote is marked paid when the order's settled payments cover the total.
The converted draft order now carries the quote's customer.X-Hulo-Signature: sha256=HMAC(secret, "<timestamp>.<body>"),
Slack and Microsoft Teams presets; public http(s) addresses on standard ports only, checked on save and on
every delivery with the connection pinned to the checked address; no redirects; retries with back-off (six
attempts); 30-day delivery log with retry and test.quotation_template, quotation_followup, quotation_approval, quotation_webhook_log,
quotation_deposit and new nullable / defaulted columns, created on start-up on MySQL, MariaDB and
PostgreSQL. Tested with Vendure 3.8.2; @vendure/core >=3.5.0 <4.0.0.createPayLink(ctx, { orderCode, amount?, currency, description, customerEmail?, returnUrl?, expiresInHours?, reference?, metadata? }) → { url, ref } on an
exported service (PayLinkService or PaymentsService), or a payLinks provider in init().ArrangingPayment. A draft order converted from a quote
then picked up catalogue price or promotion changes made after the conversion: in the e2e test a price rise
from 100.00 to 125.00 moved the accepted 168.00 quote to 198.00 at checkout. The plugin now adds an order
process that re-balances the quote surcharge right after that recalculation, in the same transaction, so the
order total (before shipping) and its VAT split match the quote again; the quote's history records a
repriced event. Orders whose lines an admin has changed since the conversion follow the catalogue as
before. Shipping is not part of a quote and is not touched. No change on Vendure 3.5 to 3.7, where the
transition does not recalculate.isAdminApiSession from the licence SDK 0.15.6, the same rule as Vendure's own AuthGuard). The admin UI
is unaffected; administrators logged in before the 3.8 upgrade log in again once, as Vendure already
requires. No change on Vendure 3.5 to 3.7.@nestjs/graphql 14, Apollo Server 5), as well as 3.5 to 3.7.
The peer range stays @vendure/core >=3.5.0 <4.0.0; nothing here needs 3.8.@huloglobal/vendure-licence-sdk ^0.15.6.license field is now AGPL-3.0-only, matching LICENSE, which grants the GNU Affero
General Public License version 3 (it said SEE LICENSE IN LICENSE). Published npm builds remain under the
separate commercial licence described in LICENSE. No code changes.UPDATE on Postgres reported 2 affected rows, so the plugin's "exactly one row changed" checks always failed. Creating a quote stopped with "Could not allocate a quote number", and the same check broke logging a customer's first view, recording an acceptance and converting a quote to a draft order. The plugin now requires licence SDK ^0.15.4, which reports the real count. Verified against PostgreSQL 17. The first weekly report is no longer skipped either (it used to start a week late). MySQL and MariaDB were not affected.GET and POST /quotations/quote/:token, whose address carries the quote's secret token) and the admin previews (GET /quotations/quotes/:id/preview, GET /quotations/digest/preview) now send Cache-Control: private, no-store, on their refusals and not-found pages too, so no browser, proxy or CDN keeps a copy. The other HULO plugins already send it on their report previews.POST /quotations/request is public, so anyone could make the store e-mail any address with their own wording (the typed name and free-text line descriptions went into {{customerName}} and {{summary}}). The acknowledgement now greets with "there", lists only catalogue lines by their catalogue name plus a count of items still to price, and goes at most once per address per day (checked in memory and against the event log, so restarts and other processes count) with a cap of 30 per hour per process. Catalogue-matched request lines are always described by the catalogue name. The merchant notification is unchanged.v); an acceptance whose fingerprint no longer matches (the quote was edited after it was opened) is refused with "This quotation has changed since you opened it" and the page shows the current version. The conditional update also re-checks the total. An accept POST without v is refused, so a page opened before the upgrade needs a reload; declines need no fingerprint.CreateOrder permission on the channel the order is created in (previously UpdateSettings on the open channel was enough).GET|POST /quotations/digest/settings, POST /quotations/digest/send-test, GET /quotations/digest/preview.GET /quotations/setup, POST /quotations/setup/dismiss.GET /quotations/widget.meta / licence/status gain notice, premiumFeatures, recentStats and buyUrl.quotesCreated, quotesSent, quotesAccepted, valueWonPence, requestsReceived, winRatePct (counts and totals only). Licensed installs keep reporting via the heartbeat.https://elite.charity/licence/buy/vendure-plugin-quotations; the admin UI renders any licence-required error as one sentence pointing at the banner.eval.leadEmail) as the report's last-resort recipient.@huloglobal/vendure-licence-sdk ^0.15.0. New shared table hulo_plugin_prefs (created on boot; shared by all HULO plugins).search_index_item) when the channel has been indexed: translated names, SKU and channel price live in one table, so no translation joins. It searches in the admin's language, falls back to English index rows, and to the live product-variant tables when the index is empty or absent (Elasticsearch hosts, before the first reindex). Results and their shape are unchanged; the decision is re-checked every minute.tests/pg-corpus.test.ts, runs when HULO_PG_URL is set) extracts every SQL statement in src/, translates it with the SDK's dialect adapter and prepares it against a scratch database with quoted stand-ins for the Vendure tables, so a quoting or dialect regression fails the unit suite.(channelId, reference) is unique.enabled IS TRUE instead of = 1) and in non-English shops (the admin's language, falling back to English).requested quotes are no longer served on the public quote URL before they are priced.POST /quotations/request lets any site — a basket, a product page, a calculator or a plain form — ask for a quote. Each request lands in the admin as a requested quote with catalogue lines (by variant id or SKU) pre-priced at the channel's list price, free-text lines left for you to price, the customer's message and where it came from. The channel's notify address gets the details, and the customer receives an acknowledgement carrying the quote reference (editable template in Settings). Existing customers are linked by email.website field acts as a honeypot, and the endpoint never needs a licence — sending the finished quote does, as before.quotation.requestMessage / requestSource / requestedAt, quotation_config.acceptRequests / requestAckBody (added automatically on boot).hulo-global-logo.svg is now the HG wordmark on the HULO black rounded square (the same mark as the huloglobal.com header), with explicit -light and -dark variants alongside the auto-switching default..env edit, no restart. Renewed subscription keys are picked up automatically too. New admin endpoints licence/purchase-link and licence/claim-status.@huloglobal/vendure-licence-sdk ^0.12.0.{{staffName}} variable signs the email body, and accept/decline/
opened notifications reach them directly.