WooCommerce is not active. This tab is only available when WooCommerce is installed and activated.

'; return; } // Get current settings $woocommerce_fields = get_option( 'ai_search_woocommerce_fields', $this->get_default_woocommerce_fields() ); $available_fields = $this->get_woocommerce_fields(); $product_attributes = $this->get_product_attributes(); ?>

WooCommerce Product Search Settings

WooCommerce field settings saved successfully! Remember to regenerate embeddings for products to include the new fields.

Select which WooCommerce product fields should be included when generating embeddings for product searches. This helps make your product search more accurate and context-aware.

$field_label ) : ?>

Product descriptions and SKU to include in embeddings.

$field_label ) : ?>

Product categories and tags to include in embeddings.

attribute_name; ?>

Product attributes like Color, Size, etc. to include in embeddings.

How WooCommerce Integration Works

Example Use Cases

Customer Search Relevant Fields Why It Helps
"red summer dress" Categories, Attributes (Color), Description Finds dresses by color and season context
Product SKU search Product SKU Direct lookup for known product codes
"organic cotton shirt" Description, Tags, Attributes (Material) Matches based on material and product type