Back to Main Site

PolyStore Catalog Management: Syncing Products, Categories & Items in Perfex CRM

Last updated on Nov 23, 2026 8:44 AM 8:44 AM 5,325.68 ms

PolyStore v1.0.0 (bundled in PolyCMS v1.4.0 for Perfex CRM 3.0.0+ and PHP 8.1+) manages e-commerce products, nested categories, pricing, and stock directly on top of your existing Perfex CRM catalog using a Zero-Duplication Overlay Architecture. By linking 13 InnoDB storefront tables (tblpolystore_*) 1:1 to tblitems, tblitems_groups, tbltaxes, and tblcurrencies, PolyStore keeps internal CRM billing items private by default through Opt-in Publishing while supporting four product types (simple, variable, digital, service with quote_only), three visibility levels (public, clients_only, hidden), decoupled MTOptimize v1.4.0 SEO controls inside Product Tab 6 and Categories, and rapid catalog seeding via the 25-product Multi-Industry Demo Data Kit.

Zero-Duplication Overlay Architecture and Opt-In Publishing

External store connectors duplicate SKU inventories across databases and rely on fragile sync jobs. PolyStore operates natively inside Perfex CRM without duplicating core data:

  • 13 Dedicated InnoDB Overlay Tables: Storefront metadata - slugs, galleries, variation matrices, digital file tokens, currency overrides, and multi-category mappings - resides in 13 tblpolystore_* tables alongside PolyCMS's 19 core CMS tables. Core Perfex CRM schema remains completely unmodified.
  • Native 1:1 Core Mapping: Storefront products connect directly to Perfex accounting records so tblinvoices and tblestimates always reflect authoritative items, taxes, and currencies.
  • Strict Opt-In Publishing: Enabling PolyStore never exposes private CRM retainers, internal cost lines, or custom contract items on /shop. Existing tblitems entries stay hidden until staff explicitly opt them in.

Perfex CRM Core Tables vs. PolyStore Catalog Overlay

Perfex Core Table PolyStore Overlay Responsibility Operational Benefit
tblitems 1:1 base product sync (plus optional per-variant perfex_item_id) Authoritative item names, base prices, and verified accounting lines on invoices and estimates
tblitems_groups Hierarchical category sync (Store > Categories) Maps CRM item groups into nested parent/child storefront categories
tbltaxes Default tax inheritance + per-variant tax_override_id Eliminates tax rounding mismatches between cart totals and Perfex Invoices
tblcurrencies Base storefront currency + currency_prices_json overrides Exact multi-currency retail and wholesale pricing without external converters

Two Synchronized Entry Points for Publishing Products

  1. Direct Opt-In from the Sales > Items Modal: Sales or finance staff editing an item in Sales > Items can opt it into PolyStore directly from the modal without leaving the Sales view. PolyStore initializes the storefront overlay record immediately.
  2. Full Merchandising in Store > Products: Store managers use the top-level Store > Products screen to create new products (auto-provisioning their linked tblitems row) or enrich opted-in items with product types, variations, galleries, scheduled sales, digital downloads, SEO metadata, and visibility rules.

Mastering the Four PolyStore Product Types

Choosing the right product type in Store > Products governs frontend attribute selectors, shipping rules, digital delivery, and checkout routing between tblinvoices and tblestimates.

Product Type Shipping Behavior SKU & Variation Structure Checkout Output Best-Fit Scenarios
simple Standard physical shipping Single globally unique SKU (UNIQUE KEY uk_sku) linked 1:1 to tblitems Perfex Invoice (tblinvoices) Single-SKU retail goods, books, packaged hardware
variable Physical (or digital variant delivery) Unlimited multi-attribute combinations; per-variant unique SKU, pricing, tax override, image, and optional perfex_item_id Perfex Invoice (tblinvoices) Print-on-Demand apparel & canvas, footwear, consumer electronics
digital Shipping disabled automatically Downloadable files served at /polystore/download/{token} with download count caps and expiry days Perfex Invoice (tblinvoices), auto-unlocking downloads upon payment Modules, design kits, templates, e-books, digital guides
service Shipping disabled automatically Fixed-price service or B2B quote_only flag tblinvoices (standard) or tblestimates (when quote_only is enabled) Audits, installation packs, custom B2B consulting, bespoke production

Operational Configuration by Product Type

Simple Products (simple)

Ideal for standalone goods with no buyer configuration. Set a globally unique SKU, regular price, optional scheduled sale dates (sale_start, sale_end), gallery media, and stock tracking. Checkout writes a clean line item directly linked to tblitems.

Variable Products (variable)

Built for POD apparel, footwear, and consumer electronics requiring multi-attribute combinations (such as Product Type + Size + Color, or Model + Storage + Finish) powered by global attributes in Store > Attributes. Every child variation supports:

  • Globally Unique SKUs (UNIQUE KEY uk_sku): Blocks duplicate SKUs across all products and variants.
  • Variant Pricing & Tax Overrides: Independent regular/sale prices, currency_prices_json multi-currency overrides, and per-variant tax_override_id for mixed tax classifications.
  • Optional Per-Variant perfex_item_id: Link specific high-value variants to dedicated tblitems records so CRM financial reports track exact hardware SKUs.
  • Dedicated Media & Stock Controls: Swatch-switched variant photos, individual inventory counts, backorder permissions, and low-stock thresholds.

For full swatch and attribute matrix workflows, see Multi-Variant Products for POD & Electronics in PolyStore.

Digital Products (digital)

Selecting digital removes physical shipping and enables secure file fulfillment:

  • Tokenized Downloads (/polystore/download/{token}): Protects files behind order-scoped cryptographic tokens rather than raw directory paths.
  • Limits & Expiry: Enforce maximum download counts and expiration windows in days.
  • Auto-Unlock on Payment: When a Perfex Invoice is settled via Payment_modes_model or recorded in Payments_model, PolyStore automatically unlocks downloads in /my-account and sends them inside the payment confirmation email via {order_digital_downloads_html}.

Service and Quote-Only Products (service + quote_only)

Setting service bypasses shipping while keeping full storefront discovery and SEO. Toggling quote_only converts checkout into a B2B Estimate workflow: buyers submit a quote cart that creates a native Perfex Estimate (tblestimates), triggers customer and admin quote email templates, and lets staff negotiate pricing inside Perfex CRM before converting the Estimate to an Invoice in one click.

Hierarchical Categories, Multi-Category Assignment, and Category SEO

In Store > Categories, PolyStore turns flat CRM item groups into a full e-commerce taxonomy:

  1. Parent/Child Hierarchy Synced with tblitems_groups: Nest categories cleanly (such as Apparel & Print-on-Demand containing T-Shirts & Hoodies and Wall Art & Canvas) while remaining synchronized with Perfex Item Groups.
  2. Multi-Category Assignment (tblpolystore_product_categories): Assign one product to multiple categories simultaneously and mark one category with is_primary to control canonical breadcrumbs and primary grouping.
  3. Thumbnails & Clean Archive URLs: Attach category thumbnails for [polystore_categories] grids and MTBuilder Store blocks, served at /shop/category/{slug}.
  4. Category SEO, MTOptimize v1.4.0 Panel & XML Sitemaps: Configure custom meta_title and meta_description per category, or activate MTOptimize v1.4.0 to unlock live shop/category/ Google Search Preview, 9-check 0-100 Focus Keyword scoring, Social OG (og:type="website"), Custom Canonical, and No Index/No Follow directly inside Store > Categories (object_type = 'polystore_category'). On category archive routes, Polystore_SEO::set_current_category($cat) triggers polycms_seo_context_changed to reset per-request SEO caches cleanly. PolyStore and xml-sitemap publish /product-category-sitemap.xml alongside /product-sitemap.xml (including <image:image> tags) and automatically omit any category marked No Index.

Product Tab 6 & Category SEO with MTOptimize v1.4.0

PolyStore integrates with MTOptimize v1.4.0 through 10 decoupled, plugin-agnostic PolyCMS SEO hooks so catalog managers can optimize products and categories right where they edit them without hard plugin coupling:

  • Native Injection in Store > Products (Tab 6: SEO & Visibility) & Store > Categories: When MTOptimize v1.4.0 is active, it automatically injects a live Google Search Preview (polycms_seo_box_before_fields + polycms_seo_preview_context displaying accurate product/ and shop/category/ prefixes), live 0 / 60 and 0 / 160 Good / Too short / Too long character counters (data-seo-field bindings with automatic Bootstrap shown.bs.tab refresh and TinyMCE auto-binding), and a 3-Tab SEO Panel (polycms_seo_box_content).
  • SEO Tab (Focus Keyword & 9-Check 0-100 Score Analyzer): Enter a primary Focus Keyword to score Meta Title placement, opening title position, Meta Description coverage, URL/Slug match, Title length (50-60), Description length (120-160), keyword density (0.5-2.5%), and main title coverage in real time.
  • Social Tab (Open Graph & Twitter Cards): Customize OG Title, OG Description, OG Image URL (1200x630 recommended; accepts absolute URLs cleanly without prepending a broken uploads/ prefix), and Twitter Card (summary / summary_large_image). Emits og:type="product" once with zero duplicate og:type tags alongside product:price:amount and product:price:currency on product pages.
  • Advanced Tab (Canonical URL & Robots Directives): Configure a custom Canonical URL override plus No Index and No Follow checkboxes persisted cleanly in tblpolycms_seo_meta.
  • Dynamic Product & Category Title Formats ({{sku}} Token): Under Blog > Plugins > MTOptimize, PolyStore automatically registers a PolyStore E-Commerce settings group (polycms_seo_title_format_fields) with Default Product Title Format (supporting {{title}}, {{site_name}}, and {{sku}}) and Default Product Category Title Format.
  • Automatic No Index Sitemap Exclusion (polycms_seo_excluded_object_ids): Checking No Index on any Product (polystore_product) or Category (polystore_category) automatically removes it from /product-sitemap.xml, /product-category-sitemap.xml, /sitemap_index.xml chunk counts, and flat-mode XML Sitemap output.
  • Non-SEO Save Protection During tblitems Sync & Zero Orphan Cleanup: polycms_seo_object_saved enforces a payload guard (mtoptimize_has_seo_payload()) so programmatic saves such as Perfex tblitems synchronization or automated stock deductions never wipe existing tblpolycms_seo_meta rows. Deleting a product or category triggers polycms_seo_object_deleted, and uninstalling/purging PolyStore triggers polycms_seo_object_type_purged to clear all storefront SEO records cleanly.
  • Graceful Standalone Fallback: If MTOptimize is deactivated, PolyStore checks polycms_has_action('polycms_seo_box_content'), hides the advanced tabs cleanly, and continues rendering standalone <title>, meta description, canonical, og:type="product", product:price:amount/currency, and Product JSON-LD with zero errors.

Pricing, SKUs, Multi-Currency, Taxes, and Inventory Controls

PolyStore centralizes five essential merchandising rules inside the product editor:

  • Globally Unique SKU Enforcement (UNIQUE KEY uk_sku): Database-level uniqueness across simple products and variable children prevents warehouse fulfillment collisions.
  • Scheduled Promotional Pricing: Configure regular prices plus automated sale windows using sale_start and sale_end timestamps; promotional pricing and on-sale filters activate and expire automatically.
  • Multi-Currency Overrides (currency_prices_json): Beyond inheriting tblcurrencies, define clean fixed retail or wholesale prices per currency at the product or variant level.
  • Tax Inheritance & Variant Overrides: Inherit tbltaxes globally and apply tax_override_id to individual variants whenever tax treatment differs across configurations.
  • Stock Tracking, Backorders & Low-Stock Alerts: Deduct stock idempotently when invoices are paid, restore stock automatically on cancellation, toggle backorders per SKU, and monitor low-stock alerts via Store > Dashboard and SQL-aggregated Store Analytics powered by Polycms_Cache.

Product Visibility and B2B Catalog Gating

Run public retail and private wholesale catalogs from the same Perfex CRM instance using three product visibility modes:

Visibility Shown in /shop, Search & Sitemaps? Direct URL Behavior for Guests Primary Use Case
public Yes - appears in shop archives, categories, widgets, shortcodes, and /product-sitemap.xml Loads product normally for browsing, checkout, or quote requests Public D2C retail and open B2B service catalogs
clients_only Hidden from guests; visible to logged-in Perfex CRM Contacts Auto-redirects unauthenticated visitors to login B2B wholesale catalogs, member pricing, exclusive retainer add-ons
hidden Excluded from public listings, grids, and product sitemaps Reserved for private operational or administrative handling Staged pre-launch items, seasonal archives, private CRM offers
Because clients_only authenticates natively against tblcontacts and tblclients, enabling a contact inside Perfex CRM immediately unlocks gated storefront products with zero separate member database.

Rapid Catalog Prototyping with the Multi-Industry Demo Data Kit

Launch a full reference store in minutes via Blog > Tools > Demo Data (powered by PolyCMS's extensible Tools > Demo Data provider hooks).

Demo Component Quantity Included Details
Studio Product Images 40 images Square studio photography (800x800) pre-assigned across categories, products, and variants
Categories 6 categories Apparel & Print-on-Demand, T-Shirts & Hoodies, Wall Art & Canvas, Consumer Electronics, Footwear & Lifestyle, Digital & B2B Services
Global Attributes 8 attributes Multi-industry variation attributes with visual swatches
Demo Products 25 products 13 variable, 4 simple, 5 digital, and 3 service (including 2 quote_only)
Variations 64 variants Globally unique SKUs, variant pricing, stock levels, and mapped media
Coupons 4 coupons WELCOME10, SAVE25, FREESHIP, BOGO21
Customers & Orders 3 customers / 6 orders Multi-status orders covering payment, shipping, completion, and quote flows

Three Safe Demo Data Actions

  1. Generate: Performs a clean seed of all demo catalog, coupon, customer, and order records.
  2. Update Demo Data: Refreshes demo kit fixtures non-destructively without deleting custom products or pages you created.
  3. Clear: Removes all demo entries cleanly before importing production SKUs.

Inspect the live 25-product catalog at the PolyStore Live Storefront Demo and its backend setup in the Perfex CRM Admin Demo.

Frequently Asked Questions (FAQ)

How does PolyStore sync with Perfex CRM Items without exposing private items?

PolyStore links 1:1 to tblitems using Opt-in Publishing. Existing CRM items remain private by default and appear on the storefront only when staff explicitly enable them in Sales > Items (modal) or Store > Products.

Can one product be assigned to multiple storefront categories?

Yes. PolyStore stores multi-category mappings in tblpolystore_product_categories and designates one category as is_primary for clean breadcrumbs and canonical taxonomy structure.

How are duplicate SKUs prevented across variable catalogs?

PolyStore enforces UNIQUE KEY uk_sku at the database level across standalone products and child variations, ensuring clean fulfillment and accurate optional per-variant perfex_item_id links.

How does PolyStore secure Digital product downloads?

Paid orders unlock tokenized download endpoints (/polystore/download/{token}) with configurable download count caps and expiry days, surfaced automatically in /my-account and payment confirmation emails.

What happens when an unauthenticated visitor opens a clients_only product?

PolyStore blocks unauthenticated access and automatically redirects the visitor to log in with their Perfex CRM Contact account before displaying pricing or checkout options.

Does Update Demo Data overwrite my custom products?

No. Update Demo Data under Blog > Tools > Demo Data is non-destructive and refreshes only demo fixtures. When going live, click Clear to remove demo records cleanly.

Will Perfex tblitems sync or stock updates overwrite MTOptimize v1.4.0 SEO metadata?

No. MTOptimize v1.4.0 guards polycms_seo_object_saved with mtoptimize_has_seo_payload(), so programmatic non-SEO saves such as Perfex tblitems synchronization or automated inventory adjustments never erase or overwrite existing tblpolycms_seo_meta rows.

Related Documentation

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.