# Product Visibility

### 1 Prerequisites

| Component        | Minimum version                                |
| ---------------- | ---------------------------------------------- |
| **Nosto Plugin** | 3.5.5 (SW 6.5) · 5.1.5 (SW 6.6) · 6.0.0 (6.7+) |
| **Shopware**     | 6.5.0 or later                                 |

In **Shopware Admin → Catalogues → Products** each product now exposes a **Visibility** toggle per sales channel:

<figure><img src="/files/g2u18Guu7Wc3bTGUAmCN" alt=""><figcaption></figcaption></figure>

Earlier plugin releases ignored this flag. The new versions filter products based on it—after a one-time setup.

***

### 2 One-Time Setup

#### Step 1 Run a Full Product Sync

```
Shopware Admin → Marketing → Nosto Job Listing → Schedule Full Product Sync
```

Wait until the job status shows **Finished**.

***

#### Step 2 Index Custom Fields in Nosto

1. **MyNosto → Product Experience Cloud → Search → Settings → Indexed Fields**\
   \&#xNAN;*(You can do the same via Category Merchandising; once is enough.)*&#x20;

   <figure><img src="/files/yse748DPKw1qBqbhCK3z" alt=""><figcaption></figcaption></figure>
2. Click **Add attribute** twice and create the following custom fields:

| Field          | Type    | Purpose                                |
| -------------- | ------- | -------------------------------------- |
| `showsearch`   | Boolean | Visibility flag for Search API calls   |
| `showcategory` | Boolean | Visibility flag for Category API calls |

<figure><img src="/files/vf1vUzmo0R3wnSljG04R" alt=""><figcaption></figcaption></figure>

***

#### Step 3 Enable the Feature Flag in the Plugin

> **Wait for indexing** — Nosto re-indexes every six hours. To verify completion you can temporarily create a facet:

* **MyNosto → Search → Settings → Facet Manager → New facet group**
* Pick `showsearch` (or `showcategory`).\
  \&#xNAN;*If the “attribute unavailable” warning disappears, indexing is done. Delete the test facet.*

Once indexing is confirmed:

```
Shopware Admin → Extensions → My Extensions → Nosto → Configuration → Enable products visibility
```

<figure><img src="/files/i5Nh0qbSi2zZ3BZjvvsP" alt=""><figcaption></figcaption></figure>

***

### 3 Result

After these three steps the Nosto plugin automatically appends `showsearch=true` or `showcategory=true` filters in its Search and Category API calls. Products hidden for a given sales channel in Shopware will no longer surface in Nosto recommendations, merchandising rules, or search results for that channel.

***

#### Need Help?

*Verify that:*

1. **Full Product Sync** completed without errors.
2. Both custom fields appear under **Indexed Fields**.
3. The **Enable products visibility** flag is switched **on**.
4. Plugin version meets or exceeds the minimum listed above.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nosto.com/shopware-6/getting-started/guides/product-visibility.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
