Skip to main content

v1.1.25 — Shop: Profitability, Storefront, Fulfilment & Smarter Buying

· 3 min read
SkyNett81
3DPrintForge utvikler

A commerce-focused release that turns 3DPrintForge into a small print shop. Orders now show real profitability, a customer-facing storefront sells your catalog, orders flow straight to the print queue, and the buy side gains shipment tracking, a cross-supplier shopping list and automatic reordering — all built on the filament costs the dashboard already tracks.

Order profitability & margins​

  • The CRM dashboard has a Profitability section: revenue vs cost of goods (COGS), margin and margin %, a margin-by-month chart and your most profitable products
  • Every order detail carries its own profitability card — revenue, COGS and margin — derived from the actual per-item filament, labour, electricity and wear cost
  • New read-only endpoints: GET /api/crm/orders/:id/margin, /api/crm/margins/products, /api/crm/margins/summary

Storefront & product catalog​

  • A new Products catalog (Business → Products): sellable products with a sale price and a per-unit cost breakdown, and a live margin preview as you edit
  • A customer-facing shop at /shop — a self-contained page where visitors browse active products and place an order. Orders land in your CRM as pending, ready to price and produce
  • The public API exposes only public-safe fields (no cost, margin or file data), validates every order before writing, enforces stock server-side, and is rate-limited

Order to print queue​

  • Add catalog products to a CRM order, then dispatch its printable lines to the print queue in one click
  • Stock is deducted on add; each dispatched line shows an "in queue" badge so you can follow fulfilment from order to print

Purchase order shipment tracking​

  • Purchase orders gain a Shipped stage between placed and received — record the carrier and tracking number
  • One-click Track link for common carriers (PostNord, Posten, Bring, DHL, UPS, FedEx, GLS, USPS)

Smarter buying​

  • A Shopping list on the Reorder card turns low stock into a per-shop basket — the cheapest supplier per material with Buy links, suggested quantity, line cost and per-supplier subtotals
  • Auto-reorder: switch it on to have the server periodically draft purchase orders (or just notify you) when a material drops below its minimum target — deduped so scheduler runs never stack duplicate drafts

Under the hood​

  • Migrations 161–163; roughly 90 new automated tests across the profitability, storefront, fulfilment and buy-side changes
  • Security review of the unauthenticated storefront path (auth-gate hardening, stock clamp, a dedicated per-IP order limiter, input caps)