# Import & Publish SOP (WooCommerce)

## Purpose
This SOP defines the **approved workflow** for importing, staging, reviewing, and publishing products in WooCommerce for Classic Imports & Design.

This process prevents:
– Duplicate SKUs
– MAP violations
– Broken filters or attributes
– Accidental public exposure

—

## Core Rules (Non-Negotiable)

1. SKU is the **unique identifier**.
2. All imports are **Draft-first**.
3. WP All Import is used for **data ingestion only**.
4. SSH / WP-CLI is used for **bulk state changes**.
5. Products are **never published automatically**.
6. Cache must be purged after bulk changes.

—

## Step 1 — Prepare Import File
Before importing, confirm:
– SKU column is populated and unique
– Categories use pipe hierarchy (e.g. Furniture|Living Room|Sofas)
– Tags are lowercase and standardized
– Attribute columns follow locked order
– Regular price exists or product must remain Draft

—

## Step 2 — Import via WP All Import

### Required Settings
– Import Type: WooCommerce Products
– Unique Identifier: SKU
– Product Status: Draft
– Update Existing Products: ON
– Create New Products: OFF (unless full reset)
– Update Attributes: ON
– Remove Attributes Not Present: ON

Run a **test import (5–10 products)** before full execution.

—

## Step 3 — Draft Review & QA
After import, all products remain Draft.

QA must confirm:
– Pricing is present and correct
– Images load correctly
– Categories and tags are correct
– Attributes appear and filters work
– Descriptions are readable and complete

Use the **Pre-Publish QA Checklist**.

—

## Step 4 — Approval
Products may only proceed to publishing once:
– QA checklist is completed
– Brand-level exceptions are reviewed
– Approval is documented

—

## Step 5 — Publishing
Publishing is performed **only via SSH / WP-CLI**.
Refer to the **SSH & WP-CLI Runbook** for commands.

—

## Step 6 — Post-Publish
After publishing:
– Purge Cloudways Varnish cache
– Clear WordPress cache plugin
– Spot-check live site

—

## Audit Trail
For each release record:
– Date
– Brand(s)
– SKU count
– Import file name
– Approved by

12-19-25

During catalog staging or rebuilds, the WooCommerce Shop page must be set to Draft. This fully disables archive rendering and prevents theme-level product output, even when caching is present.