---
title: Product Search Not Working
description: "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…"
url: "https://webstepper.io/docs/smart-cycle-discounts/troubleshooting/product-search-not-working/"
updated: "2026-02-14"
category: Troubleshooting
---

# Product Search Not Working

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:**

1. Open browser developer tools (`F12`)
2. Go to Console tab
3. 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:**

1. Open browser developer tools (`F12`)
2. Go to Network tab
3. Search for something and look for AJAX requests
4. 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:**

1. Search term may be too specific
2. Product may not be published
3. 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:**

1. Go to WooCommerce → Products
2. Search for the product
3. 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:**

1. Clear plugin cache: **SC Discounts → Tools → Clear Plugin Cache**
2. Try searching again
3. 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

1. Choose "Products by Condition"
2. Add condition: Category equals "Your Category"
3. All products in that category are included

### Select by Tag

1. Choose "Products by Condition"
2. Add condition: Tag equals "sale-item"
3. Tag products in WooCommerce, they're automatically included

### Select All Products

1. Choose "All Products"
2. 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

1. Deactivate other plugins (except WooCommerce)
2. Test product search
3. If working, reactivate plugins one by one
4. 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

1. Screenshot of Console errors (if any)
2. Screenshot of Network tab showing failed requests
3. System report from **SC Discounts → Tools**
4. List of active plugins
5. Search term you're trying
6. Expected product that should appear

### Workaround

While troubleshooting, you can:

1. Use condition-based selection instead of specific products
2. Note the product IDs from WooCommerce
3. Use "All Products" with exclusions
