# Managing Duplicate Products

If your store is **not on Shopify Plus**, Eraya uses **duplicate products** to safely run price tests without affecting live listings. This requires a few one-time setup steps to ensure your storefront, inventory, and third-party integrations work smoothly.

## Remove Duplicate Products from Sales Channels

To prevent duplicate test products from appearing on your sales channels (like Facebook, Google, or POS), keep them active only in your **Online Store** channel.

{% stepper %}
{% step %}

### Locate test products

* Go to **Shopify → Products**.
* In the search bar, type your test tag:

```
eraya-price-test-<testId>
```

Example: `eraya-price-test-68c6e8d04c4e505e4f18ea4e`
{% endstep %}

{% step %}

### Select duplicate products

* Select the duplicate product(s) by clicking the checkbox in the product list.
  {% endstep %}

{% step %}

### Exclude from sales channels

* Click the **three dots (⋯)** above the product list.
* Choose **“Exclude from sales channels.”**
* In the popup window:
  * De-select “Online Store.”
  * Keep all other channels selected.
* Click **“Exclude products.”**
  {% endstep %}
  {% endstepper %}

***

## Remove Duplicate Products from Collections

To avoid showing duplicate products in your store collections, remove them from all existing collections.

{% stepper %}
{% step %}

### Find duplicate products

* Go to **Shopify → Products**.
* Search for your test tag:

```
eraya-price-test-<testId>
```

{% endstep %}

{% step %}

### Select duplicate products

* Select the duplicate product(s) by clicking the checkbox.
  {% endstep %}

{% step %}

### Remove from collections

* Click the **three dots (⋯)** above the product list.
* Choose **“Remove from collection(s).”**
* In the popup:
  * Select all collections.
* Click **“Save.”**
  {% endstep %}
  {% endstepper %}

***

## Inventory Tracking

Eraya automatically keeps inventory synchronized between your **duplicate** and **original** products.

{% hint style="info" %}
No action required — Eraya handles inventory synchronization:

* Real-time stock adjustments
* Updates on purchases, refunds, and restocks
* Prevention of mismatched inventory or overselling
  {% endhint %}

***

## Configure Search App

If your store uses a **search app** (e.g., Boost, Searchanise, InstantSearch+), set a rule to hide duplicate test products.

{% stepper %}
{% step %}

### Open search app settings

* Open your search app’s settings or filters.
  {% endstep %}

{% step %}

### Exclude duplicates

* Add a rule to **exclude** any product with the tag:

```
eraya-duplicated
```

{% endstep %}

{% step %}

### Save and reindex

* Save and reindex the search results.
  {% endstep %}
  {% endstepper %}

***

## Configure Duplicate Products in Third-Party Apps

If your store uses additional third-party apps that reference products, make sure to **add your duplicate products** to those apps.

Examples:

* Review apps: Judge.me, Loox, Yotpo
* Size chart apps
* Bundle or Upsell apps
* Frequently Bought Together apps
* Subscription apps: Recharge, Skio, Appstle

Adding your duplicate products ensures these apps display accurate data for all test variants.

***

## Hide Duplicate Products from Collection Pages (Theme Edit)

If your storefront theme displays products from collections, you can hide duplicate test products directly in your theme code.

{% stepper %}
{% step %}

### Open theme code editor

* In Shopify Admin, go to **Online Store → Themes → Edit Code.**
  {% endstep %}

{% step %}

### Find collection template

* Find the file that renders collection pages (example filenames):
  * `collection.liquid`
  * `collection-template.liquid`
  * `main-collection-product-grid.liquid`
  * `collection-page.liquid`
    {% endstep %}

{% step %}
\## Locate product loop

* Locate the product loop in the template:

```liquid
{% for product in collection.products %}
  ...
{% endfor %}
```

{% endstep %}

{% step %}
\## Wrap rendering in an unless block

* Wrap the existing product display code inside an `unless` block:

```liquid
{% unless product.tags contains "eraya-duplicated" %}
  <!-- existing product display code -->
{% endunless %}
```

* Click **Save** and preview your collection page.
  {% endstep %}
  {% endstepper %}


---

# 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://eraya.gitbook.io/eraya-docs/price-test/managing-duplicate-products.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.
