wc-product-search-select

Enable AJAX-powered product search selection in WooCommerce admin UIs.

21|1|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/Lonsdale201/wp-agent-skills --skill wc-product-search-select
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wc-product-search-select
Source: https://github.com/Lonsdale201/wp-agent-skills/tree/main/woocommerce/wc-product-search-select
Command: npx skills add https://github.com/Lonsdale201/wp-agent-skills --skill wc-product-search-select

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

For UIs that need to select from many products (including variations), loading all products at render time is slow and impractical. WC provides an AJAX search endpoint and an enhanced select UI to load results on demand, and this pattern includes server-side pre-rendering of saved selections so existing values are visible when editing.

Core Features & Use Cases

  • AJAX-powered product search for admin UIs such as meta boxes, settings pages, and dashboard widgets.
  • Supports products and variations by using the appropriate WooCommerce JSON search endpoints and the wc-enhanced-select integration.
  • Pre-rendering of saved selections ensures labels are shown on initial render and edits.

Quick Start

Attach the wc-product-search-select to a multi-select field on a product edit screen to enable AJAX product search and selection.

Frequently Asked Questions about wc-product-search-select

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add an AJAX product search select to a WooCommerce admin meta box?

To add an AJAX product search select to a WooCommerce admin meta box, you use the WooCommerce wc-enhanced-select script and its paired JSON search endpoints to load product results on demand. This pattern includes server-side pre-rendering of saved selections so existing values display correctly when editing.

What's the best way to handle WooCommerce product selection in admin settings pages with many products?

The best way to handle WooCommerce product selection in admin settings pages with many products is an AJAX-powered select UI. It queries the WooCommerce JSON search endpoints on demand, preventing slow render times by avoiding loading all products upfront.

Does WooCommerce AJAX search support both products and variations in dashboard widgets?

Yes, WooCommerce AJAX search supports both products and variations in dashboard widgets by using the appropriate WooCommerce JSON search endpoints. The wc-enhanced-select integration fetches these variations dynamically as users type their search queries.

Why are my saved WooCommerce product selections not showing up on initial render in the admin UI?

Saved WooCommerce product selections may not show up on initial render in the admin UI if you skip server-side pre-rendering. You must pre-render the selected options on the server so their labels are visible when the page loads, ensuring smooth UX during edits.

Can I use the wc-enhanced-select script for multi-select product fields on a product edit screen?

Yes, you can use the wc-enhanced-select script for multi-select product fields on a product edit screen. Attaching the AJAX product search select to the field enables on-demand searching and selection via the WooCommerce JSON search endpoints.