Selling Multi-Variant Products in Perfex CRM: POD Apparel, Electronics & Faceted Filters
PolyStore v1.0.0 (bundled with PolyCMS v1.4.0+) equips Perfex CRM with a production-grade multi-variant e-commerce engine capable of powering print-on-demand (POD) apparel brands, framed wall art catalogs, footwear retailers, and multi-configuration consumer electronics stores from one database. Instead of bolting WooCommerce or Shopify onto your CRM through fragile webhook middleware, PolyStore manages reusable visual swatch attributes (tblpolystore_attributes, tblpolystore_attribute_terms), independent variant SKU matrices (tblpolystore_product_variants), exact same-variant faceted filtering (tblpolystore_product_filter_index), and shareable dynamic SEO variant URLs (Polystore_Variant_Urls) natively inside Perfex CRM while preserving strict opt-in separation from internal CRM items.
Architectural Overview: How PolyStore Models Variable Catalogs
Complex e-commerce catalogs break down quickly when variation data is stored as serialized blobs or queried with unindexed LIKE clauses. PolyStore separates catalog concerns across four normalized relational layers so both storefront shoppers and Perfex CRM accountants get fast, accurate records:
- Parent Product Summary (
tblpolystore_product_meta): Stores storefront metadata alongside denormalized minimum price, maximum price, sale status, and aggregate stock summaries calculated automatically whenever a product or variant changes. - Global Attribute Taxonomy (
tblpolystore_attributes&tblpolystore_attribute_terms): Centralizes reusable option vocabularies such as Color, Size, Apparel Type, Frame Style, Model, and Storage along with hex values, swatch thumbnails, and display modes. - Per-Variant Matrix (
tblpolystore_product_variants): Gives every purchasable combination its own row with a globally unique SKU (UNIQUE KEY uk_sku), independent pricing, currency overrides, stock ledger, media gallery, shipping dimensions, and optional link to an individual Perfex CRM Item (perfex_item_id). - Precomputed Filter Index (
tblpolystore_product_filter_index): Maps every product, active variant, attribute term, and stock state into covering B-tree indexes so storefront catalog filters execute in milliseconds with zero cross-variant false positives.
Because storefront products remain strictly opt-in relative to Perfex CRM's native tblitems table, your team can run hundreds of color-size SKUs on /shop without cluttering internal consulting or retainer line items used by sales and billing staff.
Global Attributes and the 4 Visual Swatch Display Modes
Manage all reusable product options from Store > Attributes (admin/polycms/plugin/polystore/attributes). Every global attribute defines two behavioral flags plus one of four storefront selector display modes:
is_variation_capable: Determines whether the attribute can generate purchasable variation rows inside the product variant matrix.is_filterable: Controls whether the attribute appears as an interactive filter group inside the/shopand category archive facet sidebar.
| Display Mode | Storefront UI Presentation | Recommended Use Cases | Real PolyStore Examples |
|---|---|---|---|
color |
Interactive hex swatch circles with accessible labels | Apparel shades, hardware finishes, sneaker colorways, frame colors | #111827 Obsidian Black, #14532d Forest Green, #9ca3af Natural Titanium, Heather Navy, Midnight Black |
image |
Thumbnail preview swatches pulled from the Media Library | Garment silhouettes, fabric weaves, wood grain textures, graphic styles | Guy Tee vs Pullover Hoodie silhouette previews, Natural Oak vs Matte Black frame textures |
button |
Clean pill selectors with active and out-of-stock states | Apparel sizes, shoe sizes, storage tiers, hardware models | S, M, L, XL, EU 40 to EU 43, 256GB, 512GB, 1TB, Apex Pro 6.3", Apex Pro Max 6.9" |
select |
Compact dropdown menu for long or verbose option lists | Framed canvas dimensions, industrial part tolerances, extended size runs | 12 x 16 in, 18 x 24 in, 24 x 36 in |
Indexing Non-Variation Specification Attributes
Not every filterable property should multiply your SKU count. A flagship laptop or wireless keyboard might vary by Color and Switch Type, yet shoppers also want to filter by Connectivity (Bluetooth 5.3 / 2.4GHz / Wired), Water Resistance, or Fabric GSM.
PolyStore explicitly supports non-variation spec attributes (used_for_variations = 0). When a product attaches a specification attribute without enabling it for variant generation, Polystore_Filter_Index writes rows with variant_id = 0. Shoppers can combine specification filters (such as Connectivity or Material) alongside true variation filters (such as Color and Storage) in the same sidebar query without creating redundant variant rows in tblpolystore_product_variants.
Complete Per-Variant Matrix Capabilities
Each row inside tblpolystore_product_variants behaves as a self-contained purchasable SKU while inheriting shared descriptions, categories, and brand SEO from its parent product. The table below documents every operational field exposed per variation:
| Variant Field / Column | Constraint or Format | Operational Purpose |
|---|---|---|
sku |
UNIQUE KEY uk_sku |
Enforces storewide SKU uniqueness for warehouse picking, POD fulfillment feeds, and ERP reconciliation |
regular_price & sale_price |
Decimal amounts | Independent retail and promotional pricing per combination (e.g., Hoodie costs more than Tee; 1TB costs more than 256GB) |
sale_start & sale_end |
Datetime window | Automated scheduled flash sales on specific slow-moving sizes, colors, or clearance models |
currency_prices_json |
JSON map by currency | Explicit per-currency price overrides rather than relying solely on live FX conversion rates |
tax_override_id |
Perfex Tax ID | Assigns a distinct Perfex CRM tax rule when specific variants qualify for different tax treatment |
image_id & gallery_ids |
Media Library IDs | Triggers instant main photo and thumbnail gallery swaps the moment a buyer clicks a swatch |
manage_stock, stock_qty, allow_backorders |
Boolean + Integer | Independent SKU-level stock counters with per-variant backorder permissions (protected by InnoDB row locks at checkout) |
weight & dimensions |
Numeric L x W x H | Accurate per-variant shipping weights and box dimensions (critical when framed canvases range from 12 x 16 in to 24 x 36 in) |
digital_files_json |
JSON file manifest | Attaches variant-specific downloadable assets (such as license keys, STL files, or high-resolution art bundles) unlocked after payment |
perfex_item_id |
Optional Perfex Item FK | Links an individual variant directly to a dedicated tblitems row when accounting requires SKU-level CRM item reporting |
is_default |
Boolean flag | Controls which combination loads pre-selected when a visitor opens the parent product URL |
Real-World Multi-Variant Catalog Blueprints
The blueprints below are modeled directly on PolyStore's verified reference catalog configurations so you can replicate proven merchandising structures across four major verticals.
Blueprint 1: Print-on-Demand (POD) Apparel Matrix
POD storefronts routinely combine garment silhouette, color, and size under one high-converting product page so customers can switch from a T-shirt to a hoodie without leaving the listing. In PolyStore, Signature Essential Apparel (PS-APP-001) unifies three variation axes on a single page:
- Axis 1 - Apparel Type (
buttonorimage):Guy Tee,Pullover Hoodie - Axis 2 - Color (
color):Obsidian Black(#111827),Heather Navy,Forest Green(#14532d) - Axis 3 - Size (
button):S,M,L,XL
That 2 x 3 x 4 matrix generates 24 distinct purchasable SKUs under one parent listing, with instant gallery switching per Apparel Type + Color pair and independent pricing between silhouettes:
| Variant SKU | Apparel Type | Color (Hex) | Size | Regular / Sale Price | Visual & Inventory Behavior |
|---|---|---|---|---|---|
PS-APP-001-TEE-BLK-S |
Guy Tee | Obsidian Black (#111827) |
S |
$28 / $24 |
Displays Black Tee photo; active promo price; independent small stock |
PS-APP-001-TEE-NVY-M |
Guy Tee | Heather Navy | M |
$28 / $24 |
Switches to Navy Tee photo; shares base Tee promo tier |
PS-APP-001-TEE-GRN-XL |
Guy Tee | Forest Green (#14532d) |
XL |
$28 / $24 |
Switches to Forest Green Tee photo; tracked separately for XL demand |
PS-APP-001-HDY-BLK-M |
Pullover Hoodie | Obsidian Black (#111827) |
M |
$62 |
Switches to Black Hoodie photo; higher garment tier pricing |
PS-APP-001-HDY-GRN-L |
Pullover Hoodie | Forest Green (#14532d) |
L |
$62 |
Switches to Forest Green Hoodie photo; independent warehouse count |
Setting PS-APP-001-TEE-BLK-S with is_default = 1 anchors the parent listing at the $24 entry price while tblpolystore_product_meta automatically surfaces the $24 - $62 price range badge on /shop.
Blueprint 2: POD Wall Art and Framed Canvas
Wall art and custom framing stores face wide pricing and shipping weight spreads across dimensions. Zen Calligraphy 'Tâm (心)' Framed Canvas (PS-CNV-001) pairs a visual finish attribute with a compact dimension selector:
- Axis 1 - Frame Style (
colororimage):Matte Black,Natural Oak - Axis 2 - Canvas Size (
select):12 x 16 in,18 x 24 in,24 x 36 in
| Frame Style | Canvas Size | Price Tier | Merchandising Configuration |
|---|---|---|---|
| Matte Black | 12 x 16 in |
$49 |
Entry-level desk or gallery-wall size; lightweight parcel dimensions |
| Natural Oak | 12 x 16 in |
$49 |
Swaps main preview to Natural Oak frame texture |
| Matte Black | 18 x 24 in |
$89 |
Mid-tier living room focal piece; updated box weight |
| Natural Oak | 24 x 36 in |
$129 |
Statement wall canvas; highest weight/dimension profile and dedicated detail gallery |
Using select for Canvas Size keeps mobile product cards uncluttered while letting shoppers compare Matte Black against Natural Oak visually with one tap.
Blueprint 3: Consumer Electronics and Tech Accessories
Hardware stores require exact spec combinations where storage capacity and screen class drive steep price jumps. Apex Pro Flagship Smartphone (PS-ELC-PHN-001) organizes three axes cleanly:
- Axis 1 - Model (
button):Apex Pro 6.3",Apex Pro Max 6.9" - Axis 2 - Storage (
button):256GB,512GB,1TB - Axis 3 - Color (
color):Natural Titanium(#9ca3af),Midnight Black
| Example SKU | Model | Storage | Color | Price | Key Variant Settings |
|---|---|---|---|---|---|
PS-ELC-PHN-PRO-256-TI |
Apex Pro 6.3" | 256GB |
Natural Titanium (#9ca3af) |
$999 |
Default entry model (is_default = 1), Titanium chassis gallery |
PS-ELC-PHN-PRO-512-BLK |
Apex Pro 6.3" | 512GB |
Midnight Black | $1,199 |
Midnight Black photo swap, independent serialized stock |
PS-ELC-PHN-MAX-1TB-TI |
Apex Pro Max 6.9" | 1TB |
Natural Titanium (#9ca3af) |
$1,599 |
Top flagship SKU, dedicated perfex_item_id for high-value invoice tracking |
This same attribute taxonomy scales effortlessly across companion catalog categories:
- Wearables and Audio: Chronos Titanium GPS Smartwatch (case finish + strap option) and Studio ANC Wireless Headphones (matte colorways via
colorswatches plus non-variation filterable spec attributes for ANC mode and driver size). - Peripherals: KeyCraft 75% Wireless Mechanical Keyboard (chassis color + mechanical switch type via
buttonpills, with layout and connectivity indexed as non-variation specs). - Footwear: AeroRun Knit Sneakers combining
Colorswatches withbuttonsize pills (EU 40,EU 41,EU 42,EU 43), ensuring only available EU sizes remain selectable when a shopper switches colorway.
High-Performance Faceted Filtering Engine (Polystore_Filter_Index)
Most CRM-adjacent shopping carts break down when shoppers apply multiple filters on a variable catalog. PolyStore introduces a dedicated indexing and query engine (Polystore_Filter_Index) backed by tblpolystore_product_filter_index to guarantee both exact inventory accuracy and sub-50ms query performance.
Covering Indexes and Denormalized Bounds
Every time a product is created, updated, or synced from Perfex Items, PolyStore rebuilds that product's rows in tblpolystore_product_filter_index and refreshes denormalized min/max price and stock columns on tblpolystore_product_meta. Three specialized covering indexes accelerate all catalog queries:
idx_facet_lookup: Speeds up live facet count aggregations across active category and price filters.idx_product_attr_term_stock: Evaluates in-stock availability directly from the index without scanning full product or variant tables.idx_attr_term_prod_var: Enables ultra-fast exact variant intersection when multiple variation attributes are filtered together.
Exact Same-Variant Matching: Eliminating "Ghost Stock" False Positives
A notorious flaw in naive e-commerce filters is cross-variant matching. Suppose Signature Essential Apparel has two active SKUs in stock:
- Variant A:
Forest Green+ SizeS(In Stock: 12) - Variant B:
Obsidian Black+ SizeXL(In Stock: 8) - Variant C:
Forest Green+ SizeXL(Out of Stock: 0)
A naive product-level filter sees that the parent product contains both Forest Green and XL, so it displays the product when a shopper filters for Color = Forest Green AND Size = XL with In Stock enabled. The shopper clicks through only to hit an out-of-stock wall.
PolyStore eliminates this bug with exact same-variant matching:
- When a catalog query filters on two or more variation attributes (such as
ColorANDSize),Polystore_Filter_Indexjoins onvariant_idto verify that a single active variant satisfies all selected variation attributes simultaneously. - If the query also includes non-variation specification attributes (where
variant_id = 0), PolyStore applies those conditions at the product level while keeping strictvariant_idintersection across all variation attributes. - Result: Signature Essential Apparel is automatically excluded from
Forest Green + XL (In Stock)until Variant C is restocked, raising shopper trust and conversion rates.
Disjunctive Facet Logic, Price Sliders, and Live Counts
The storefront filter sidebar on /shop and category archives follows modern e-commerce UX conventions out of the box:
- Disjunctive OR within one attribute: Selecting
Obsidian BlackandForest Greenunder Color returns products matching either colorway, while keeping sibling color counts visible so shoppers can broaden their selection without clearing filters. - Conjunctive AND across attributes: Combining
Color = Obsidian Black OR Forest GreenwithSize = XLandApparel Type = Pullover Hoodieintersects all three axes accurately. - Instant Utility Filters: Live minimum/maximum price slider backed by denormalized price bounds on
tblpolystore_product_meta, plus one-click In-Stock Only and On-Sale Only toggles. - Accurate Real-Time Facet Counts: Every filter term displays the exact count of matching products under the current query state.
Two-Phase Deferred Join Pagination and L1/L2 Cache Architecture
To keep large multi-variant stores responsive under concurrent traffic, PolyStore combines two database engineering patterns:
- Two-Phase Deferred Join Pagination: During filtering and sorting, SQL executes exclusively against narrow index rows to fetch only the target page's product IDs (for example, 12 or 24 IDs). Only in phase two does PolyStore hydrate full product titles, descriptions, galleries, and pricing for those exact IDs - avoiding expensive
OFFSETtable scans over wide rows. - Sort- and Page-Independent L1/L2
Polycms_Cache: Filter results and facet count payloads are cached inside two dedicated groups (polystore_catalogandpolystore_facets). Crucially, facet cache keys excludepageandsortparameters. When a buyer clicks from Page 1 to Page 2 or switches sorting from "Newest" to "Price: Low to High", PolyStore serves the facet sidebar from cache with 0 SQL queries for count aggregation.
Shareable Dynamic SEO Variant URLs (Polystore_Variant_Urls)
Standard variable product pages trap every configuration behind a single generic URL (/product/signature-essential-apparel), making it impossible to link directly to a specific colorway, frame size, or smartphone capacity in ads, emails, or search results.
Polystore_Variant_Urls resolves this by generating clean, human-readable, crawlable URLs directly from active attribute combinations:
/product/signature-essential-apparel-pullover-hoodie-color-forest-green-size-xl
When a shopper, search crawler, or CRM contact opens a dynamic variant URL, PolyStore automatically executes four storefront actions on initial render:
- Pre-selects Every Matching Swatch: Highlights
Pullover Hoodie,Forest Green, andXLimmediately without requiring extra clicks. - Displays Variant-Specific Price and SKU: Renders
$62and the exact SKU (PS-APP-001-HDY-GRN-XL) along with real-time stock status. - Switches the Product Gallery: Loads the dedicated
image_idandgallery_idsfor the Forest Green Pullover Hoodie as the hero visual. - Aligns SEO and Product Schema: Outputs accurate pricing and availability signals so search engines and shopping feeds see the exact promoted SKU.
High-Impact Commercial Use Cases for Dynamic Variant URLs
- Paid Shopping & Social Ads: Point a Meta Dynamic Product Ad or Google Shopping card for the
Apex Pro Max 6.9" 1TB Natural Titanium($1,599) straight to its exact variant URL so ad clickers never land on a$999base model and bounce. - Perfex CRM Sales & Support Follow-Ups: Sales reps replying inside a Perfex Ticket or Lead note can paste the exact variant URL for
Zen Calligraphy 'Tâm (心)' Framed CanvasinNatural Oak / 24 x 36 inso the client adds the right SKU in one click. - Long-Tail Organic Search Capture: Buyers searching for specific combinations like "Forest Green Pullover Hoodie XL" or "Apex Pro Max 1TB Natural Titanium" encounter a tightly matched landing page with matching copy, photo, and price.
Step-by-Step Configuration Checklist for Store Managers
Follow this sequence in Perfex CRM Admin to launch a clean multi-variant catalog with zero rework:
- Define Global Attributes (
Store > Attributes): Create all reusable attributes first (Apparel Type,Color,Size,Frame Style,Canvas Size,Model,Storage). Assign the optimal display type (color,image,button,select), enter hex codes or thumbnails for each term, and toggleis_filterableandis_variation_capable. - Configure Non-Variation Specs: For technical properties that should appear in the filter sidebar without multiplying SKUs (e.g., Material, Connectivity, Water Resistance), set
is_filterable = 1andis_variation_capable = 0. - Create the Variable Product (
Store > Products): Set product type to Variable, assign categories (synced with Perfex Item Groups if desired), and upload a general parent gallery. - Generate and Enrich Variants: Select your variation attributes on the product editor, generate the combination matrix, assign unique SKUs (
uk_sku), setregular_price/sale_price(andsale_start/sale_endif scheduled), map per-variantimage_idphotos, configurestock_qty, and mark one primary SKU asis_default. - Deploy the Faceted Catalog: Verify your
/shoppage uses[polystore_shop sidebar="1"](or the Shop Catalog block in MTBuilder) so the filter sidebar renders attribute swatches, price range slider, and In-Stock/On-Sale toggles. - Verify Exact-Variant Filtering & Dynamic URLs: Test a multi-attribute combination where one SKU is intentionally set to
stock_qty = 0to confirm exact same-variant matching hides the out-of-stock match, then copy a generated variant URL into an incognito window to verify instant swatch pre-selection and gallery swap.
Frequently Asked Questions
How does PolyStore prevent out-of-stock false positives when filtering by Color and Size?
PolyStore indexes every individual variant row inside tblpolystore_product_filter_index using covering indexes (idx_attr_term_prod_var and idx_product_attr_term_stock). When a shopper filters two or more variation attributes simultaneously, Polystore_Filter_Index verifies that a single active variant_id owns all selected terms and satisfies the stock filter, completely eliminating cross-variant false positives.
Can I set different prices, currencies, and images for each variation under one product?
Yes. Every row in tblpolystore_product_variants stores its own regular_price, scheduled sale_price (sale_start / sale_end), currency_prices_json overrides, tax_override_id, dedicated image_id, gallery_ids, physical dimensions, weight, and stock_qty. Clicking a swatch on the storefront switches the price, SKU, availability, and product photo instantly.
Do multi-variant SKUs clutter my internal Perfex CRM Items list?
No. PolyStore follows a strict opt-in architecture. Variable products live in dedicated tblpolystore_* tables without altering core Perfex tables. Linking a variant to an individual Perfex CRM Item via perfex_item_id is completely optional and only needed when your accounting workflow requires SKU-level item line mapping.
Can shoppers filter by technical specs that are not variations, like Connectivity or Material?
Yes. You can attach attributes with used_for_variations = 0 to any simple or variable product. PolyStore indexes those specification terms with variant_id = 0 in tblpolystore_product_filter_index, allowing shoppers to combine spec filters with variation filters in the same faceted sidebar without generating unnecessary variant SKUs.
Does paginating or re-sorting a filtered catalog re-run heavy facet count queries?
No. PolyStore uses a Two-Phase Deferred Join for catalog pagination and caches facet aggregations inside L1/L2 Polycms_Cache (polystore_facets and polystore_catalog) keyed independently of page and sort. Moving across pages or changing sort order reuses the warm facet cache with zero extra count SQL queries.
Related Documentation
- PolyStore Checkout, Orders, Invoices, Coupons & B2B Quotes Sync in Perfex CRM - Complete order-to-cash workflow, row-locked stock control, coupon engine, and bidirectional Perfex CRM invoice synchronization.
- All-in-One CRM, E-Commerce & Blog in Perfex CRM with PolyStore - Strategic architecture overview uniting CRM, CMS, and native e-commerce on one stack.
- PolyStore Catalog, Products & Categories Management in Perfex CRM - Deep dive into product types, category hierarchies, and opt-in Perfex Item synchronization.
- PolyCMS Plugin: PolyStore - Native E-Commerce Storefront for Perfex CRM - Core installation guide, admin menus, shortcodes, and widgets reference.
- Designing a Perfex CRM Storefront with MTBuilder and PolyStore - Build visual shop layouts using 10 MTBuilder Store blocks and pre-built storefront templates.
- PolyStore E-Commerce SEO: Dynamic Variant URLs, XML Sitemaps & GEO - Maximize organic search and AI citation visibility across variable product catalogs.
- PolyCMS Hooks & Filters Complete Reference - Developer extension points for customizing variant pricing, filter queries, and storefront output.
Launch Your CMS for Perfex CRM — Lifetime Access for Just $19
Create blogs, pages, themes, plugins, and manage everything from one powerful unified admin panel.
Early Adopter Advantage
Current pricing reflects the module’s present feature set. As additional plugins, themes, multilingual capabilities, builders (MTBuilder), and ecosystem integrations are released, pricing may be adjusted. Early customers secure today’s price while benefiting from future updates.