WooCommerce plugin docs / Admin Guide

Admin guide

All plugin screens live under one WooCommerce submenu.

Path: WordPress Admin → WooCommerceAI Assistant URL: wp-admin/admin.php?page=aiwsa-assistant Capability: manage_woocommerce Credentials: manage_options for AI Provider keys

Query args: tab, section. Example: admin.php?page=aiwsa-assistant&tab=settings&section=language


Screens

Top navPurposeDocs
DashboardLive counts; empty ≠ brokenDashboard
AI ProviderKeys, modelssettings/ai-provider
Product SearchSearch strategy + toolssettings/product-search
RecommendationsUpsell/cross-sellsettings/recommendations
Product Q&ADetail/variation/stock/content toolssettings/product-qa
Cart AssistantCart toolssettings/cart-assistant
Cart RecoveryOverview, carts, settings, AI logCart Recovery
AnalyticsOverview + settings + order attributionAnalytics
Order AssistantOrder toolssettings/orders
Sales AgentPlaybook togglessettings/sales-agent
SettingsSidebar: General, Quick Actions, Chatbot, AI Language, Appearance, Access & Privacy, Usage & Costs, Logs, Developer & Debugmatching files under docs/settings/

Admin Page: Dashboard

Purpose

Live status for this store.

Available Sections

Stat cards + Search insights (when samples exist).

Settings

None on this view.

Recommended Configuration

Use after traffic exists. Empty cards are expected on a new install.

Save/Reset Behavior

N/A.

Notices/Warnings

Welcome notice after activation. Schema error if tables failed.

Common Issues

All “No data yet”: assistant not enabled or no storefront use.

Details: dashboard.md.


Admin Page: Settings (all sections)

Purpose

Persist options via options.php (groups aiwsa_general, aiwsa_providers, aiwsa_prompts, aiwsa_tools).

Save/Reset Behavior

Each card has Save. Appearance Reset colors writes factory hex. AI Language Reset on fallbacks clears only ai_fallback_messages. Re-activation does not overwrite existing options.

Notices/Warnings

WordPress settings_errors() render inside the plugin shell. Invalid custom base URL shows a rejection notice.

Common Issues

Changes not applying: you saved a different card (each form is separate). Cached storefront HTML: widget still loads fresh /config.


Admin Page: Cart Recovery

Purpose

Abandoned carts, reminder emails, recovered revenue.

Available Sections

Subnav: Overview, Abandoned carts, Settings, and AI log (when AI log feature allowed). section=view opens one cart (emails masked).

Settings

Cart Recovery settings.

Recommended Configuration

Off until From address, template, and consent are set. Start with 1 email.

Save/Reset Behavior

Multiple forms on Settings. Destructive: delete all tracking data, clear logs, per-cart actions via admin_post_aiwsa_recovery_action.

Notices/Warnings

Success/error after admin-post redirects.

Common Issues

Empty overview: recovery disabled or no tracked carts. Emails not sending: cron, consent, mail.


Admin Page: Analytics

Purpose

Funnel and revenue attribution.

Available Sections

Overview, Settings, Attribution details (section=order&order_id=).

Settings

Analytics settings.

Recommended Configuration

Analytics on; 7-day window; 90-day retention.

Save/Reset Behavior

Settings form. Export and insights use admin-post handlers.

Notices/Warnings

None beyond empty states.

Common Issues

See Analytics feature.


WooCommerce Status

A plugin panel is added on WooCommerce → Status (System_Status). Use it plus Developer & Debug for support.

AJAX (admin, logged-in only)

ActionPurpose
aiwsa_test_api_keyTest provider key
aiwsa_remove_api_keyRemove stored key
aiwsa_recovery_previewPreview recovery email
aiwsa_recovery_test_emailSend test recovery email

No wp_ajax_nopriv handlers.