VeloDev
/ Case Study

B2B Custom Shutter & Awning Platform

Matrix UK is a custom WordPress and WooCommerce B2B platform, in production, for a UK dealer network selling made-to-measure shutters and awnings. With a dual-currency pricing engine, multi-cart sessions and custom database tables, it covers the whole order cycle: configuration, logistics grouping, invoicing and helpdesk queries.

Role
Full-Stack Developer · sole developer, end-to-end
Timeline
2019 – Present
Category
B2B Trade Platform / E-commerce
Core Engine
WP Core + Child Theme Monolith
Technology Stack
  • WordPress
  • WooCommerce
  • PHP 7.4+
  • MySQL
  • jQuery
  • Bootstrap
  • Select2
  • QuickBooks OAuth2 SDK
  • Highcharts
  • TCPDF / mPDF
  • AJAX Core APIs
WORKSPACE SCREENS (8)

Switch tabs to preview configuration steps and CRM listings. Click screenshot to zoom.

/wp-admin/post.php?post=37756
01 / 08

WooCommerce Order Details & Logistics

WooCommerce order details page in the WordPress admin panel showing order items, sea/air shipping, container associations, QuickBooks invoice sync status, and pricing overrides.

/ Engineering snapshot

Challenge

A UK dealer network for made-to-measure shutters and awnings needed the entire trade cycle handled in one system: dual-currency pricing, sea/air shipping logistics, accounting sync, and a helpdesk — on top of a WordPress/WooCommerce stack never built for that scope.

What I owned
  • Design and implementation of the custom shutter/awning module plugin, including the pricing calculator and its 13-phase calculation engine.
  • The multi-cart session override system letting a single dealer login run several concurrent buyer carts.
  • The custom relational database schema (order, attribute, and property tables) that replaced generic WordPress postmeta for configurator data.
  • Ongoing core maintenance: logistics/container grouping, QuickBooks OAuth2 invoicing sync, and the Highcharts reporting dashboards.
Result
  • A single platform now runs configuration, pricing, logistics, invoicing, and support for the dealer network, instead of separate spreadsheets and manual steps.
  • The pricing engine handles dozens of material, shape, and surcharge combinations in GBP and USD without the two currencies ever going out of sync.
  • The platform has stayed in active production use through continued feature growth, including the QuickBooks and multi-cart additions.
Key engineering decisions
  1. Isolate the domain logic in a dedicated plugin

    The shutter/awning configurator, its pricing rules, and its database tables live in a standalone plugin rather than scattered theme code, so the calculation engine can be reasoned about and changed independently of WordPress core and theme updates.

  2. Replace generic postmeta with a purpose-built schema

    Configurator dimensions and attributes are read and written through custom MySQL tables (wp_shutter_attributes, wp_property_values, and related) instead of the WordPress postmeta table, which keeps pricing lookups and reporting queries fast at the current order volume.

  3. Compute both currencies in one pass

    The 13-phase pricing engine derives GBP and USD totals from the same material, style, and surcharge rules in parallel, so the two price lists cannot drift out of sync with each other.

  4. Session-override the cart instead of forcing dealers to log out

    A dealer serving several clients back-to-back needed independent carts without juggling accounts, so cart state is mapped to synthetic per-customer IDs inside one dealer session rather than WooCommerce's default single-session cart.

/ architecture

Matrix UK is built on a heavily customized WordPress child theme that ties the business tables directly to the calculation controllers and the accordion-style order forms.

WordPress Core & WooCommerce

Storefront Child ThemeBusiness Logic & Fulfilment

Handles container logistics grouping, customer tickets support, warranty repairs, and Highcharts sales reporting dashboard.

Multi-Cart Session Overridebmc_woocom_multisession

Lets one dealer login run several independent carts at once, each mapped to its own customer ID.

Shutter Module PluginProduct Configuration Engine

Coordinates shortcodes, accordion forms, jQuery events visibility rules (~40K LOC), and custom database attribute tables.

/ capabilities

A comprehensive overview of features powering the Matrix UK monolithic infrastructure:

Bespoke Product Forms

14 custom shortcodes drive Standard Shutters, Bay Window configurations, and Blackout frames. Built using clean Bootstrap accordions, hand-maintained jQuery scripts, and live AJAX.

13-Phase Pricing Engine

Calculates GBP and USD prices in parallel. Computes SQM limits, material uplifts (8 custom species), style discounts, buildout specifications, and color surcharges based on per-user metadata settings.

Shipping & Containers

Logistics custom post types group customer orders into physical container manifests, calculating freight costs, sea/air shipping logistics, and packing lists exportable to CSV.

QuickBooks OAuth2 Sync

Bespoke accounting integration mapped via QuickBooks OAuth2 SDK, auto-generating invoices on WooCommerce order creation and routing line items dynamically per customer company codes.

Multi-Cart dealer login

Bypasses standard single-session limits to let a master dealer log in and run, manage, and checkout independent buyer carts concurrently mapped to temporary synthetic IDs.

Highcharts Analytics

Provides salesmen, sub-dealers, and administrators with role-scoped analytical dashboards, visualizing monthly transaction values, materials ratios, and SQM totals.

/ CORE DOMAIN CALCULATION ENGINE

The heart of Matrix UK is the calculator engine written in custom OOP PHP (class-pricing-calculator.php). It calculates base material rates, shapes, and frames in parallel for GBP and USD.

Calculation Phases

  1. 1.SQM Floor Enforcement: Min 0.5 SQM validation rule.
  2. 2.Material Rates Lookup: Reads custom meta cards dynamically (Earth, Green, Ecowood, Biowood, Basswood).
  3. 3.Style Discounts: Applies panel-only (-5.45%) or fixed (-3.45%) uplifts.
  4. 4-8.Custom Shapes Surcharges: Adds combi, arched, or tracked position parameters.
  5. 9.Buildout Rule: Sets fixed 20% surcharge if frame depth + buildout > 100mm.
  6. 10-12.Frame, Hinge, and Posts: Adds stiles, hinges (concealed/locking), and bay window post adjustments.
PHP FormulasPHP
$sqm = ($width * $height) / 1000000;
if ($sqm < 0.5) $sqm = 0.5;

$base_gbp = $sqm * $material_rate_gbp;
$base_usd = $sqm * $material_rate_usd;

if ($frame_depth + $buildout > 100) {
    $surcharge = $base_gbp * 0.20;
}
if ($panel_width < 200) {
    $panel_fee = 30; // GBP
}
/ data models

By avoiding the generic WordPress postmeta table mapping for configurator dimensions, Matrix UK uses a purpose-built relational schema in MySQL:

Custom SQL Schema

  • wp_custom_orders
  • wp_shutter_attributes
  • wp_shutter_names
  • wp_property_values
  • wp_property_fields

Custom Post Types

  • container (Logistics)
  • order_repair (Warranty)
  • stgh_ticket (Support)
  • appcart (REST Buffer)

Third-Party APIs

  • QuickBooks V3 Invoicing SDK
  • Catchers Helpdesk system
  • YITH custom WooCommerce order statuses
  • Tablet Rest API integration
/ screens

Click on any of the screenshots below to open them in the lightbox viewer.

/ next step

Hiring for a senior full-stack role, or need something like this built?

marian.putirac@gmail.com