WooCommerce Fundamentals
WooCommerce is the world's most popular e-commerce plugin, powering 28%+ of all online stores. It transforms WordPress into a full-featured e-commerce platform.
Prerequisites
- WordPress 5.8+
- PHP 7.4+ (8.0+ recommended)
- MySQL 5.7+ / MariaDB 10.3+
- HTTPS/SSL Certificate
How WooCommerce Works
Core architecture and data model.
Custom Post Types
Products (product): The items you sell. Each product is a post with custom fields.
Orders (shop_order): Customer transactions. Contains line items, shipping, billing.
Coupons (shop_coupon): Discount codes with rules and restrictions.
Refunds (shop_order_refund): Linked to parent orders.
Product Types
Simple: Single product, single price (e.g., a book).
Variable: Product with variations like size/color (stored as product_variation CPT).
Grouped: Collection of simple products sold together.
External/Affiliate: Links to products sold elsewhere.
Database Tables
wp_posts + wp_postmeta: Products, orders stored as custom post types.
wp_woocommerce_order_items: Line items for orders.
wp_woocommerce_order_itemmeta: Meta data for line items.
wp_wc_product_meta_lookup: Optimized product queries (price, stock).
wp_woocommerce_sessions: Cart and session data.
Verification Checklist
- Check System Status
- Test Template Override