Product Search Not Working
4 min read
If product search in the campaign wizard isn’t returning expected results or isn’t working at all, this guide covers common causes and solutions.
Quick Checklist #
- ☐ JavaScript is enabled in browser
- ☐ No JavaScript errors in console
- ☐ AJAX requests are not being blocked
- ☐ Products exist and are published
- ☐ Products are not in trash
Common Causes #
1. JavaScript Errors #
Symptom: Search field doesn’t respond, no dropdown appears.
Check:
- Open browser developer tools (F12)
- Go to Console tab
- Look for red error messages
Solution:
- If errors mention other plugins, there may be a conflict
- Try disabling other plugins temporarily
- Clear browser cache and try again
2. AJAX Blocked by Security Plugin #
Symptom: Search never returns results, spins indefinitely.
Check:
- Open browser developer tools (F12)
- Go to Network tab
- Search for something and look for AJAX requests
- Check if requests return 403 or are blocked
Solution:
- Whitelist admin-ajax.php in security plugin
- Check firewall rules aren’t blocking requests
- Temporarily disable security plugins to test
3. No Matching Products #
Symptom: Search returns “No results found.”
Check:
- Search term may be too specific
- Product may not be published
- Product may be a variation (search parent)
Solution:
- Try searching with fewer characters
- Search by SKU if name doesn’t work
- Verify product exists in WooCommerce → Products
4. Timeout on Large Catalogs #
Symptom: Search works but is very slow or times out.
Why This Happens:
- Very large product catalogs (10,000+ products)
- Limited server resources
- Complex product data
Solution:
- Be more specific in search terms
- Search by SKU for exact matches
- Contact hosting about increasing timeout limits
5. Products in Draft/Trash #
Symptom: Know a product exists but can’t find it.
Check:
- Go to WooCommerce → Products
- Search for the product
- Check its status (Published, Draft, Trash)
Solution:
- Only published products appear in search
- Publish the product first, then add to campaign
6. Variable Products vs. Variations #
Symptom: Can’t find a specific variation.
How It Works:
- Search returns parent variable products
- Individual variations are included via the parent
- You don’t need to select each variation separately
Example:
Search for: "T-Shirt" Returns: "T-Shirt" (variable product) Includes: All variations (Small, Medium, Large, etc.)
7. Search Indexing Issues #
Symptom: Recently added products don’t appear.
Solution:
- Clear plugin cache: SC Discounts → Tools → Clear Plugin Cache
- Try searching again
- New products should appear after cache clear
Search Features #
What You Can Search By #
| Search Term | Matches |
|---|---|
| Product name | “Winter Jacket” |
| SKU | “WJ-001” |
| Product ID | “123” |
| Partial match | “Winter” finds “Winter Jacket” |
Minimum Search Characters #
- Default: 2 characters minimum
- Shorter searches won’t trigger results
Search Results Limit #
- Default: 20 results shown at a time
- Scroll to load more
- Be more specific for large catalogs
Alternative: Condition-Based Selection #
If product search is problematic, use conditions instead:
Select by Category #
- Choose “Products by Condition”
- Add condition: Category equals “Your Category”
- All products in that category are included
Select by Tag #
- Choose “Products by Condition”
- Add condition: Tag equals “sale-item”
- Tag products in WooCommerce, they’re automatically included
Select All Products #
- Choose “All Products”
- Add exclusion conditions for products to skip
Diagnostic Steps #
Step 1: Check Browser Console #
1. Open browser developer tools (F12) 2. Go to Console tab 3. Type something in product search 4. Look for red error messages
Step 2: Check Network Requests #
1. Open browser developer tools (F12) 2. Go to Network tab 3. Type something in product search 4. Look for admin-ajax.php requests 5. Check response status (should be 200)
Step 3: Verify Product Exists #
1. Go to WooCommerce → Products 2. Search for the product 3. Confirm it's Published status 4. Note the Product ID
Step 4: Test Direct Search #
Try searching by: - Full product name - Partial name (first word) - SKU - Product ID number
Plugin Conflicts #
Known Conflict Types #
| Plugin Type | Potential Issue |
|---|---|
| Security plugins | May block AJAX requests |
| Optimization plugins | May break JavaScript |
| Admin customization | May override scripts |
| Other WooCommerce plugins | May conflict with product queries |
Testing for Conflicts #
- Deactivate other plugins (except WooCommerce)
- Test product search
- If working, reactivate plugins one by one
- Identify the conflicting plugin
Hosting Issues #
Common Hosting Problems #
- mod_security: May block AJAX requests
- Low memory: May timeout on large catalogs
- Aggressive firewall: May block requests
Solutions #
- Contact hosting to whitelist admin-ajax.php
- Increase PHP memory limit
- Check hosting error logs for blocks
Still Not Working? #
Gather Debug Information #
- Screenshot of Console errors (if any)
- Screenshot of Network tab showing failed requests
- System report from SC Discounts → Tools
- List of active plugins
- Search term you’re trying
- Expected product that should appear
Workaround #
While troubleshooting, you can:
- Use condition-based selection instead of specific products
- Note the product IDs from WooCommerce
- Use “All Products” with exclusions
Updated on February 14, 2026