Custom B2B Pricing & Checkout App
Context
Client Stack + Scale
A B2B industrial supplier selling tools, equipment, and consumables to contractors and facilities managers through Shopify Plus. The business model requires complex quantity-based pricing, customer-specific discounts, and custom checkout logic.
The Problem
What was breaking
The company had outgrown their legacy B2B order management system and migrated to Shopify Plus, but Shopify's standard pricing model didn't support their business requirements. They needed quantity-based pricing (e.g., 1–9 units at $50, 10–49 units at $45, 50+ units at $40), customer-specific negotiated discounts (e.g., "Customer ABC gets 15% off all fasteners"), and complex checkout rules (e.g., minimum order value of $250, payment terms of Net 30 for approved customers). Without these features, their sales team had to manually process every B2B order: receive order via email or phone, calculate pricing using spreadsheets, create draft orders in Shopify, and email invoices to customers. This manual process was slow (3–4 hours per day for sales team), error-prone (pricing mistakes occurred 2–3 times per week), and provided a poor customer experience (B2B customers couldn't self-serve online).
No support for quantity-based pricing tiers in standard Shopify
Manual order processing consuming 15–20 hours/week of sales team time
Pricing errors occurring 2–3 times per week, causing margin erosion
B2B customers forced to order via phone/email instead of self-service online
Lost revenue opportunities due to friction in ordering process
The Solution
Architecture + Approach
We built a custom Shopify app using Shopify Functions (for checkout logic) and Remix (for admin UI) that implements quantity-based pricing, customer-specific rules, and B2B checkout workflows – enabling B2B customers to self-serve while maintaining pricing control.
Architecture Overview
Shopify Functions (Discounts API) for quantity-based pricing and customer-specific rules
Shopify Functions (Payment Customizations API) for Net 30 payment terms and order minimums
Remix app for admin UI to manage pricing tiers, customer rules, and reporting
PostgreSQL database to store pricing rules, customer configurations, and order history
Redis cache for fast pricing lookup during checkout
Technical Details
The app uses Shopify Functions to inject custom pricing logic directly into the checkout. The Discount Function evaluates cart contents against pricing rules stored in PostgreSQL: it checks for quantity-based tiers, applies customer-specific discounts (matched by Shopify customer ID), and calculates line-item adjustments in real-time. The Payment Customization Function enforces business rules: it validates minimum order value ($250), restricts payment methods based on customer approval status (Net 30 for approved customers, credit card only for new customers), and blocks checkout if customer has outstanding invoices. The Remix admin UI provides a dashboard where sales managers can configure pricing tiers per product, assign customer-specific rules, view order history, and generate pricing reports. All rules are cached in Redis for sub-50ms checkout performance. The system integrates with the company's accounting system via API to sync customer payment terms and credit limits.
The Results
Measurable Impact
Average order value increased from $620 to $806 due to quantity discount incentives and reduced friction
Percentage of B2B orders placed online without sales team involvement, up from 0%
Reduced manual order processing from 15–20 hours/week to <2 hours (handling exceptions only)
Zero pricing errors in 6 months post-launch (vs. 2–3/week with manual process)
Additional Outcomes
Sales team reallocated saved time to prospecting and customer relationship management
B2B customer satisfaction scores increased from 6.8 to 8.4 (out of 10)
Enabled launch of 3 new quantity-based promotions that were previously infeasible
Real-time pricing analytics improved margin management and SKU profitability insights
Get similar results
Tell us what systems you're connecting and what's breaking. We'll respond with a plan and timeline.