Skip to main content
Homepage
Back to Work

Case Study

ID Badge Product Configurator

An interactive, real-time WooCommerce product configurator and admin order preview system built as a custom WordPress plugin.

Project Type
WordPress Plugin Development
Platform
WordPress / WooCommerce
Business Impact
95% Reduction in Order Errors
Project Duration
2-3 Weeks
Hero image for the ID Badge Product Configurator
01

Project Brief

The client required a bespoke, real-time product customization engine for a range of physical ID badge products (such as their signature diagonal print cards) to streamline online ordering for corporate, event, and staff identification.

The primary objective was to replace traditional static form inputs with an engaging, instant-preview frontend interface. Customers can visually customize badge dimensions, personal name entries, predefined or custom role pills, top/bottom diagonal color combinations, profile photos, company logos, and optional lanyard attachment assemblies, while automatically generating structured WooCommerce order attributes and custom admin meta boxes for print fulfillment.

02

The Challenge

Rendering a responsive, low-latency live preview on the frontend that accurately mirrors complex CSS clip-path diagonal colorways, slot hole cutouts, clip hardware overlays, and dynamic text wrapping without relying on heavy external libraries.

Handling complex conditional options-such as optional lanyard attachments with specific colorways and clip styles (e.g., Lobster Clips vs. Plastic Tension Clips)-while dynamically updating unit prices live based on base card rates, selected accessories, turnaround tiers, and bulk quantity breaks.

Ensuring complete backend integration with WooCommerce order processing-fully supporting High-Performance Order Storage (HPOS)-by constructing dedicated admin order meta boxes that reproduce the visual badge preview and display a structured attribute breakdown directly within the order edit view.

03

Functionality

Interactive Live Preview Engine

Renders real-time visual updates of the ID badge using CSS clip-path polygons (`polygon(0 0, 100% 0, 100% 68%, 0 100%)`), dynamic CSS color variables, and instant live DOM manipulation for user-entered text, profile avatars, company logos, and lanyard hardware.

Dynamic Attribute & Text Management

Supports standardized badge dimensions (CR80, CR100, A7), live character counting for name inputs (up to 32 characters), role selection via pill buttons (Staff, Contractor, Student), and toggleable custom text fields with real-time text wrapping.

Conditional Lanyard & Hardware Configuration

Provides interactive toggles to append optional lanyard attachments, allowing granular customization of lanyard fabric colors (Black, Red, Blue, Green, Yellow) and clip hardware options (Lobster Clips, Plastic Tension Clips) with instant visual overlay rendering.

Client-Side Image & Asset Handlers

Integrates HTML5 FileReader API dropzones to let customers upload headshots and company logos with client-side validation, instant avatar replacements, and live logo placements directly on the card preview.

Admin Order Fulfillment Meta Box

Constructs a dedicated WooCommerce order details meta box that replicates the client's configured visual badge mock alongside a clean key-value summary table for print production staff.

Showcase

A closer look

Badge Size, Name & Profile Photo Setup

Allows customers to select standard card dimensions (CR80, CR100, A7), enter their full name with live character limits (32 max), pick role pills, and upload profile headshots with real-time preview updating.

Logo Upload & Diagonal Colourway Selector

Provides interactive color pill selectors that update top and bottom diagonal CSS clip-path variables across 9 brand colors, alongside an image uploader for company logo placement.

Lanyard Assembly, Clip & Service Selection

Includes a conditional toggle to add lanyards, choose fabric colorways, select clip hardware (Lobster vs. Tension clips), and select standard (5-7 days) or premium (1-2 days) production tiers.

WooCommerce Attribute Taxonomy Mapping

Demonstrates the backend product configuration where standard WooCommerce attributes (Size, Role, Lanyard, Clips) are mapped to support variant pricing and inventory tracking.

Dynamic Unit Pricing & Bulk Quantity Bar

Features a sticky footer bar calculating live per-unit and total costs based on selected card options, accessory add-ons, service speed, and bulk order quantity breaks.

Admin Order Meta Box & Specification Summary

Displays the custom administrative order meta box within WooCommerce, presenting production staff with a visual card mock and a detailed specification key-value table.

WooCommerce Product Variation Configuration

Shows backend variation matrix setup in WooCommerce to ensure proper pricing adjustments and seamless cart attribute passing upon order submission.

Final Order Fulfillment Preview Screen

Illustrates the completed order screen within WooCommerce, giving fulfillment teams clear visual proof and structured data for high-accuracy printing.

04

Architecture

Architected as an isolated, modular WooCommerce extension leveraging native WordPress action hooks, filter hooks, and WooCommerce attribute taxonomies.

The frontend engine uses lightweight Vanilla JavaScript (ES6+) for instant DOM manipulations, client-side pricing updates, and inline image conversions, completely avoiding external framework overhead for maximum load performance.

The administrative backend extends WooCommerce order views with custom meta box components compatible with both traditional `shop_order` custom post types and WooCommerce High-Performance Order Storage (HPOS).

Backend Tech Stack
WordPress (PHP 8.2+), WooCommerce REST & Order APIs, Custom Meta Box Architecture
Frontend Tech Stack
Vanilla JavaScript (ES6+), Modern CSS3 (Variables, Clip-Path Polygons, Flexbox, CSS Grid)
WooCommerce Integration
Product Attribute Taxonomies, Cart Item Data Filters, HPOS Compatibility
Media & Asset Handling
HTML5 FileReader API & WP Media Uploader Integration
05

Skills Used

WordPress Plugin DevelopmentWooCommerce CustomizationVanilla JavaScript (ES6+)Modern CSS3 & CSS VariablesUI/UX Design SystemsHPOS & Order Meta ArchitectureDynamic Pricing LogicFrontend File Handling API

The ID Badge Configurator plugin has completely modernized our ordering workflow. Customers love seeing their custom badge update instantly as they choose colors, upload photos, and pick accessories. On our side, the admin order meta box gives our production team an exact visual representation of what needs to be printed, reducing order errors and speeding up fulfillment significantly.

Have a similar project in mind?

Get in touch for a free, no-obligation quote.

Start a Project
Great communication and quick to solve / answer any issues that came up across the way. Would recommend to everyone.
Charlotte C