Case studiesE-commerce

Commercial Proposal Generator for HVAC Distributor

Automated proposal generation system integrated with OpenCart e-commerce platform. Reduced proposal creation time from 40 minutes to 3 minutes, enabling faster response to customer inquiries during peak HVAC season.

Client
Gree Distributor
Duration
3 weeks MVP + 2-3 months refinement
Team size
1
Published
April 2024
Role
Full-Stack Developer

Executive summary

The client, a major HVAC equipment distributor, faced significant bottlenecks in their sales process. Sales managers spent up to 40 minutes creating each commercial proposal manually—looking up prices on the website, formatting documents in Word, and calculating totals. With the peak season approaching in April, this inefficiency threatened to impact conversion rates.

A key constraint: their online store ran on OpenCart 1.5.6.4—a platform over 10 years old. Despite its age, the site had excellent SEO rankings driving substantial organic traffic, making the client understandably reluctant to modify or migrate it.

We built a web application that integrates with their legacy OpenCart database through custom read-only connectors, enabling real-time product search with accurate pricing—all without touching the existing codebase. The system automatically generates professionally formatted PDF proposals with company branding, sequential numbering, and itemized pricing. The solution launched just before peak season and dramatically improved the team's response time to customer inquiries.

Key metrics

Proposal Creation TimeBefore40 minAfter3 minChange -92%
Daily Time per ManagerBefore3 hoursAfter15 minChange -91%
Calculation ErrorsBeforeManualAfterAutomatedChange -100%
Price AccuracyBeforeManual lookupAfterReal-time syncChange 100%
Mobile AccessBeforeNoneAfterFullChange +100%

The challenges

  1. Time-Consuming Manual Process

    Sales managers created proposals manually using Word/Excel templates, requiring 35-50 minutes per proposal

    Business impact. Slow response to customer inquiries led to lost sales opportunities, especially during high-demand periods

  2. Outdated Pricing Information

    Prices in proposals often didn't match the current website prices, requiring manual lookups and verification

    Business impact. Pricing discrepancies damaged customer trust and required time-consuming corrections

  3. Seasonal Capacity Constraints

    HVAC sales peak in spring (April-May), overwhelming the sales team with proposal requests

    Business impact. Unable to scale proposal output during critical revenue period, limiting growth potential

  4. Legacy E-commerce Platform

    The client's online store runs on OpenCart 1.5.6.4 — a version released over 10 years ago. The client was reluctant to migrate due to well-established SEO rankings that drive significant organic traffic

    Business impact. Any new tooling had to integrate with the legacy system without modifications, as changes risked breaking SEO URLs and disrupting revenue-generating search traffic

  5. Failed API Approach

    Initial plan was to add a simple REST API to the OpenCart installation. After deployment attempts, the legacy codebase proved extremely fragile — even minor modifications caused unexpected issues across the site

    Business impact. Pivot was required mid-project. Needed an alternative integration approach that avoided any code changes to the production e-commerce platform

The solution

  1. Non-Invasive Legacy System Integration

    After the API approach failed, pivoted to direct database integration. Built custom read-only connectors for OpenCart 1.5.6.4 without touching the legacy codebase. Zero modifications to the existing e-commerce platform preserved SEO rankings and site stability

    Implementation

    Dual-database architecture: mysql2 for direct OpenCart DB queries (products, prices, SEO URLs) + Prisma ORM for application data. Carefully mapped legacy table structures including `url_alias` for SEO-friendly links. Created a dedicated MySQL user with read-only permissions restricted to product catalog tables only — ensuring that even in case of credential exposure, no customer data or sensitive information could be accessed (only publicly available product catalog)

    • MySQL
    • mysql2
    • Prisma
    • Node.js
  2. Server-Side PDF Generation

    Professional PDF documents generated automatically with company branding, stamps, and consistent formatting

    Implementation

    Puppeteer renders HTML templates to PDF on the server, ensuring consistent output across all devices

    • Puppeteer
    • Next.js API Routes
  3. Manager & Admin Roles

    Simple authentication system allowing managers to create proposals while admins have full control

    Implementation

    Cookie-based auth with role headers, no external auth provider needed

    • Next.js Middleware
    • HTTP-only Cookies

Results and impact

  • Performance

    92% reduction in proposal creation time

    Managers can respond to customer inquiries within minutes instead of hours

  • Business

    Improved lead-to-proposal conversion

    Faster response during peak season captured more sales opportunities

  • Technical

    Real-time price synchronization

    Eliminated pricing discrepancies between proposals and website

  • Business

    Mobile-first field access

    Sales team can create proposals during customer meetings

Technology stack

Frontend
  • Next.js 15
  • React
  • TypeScript
  • Tailwind CSS
  • ShadcnUI
Backend
  • Node.js
  • Prisma ORM
Database
  • MySQL
  • PostgreSQL
Infrastructure
  • GitLab CI/CD
DevOps
  • Puppeteer
  • Docker

“Honestly, I was worried going into April. Our Head of Sales had just left, I was covering his role on top of my own, and we had the busiest season ahead. The sales team was already struggling — creating proposals manually was eating up half their day. This tool was a lifesaver. Proposals that took 40 minutes now take 3. My managers can actually focus on selling instead of copy-pasting prices from the website. We not only survived the season without a sales lead — we beat last year's numbers. One thing that really mattered to me: they didn't touch our website. It's old, I know, but it brings in good traffic and I wasn't about to risk that. They found a way to pull product data directly without changing anything. That's the kind of problem-solving I appreciate.”

John S.CEO / Acting Head of Sales
  • next.js
  • react
  • typescript
  • pdf-generation
  • puppeteer
  • prisma
  • opencart
  • automation
  • b2b
  • hvac
  • e-commerce-integration
  • sales-tools
  • legacy-integration
  • database-integration

Tell me where things are stuck.

A 30-minute call. You leave with a clear next step, whether or not we work together.

I reply to every message within 24 hours.