E-Commerce

WooCommerce Products & Variation Matrices

Match by SKU, update prices & inventory only, and manage complex variable products with multi-attribute matrices.

Frexten Engineering Team
Updated 2026-11-20

Article Overview

  • Category: E-Commerce, WooCommerce Architecture & Inventory Sync
  • Audience: Store Owners, WooCommerce Agencies & E-commerce Operations Teams
  • Applies To: NextGen Smart Data Importer (Community Free & Enterprise Pro Editions)
  • Purpose: Definitive technical guide for importing Simple, Variable, Grouped, and External WooCommerce products, mapping multi-attribute variations, and executing high-speed SKU inventory updates.

1. Executive Summary

Managing a catalog of thousands of WooCommerce products requires handling two distinct operational scenarios:

  1. Initial Catalog Ingestion: Creating new products from supplier feeds with complete descriptions, galleries, categories, and attributes.
  2. High-Frequency Inventory & Price Sync: Updating stock quantities and regular/sale prices for 20,000 SKUs in under 60 seconds without re-downloading images or touching product descriptions.

NextGen Smart Data Importer provides native, first-class support for WooCommerce core data structures, including complex Variable Products linked via parent/child SKU hierarchies.


2. Product Hierarchy Architecture: Simple vs. Variable

Architecture Flowchart
flowchart TD subgraph SimpleProduct["Simple Product Model"] S1["Row: SKU TSHIRT-RED-S
Type: Simple
Price: $19.99
Stock: 45"] S1 --> SDB[("wp_posts (type: 'product')
+ wp_postmeta (_sku, _price, _stock)")] end subgraph VariableProduct["Variable Product Model (Parent + Variations)"] P1["Row 1: SKU TSHIRT-PARENT
Type: Variable
Attributes: Color, Size"] V1["Row 2: SKU TSHIRT-BLU-M
Parent: TSHIRT-PARENT
Color: Blue | Size: M | $21.99"] V2["Row 3: SKU TSHIRT-RED-L
Parent: TSHIRT-PARENT
Color: Red | Size: L | $24.99"] P1 --> PDB[("wp_posts (type: 'product')
_product_attributes array")] V1 --> VDB1[("wp_posts (type: 'product_variation')
post_parent: Parent ID
attribute_pa_color: blue")] V2 --> VDB2[("wp_posts (type: 'product_variation')
post_parent: Parent ID
attribute_pa_color: red")] end

3. The 2 Methods for Structuring Variation Spreadsheets

NextGen supports both industry-standard methods for formatting variable products in CSV or Excel:

Each parent product sits on its own row, followed by rows for its individual variations linked via Parent SKU:

Product Type SKU Parent SKU Product Name Attribute: Color Attribute: Size Regular Price Stock
variable JACKET-PARENT (blank) Men's Bomber Jacket Black | Navy S | M | L (blank) (blank)
variation JACKET-BLK-S JACKET-PARENT Men's Bomber - Black / S Black S 149.99 15
variation JACKET-BLK-M JACKET-PARENT Men's Bomber - Black / M Black M 149.99 24
variation JACKET-NVY-L JACKET-PARENT Men's Bomber - Navy / L Navy L 159.99 8

Method B: Single-Row Consolidated Product with Delimiters

For supplier feeds where variations are consolidated into a single row:

  • SKU column: JACKET-BLK-S, JACKET-BLK-M, JACKET-NVY-L
  • Prices column: 149.99, 149.99, 159.99
  • NextGen's Variation Unroller dynamically splits the single row into a variable parent and 3 child variation records in memory during import!

4. High-Speed "Price & Stock Only" Sync Workflow

When running daily price and inventory updates, downloading images and rebuilding taxonomy trees wastes CPU time and risks timing out.

NextGen features a dedicated Selective Field Sync mode in Step 3:

text
┌────────────────────────────────────────────────────────────────────────────────────────┐
│  STEP 3: SELECTIVE SYNC ENGINE                                                         │
│  Matching Key: [ Match Existing Products by SKU ▼ ]                                    │
├────────────────────────────────────────────────────────────────────────────────────────┤
│  [✓] Update Matching Products                                                          │
│  [ ] Skip New Products (Do not insert new rows)                                        │
│                                                                                        │
│  SELECT FIELDS TO UPDATE:                                                              │
│  [ ] Product Title & Description (Preserve manual edits)                               │
│  [ ] Categories & Tags (Preserve SEO structure)                                        │
│  [✓] Regular Price & Sale Price                                                        │
│  [✓] Stock Quantity & Stock Status (_stock, _stock_status)                             │
│  [ ] Product Images & Galleries (Zero image downloads!)                                │
└────────────────────────────────────────────────────────────────────────────────────────┘

Performance Impact:

  • Full Re-Import: 5,000 products with images = ~15 minutes.
  • Selective Price & Stock Sync: 5,000 products matched by SKU = 24 seconds (over 200 products/second).

5. Developer Technical Reference

Action Hook: nextgen_importer_after_product_import

Fires after a WooCommerce product and all its variations are persisted:

php
add_action('nextgen_importer_after_product_import', function ($post_id, $row, $is_update) {
    $product = wc_get_product($post_id);
    if ($product && $product->is_type('variable')) {
        // Sync WooCommerce variation price lookup transients
        WC_Product_Variable::sync($post_id);
    }
}, 10, 3);

6. Frequently Asked Questions (FAQ)

Q: Why aren't my variations showing on the front-end product page?

In WooCommerce, variations only appear if their parent product has _product_attributes saved with the "is_variation" flag set to 1, and if each variation has a price assigned. NextGen sets both automatically.

Q: Does NextGen support custom product types (e.g., Subscriptions or Bookings)?

Yes. Custom product types registered via WooCommerce Subscriptions, WooCommerce Bookings, or third-party add-ons are automatically recognized in Step 2.