Delivered remotely for a business based in Wellington, New Zealand. Names withheld by agreement.
Project Overview
Made-to-order building products rarely fit standard catalog SKUs. Trade buyers, commercial estimators, and facilities managers specify exact opening widths, structural spans, surface coatings, acoustic ratings, and mounting hardware on a per-job basis. Before this platform existed, turning those project parameters into an accurate price required an estimator to fill out a static enquiry form, wait for an internal sales engineer to consult spreadsheet lookup tables, and exchange multiple emails to resolve invalid dimension combinations.
We engineered an integrated web quoting and order management platform that puts deterministic product configuration and instant pricing directly in front of trade and direct buyers. Rather than bolting a generic shopping cart onto a catalog site, we built a rule-driven configurator, quote lifecycle manager, and production handoff portal on WordPress, MySQL, Redis, and AWS.
Business Bottleneck
Manual quoting creates two compounding problems for custom building product manufacturers. First, sales engineers spend a large portion of their week recalculating routine jobs and rejecting physically impossible specifications—such as oversized panels paired with light-duty brackets—instead of supporting complex commercial tenders. Second, construction buyers compare suppliers on responsiveness; waiting days for an initial budget estimate frequently pushes a contractor toward a competitor who can price a job while the estimator is still on site.
At the same time, pushing quoting self-service onto the web introduces real commercial risk. Exposing raw pricing spreadsheets invites calculation errors, inconsistent trade discounting, and unbuildable orders entering the factory floor. The engineering challenge was to give buyers immediate interactive pricing while guaranteeing that every submitted configuration remained manufacturable, margin-protected, and traceable through fulfillment.
Architectural Strategy
Our architectural approach separated content presentation, interactive UI state, authoritative pricing computation, and immutable order persistence into distinct layers:
- Structured domain storage over EAV post meta: Although WordPress powers routing, authentication, and technical content, storing multi-line configurable orders inside
wp_postmetadegrades rapidly under reporting and reconciliation queries. We introduced normalized MySQL tables for product rule matrices, quote headers, snapshotted line configurations, and audit events. - Dual-stage rule evaluation: The Bootstrap and jQuery interface provides instant constraint filtering and live price previews as users adjust inputs, while the server-side PHP layer acts as the sole source of truth before any quote or order is written.
- Stateless document and notification offloading: Heavy PDF rendering artifacts live in AWS S3, and all outbound customer and factory emails route through Mailgun with delivery webhooks, preventing web worker saturation and local disk coupling.
Core Capabilities
- Parametric Product Configurator: Guides buyers through interdependent steps—dimensions, structural profiles, material grades, finishes, and hardware accessories—automatically hiding or disabling incompatible options and flagging engineering limits inline.
- Instant Tiered Pricing & Freight Calculation: Evaluates base area/linear formulas, setup fees, trade account discount tiers, and regional delivery rules to present itemized pricing immediately.
- Quote Versioning & Lifecycle Management: Allows estimators to save multi-line project quotes, name job references, revise specifications without overwriting prior revisions, export branded PDFs, and convert approved quotes into firm orders with a single action.
- Trade Account & Purchase-Order Workflows: Supports role-based organization accounts where branch estimators draft quotes while procurement managers issue purchase orders and track invoice status.
- Factory Order Queue & Job Ticket Generation: Translates confirmed customer orders into structured manufacturing summaries with cut dimensions, finish codes, and attached specification sheets stored on S3.
Technical Architecture
Flow: Browser configurator (Bootstrap + jQuery) -> WordPress REST & AJAX endpoints -> Redis pricing cache / MySQL rule & order tables -> PDF worker -> AWS S3 & Mailgun.
When a user opens the configurator, WordPress serves the initial product schema and Bootstrap interface, hydrating valid option ranges from Redis-cached rule snapshots. As the user alters dimensions or material selections, jQuery dispatches debounced validation requests or resolves pre-loaded constraint bounds locally, keeping the UI crisp on desktop and tablet devices used in site offices.
Upon saving a quote or advancing to checkout, the server acquires a short-lived validation lock, reloads the active pricing matrix from Redis (falling back to MySQL on cache miss), verifies every dimensional boundary, and writes an immutable JSON-plus-relational snapshot of the calculated line items into MySQL. Asynchronous or post-commit jobs render the itemized PDF quote, upload it to a private AWS S3 bucket, log the object key, and trigger Mailgun API calls to notify the buyer and internal sales desk.
Technology Stack
| Category | Technology detail |
|---|---|
| Application CMS core | WordPress with custom plugins, post types, and REST endpoints |
| Frontend interaction | jQuery with modular AJAX configurator state and form validation |
| UI framework | Bootstrap responsive grid, modal workflows, and accessible form controls |
| Primary database | MySQL storing product matrices, quotes, orders, and customer accounts |
| In-memory cache | Redis for compiled pricing tables, session state, and rate limiting |
| Cloud infrastructure | AWS compute, managed relational database, and load balancing |
| Object storage | AWS S3 for quote PDFs, technical cut-sheets, and production tickets |
| Transactional email | Mailgun API for quote delivery, approvals, and order status alerts |
| Document rendering | Server-side PDF generation for itemized customer quotes and job sheets |
Engineering Trade-offs & Solutions
| Architectural Dilemma | Chosen Solution & Rationale |
|---|---|
| WordPress native custom post types vs. dedicated MySQL schema for quotes and orders | Kept WordPress CMS tables for marketing pages and spec docs, but built custom indexed MySQL tables for pricing rules, quote lines, and orders to support atomic transactions and clean SQL reporting. |
| Client-side JavaScript pricing vs. server-only pricing calls | Paired instant client-side boundary hints with mandatory server-side recalculation on quote save and checkout, delivering snappy UX without trusting browser-submitted totals. |
| Storing generated quote PDFs on web server filesystem vs. object storage | Wrote generated PDFs and shop attachments directly to private AWS S3 buckets and served them via pre-signed URLs so web instances remain stateless and horizontally scalable. |
| Live pricing inheritance on open quotes vs. point-in-time snapshots | Snapshotted exact matrix versions, unit prices, and expiry dates inside each quote record so catalog price updates never silently alter quotes already sent to clients. |
Security & Reliability
B2B quoting portals expose sensitive commercial data—including negotiated trade discount tiers, project addresses, and customer order histories—making strict authorization boundaries mandatory. Every WordPress REST and AJAX endpoint enforces nonce verification, authenticated session checks, and organization-scoped ownership validation so buyers can view only quotes and orders belonging to their trade company.
Input sanitization and prepared MySQL statements protect every dimensional parameter and free-text job note. Document downloads do not expose predictable file paths; instead, the backend verifies account permissions before minting short-lived pre-signed AWS S3 URLs. Mailgun webhook signatures are validated using HMAC verification to record bounce, delivery, and open events accurately against each quote record, helping sales staff spot undelivered estimates immediately.
Performance & Scale
Interactive configurators can easily generate bursts of database queries if every dimension tweak triggers relational joins across product rules, finish surcharges, and customer tier tables. Storing compiled, versioned pricing trees in Redis reduces hot-path reads to single memory lookups, keeping response latency low even when multiple estimators configure complex multi-line projects concurrently.
Static assets, Bootstrap stylesheets, and technical brochures are served cleanly with cache-control headers and S3 backing, while database indexes on organization ID, quote status, and expiration date ensure administrative dashboards and order-queue filters stay responsive as historical order volumes accumulate.
Operational Outcomes
By unifying configuration validation, tiered trade pricing, and order generation in one platform, the manufacturer shifted routine estimating from manual back-office spreadsheets to a predictable self-service workflow. Estimators obtain buildable, itemized quotes in minutes rather than waiting on email turnarounds, while internal sales engineers focus their attention on non-standard architectural projects. Production teams receive cleaner, pre-validated job specifications backed by immutable quote snapshots, eliminating transcription errors between sales approval and factory scheduling.