Wholesale and quotes
Wholesale is for orders like 20 hammocks from a workshop in Cambodia to a campsite in Korea. Everything stays a file in your repository, and payments go straight to your own accounts.
What you get
| Part | What it does |
|---|---|
| Product details | Volume prices, minimum order, sample price, production time, capacity and what can be customized, shown in a Wholesale box on the product page |
| Volume prices in the cart | Optional. The cart uses the volume price once a buyer has enough of a product |
| Quote request | A form at /quote/ (and /<language>/quote/). The request reaches you as a notification with a link that starts a quote in the admin |
| Quotes | Made in the admin. Each quote has its own page in the buyer's language, with payment buttons, delivery terms and production progress |
| Documents | Printable proforma invoice, commercial invoice and packing list for each quote, with labels in your language and the buyer's |
Turn it on
- In Admin → Shop details → Wholesale, tick Offer wholesale.
- Choose your country of origin (printed on invoices) and, if you have one, your tax or business ID.
- Open a product, press Add wholesale details and fill them in (see below).
- Press Publish.
The footer of your shop then links to the quote request page, and Quotes appears in the admin menu. Turn wholesale off to hide the Wholesale boxes, the request page and volume prices in the cart; quote pages you have already sent keep working.
Notifications
Quote requests are sent to your notification channel. Set up Telegram or a webhook first. Without one, the buyer sees the request written as a chat message and sends it to you with one of your contact apps.
Wholesale details of a product
| Field | Example | Notes |
|---|---|---|
| Unit | piece | piece, set, pair, dozen, box, carton, bag, roll, sheet, kilogram or meter. Shown with the right plural in each language ("20 pieces") |
| Minimum order | 10 | The smallest quantity a buyer can ask a quote for |
| Volume prices | from 10: 32, from 50: 27 | The price of one unit from a quantity on, before option prices. Below the first quantity the normal price applies |
| Use volume prices in the cart | on | The cart counts the quantity of a product across all its options: 6 green and 4 indigo hammocks reach the price "from 10" together |
| Sample price | 45 | Leave empty if you do not send samples |
| Production time | 3 weeks | Shown on the product page and copied into quotes made from a request |
| Production capacity | 40 per week | Shown as "About 40 pieces a week" |
| Can be customized | colour, logo | Also size, packaging and label. Buyers tick these in their request |
| Note | text | For example how the goods are packed |
Products with wholesale details can be added to the cart in quantities up to 9,999 per line; other products up to 99. Volume prices in the cart are rounded to the smallest unit of your currency, like all cart prices.
Quote requests
On the request page the buyer chooses up to 20 products with quantities and options, ticks what should be customized, and can ask for a sample first, give a date and choose the delivery terms they prefer (EXW, FOB, CIF, DAP or DDP, each explained in one plain sentence). Their name, the country to ship to, and an email address or phone number are required; notes can be up to 1,000 characters.
The server checks every request: known products, whole quantities, the minimum order of each product. You receive one notification in your shop's language with the products, quantities, options, the buyer's details and notes. Near the top is a link like https://<your-shop>/admin/#rfq=…. Open it, sign in, and the admin creates a new quote with the products, quantities, options, volume prices and samples already filled in.
The link itself contains no email address or phone number. The request is not stored anywhere else: keep the notification.
Make a quote
Open Admin → Quotes and press New quote, or use the link from a request.
- Buyer: name, company, country and the buyer's language. The quote page is shown in that language, even if your shop does not offer it.
- Items: pick a product to fill in its name and the volume price for the quantity, or add any other item. Each item has a quantity, unit, unit price, options text and an optional HS code (the customs code printed on invoices). Unit prices can have up to four more decimals than your currency, for example 0.035 USD a piece; each line total is rounded once.
- Samples, shipping (cost, method, delivery terms, weight, boxes and box size), discount, deposit percentage, production time, valid until and country of origin.
- Terms in your language and the buyer's. The Translate button fills in the buyer's language when automatic translation is available.
The totals update as you type. Press Publish; about a minute later the quote page is online. Use Copy link, or send the link with WhatsApp, Telegram, LINE or email from the quote: the message is written in the buyer's language.
Your repository may be public
Quote files are saved in shop/quotes/ in your GitHub repository. Write only the buyer's name, company and country. Never put an email address, phone number or street address in a quote; exchange those by message. The build warns you if a quote file contains an email address.
The quote page
The page is at /q/<id>/, where the id is 12 random letters and numbers. It is shown in the buyer's language, with a link to a copy in your language. Search engines are asked not to index it, it is not in the sitemap, and nobody can find it without the link.
It shows the items with photos, totals, shipping method and delivery terms with a short explanation, production time, the payment plan, progress with dates, notes, photos and tracking numbers, your terms, the three documents and your contact apps.
Payments. The page offers only what can be paid now:
| Situation | Buyer can pay |
|---|---|
| Deposit set (for example 30%), nothing paid yet | The deposit, or the full amount |
| Deposit received | The balance |
| Deposit 0% (or 100%) | The full amount |
| Valid-until date passed and nothing paid | Nothing; the page asks the buyer to message you |
| Draft, canceled or delivered | Nothing |
Stripe and PayPal appear when their keys are set (Payments); the amount is always calculated on the server from the quote file. When bank transfer is on in Payments, the page shows your bank details with the quote number to write on the transfer, and an I have sent the payment button that notifies you. Card and PayPal payments notify you once, with the quote number, the part paid and the amount.
Record payments and progress
When money arrives, open the quote and enter the date under Payments received. After you publish, the page shows that part as paid and asks only for the rest. Setting the status to Deposit received fills in today's date for you.
The amount of a received deposit is kept with the quote. If you change the quote afterwards, for example 10 more pieces, the balance is the new total minus the deposit the buyer really paid.
Each new status (accepted, deposit received, in production, ready to ship, shipped, delivered) adds an entry to Progress. Add a note in both languages, photos (resized in your browser, like product photos) and the tracking number. Buyers like seeing their order being made.
Documents
Each quote has three printable pages, linked from the quote page:
| Document | At | Contains |
|---|---|---|
| Proforma invoice | /q/<id>/proforma/ | Your details and tax ID, the buyer, quote number, dates, items with HS codes and origin, totals, payment terms with bank details, delivery terms, production time, signature line |
| Commercial invoice | /q/<id>/invoice/ | Invoice number (from the quote number), shipping method and tracking number, origin, HS codes, packages and weight, a declaration and a signature line |
| Packing list | /q/<id>/packing/ | Items and quantities, boxes, box size and gross weight |
Labels are in your language with the buyer's language below. The buyer's street address is never stored, so the consignee box is empty: type the address into it, then press Print or save as PDF. The typed text is not saved. The pages are laid out for A4 paper.
Ask in your language
With Show "Ask in your language" links on, the Wholesale box and the quote page link to NoBorder Talk, a free phrasebook for trade messages. It opens in the visitor's language with yours already chosen as the partner language, so you and your buyer can agree on quantities, prices, samples and shipping without a shared language.
Files
A product's wholesale details, in shop/products/<id>.json:
"wholesale": {
"unit": "piece",
"moq": 10,
"tiers": [ { "min": 10, "price": 32 }, { "min": 50, "price": 27 } ],
"cart": true,
"sample": 45,
"leadTime": [3, "week"],
"capacity": [40, "week"],
"custom": ["color", "logo"],
"note": { "en": "Packed 10 to a carton." }
}In shop/settings.json:
| Field | Example | Notes |
|---|---|---|
wholesale.enabled | true | Wholesale boxes, the request page and volume prices in the cart |
wholesale.origin | "KH" | Default country of origin for new quotes |
wholesale.taxId | "K001-901234567" | Printed on invoices; optional |
wholesale.talk | true | "Ask in your language" links |
A quote, shop/quotes/<id>.json, made by the admin:
| Field | Notes |
|---|---|
ref, created, validUntil | Quote number like Q-261205-K7QX, and dates as YYYY-MM-DD |
lang, currency | The buyer's language; the currency is your shop currency when the quote is made |
buyer | { "name", "company", "country" } only |
items | product, name, options, qty, unit, price, hs |
samples | product, name, qty, price |
shipping | price, method (air, sea, express, post, truck), incoterm, weight, boxes, boxSize |
discount, deposit | An amount, and a percentage of the total |
depositAmount | The deposit received, set by the admin when you record it |
status | draft, sent, accepted, deposit, production, ready, shipped, delivered, canceled |
paid | { "deposit", "balance", "full" }: the date each part arrived, or null |
timeline | date, step, note, photos, tracking |
If a quote file has a mistake, the build stops with a message naming the file, and your shop stays as it was.