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.

1

Locate test products

  • Go to Shopify → Products.

  • In the search bar, type your test tag:

eraya-price-test-<testId>

Example: eraya-price-test-68c6e8d04c4e505e4f18ea4e

2

Select duplicate products

  • Select the duplicate product(s) by clicking the checkbox in the product list.

3

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.”


Remove Duplicate Products from Collections

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

1

Find duplicate products

  • Go to Shopify → Products.

  • Search for your test tag:

eraya-price-test-<testId>
2

Select duplicate products

  • Select the duplicate product(s) by clicking the checkbox.

3

Remove from collections

  • Click the three dots (⋯) above the product list.

  • Choose “Remove from collection(s).”

  • In the popup:

    • Select all collections.

  • Click “Save.”


Inventory Tracking

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

No action required — Eraya handles inventory synchronization:

  • Real-time stock adjustments

  • Updates on purchases, refunds, and restocks

  • Prevention of mismatched inventory or overselling


Configure Search App

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

1

Open search app settings

  • Open your search app’s settings or filters.

2

Exclude duplicates

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

eraya-duplicated
3

Save and reindex

  • Save and reindex the search results.


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.

1

Open theme code editor

  • In Shopify Admin, go to Online Store → Themes → Edit Code.

2

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

3

## Locate product loop

  • Locate the product loop in the template:

{% for product in collection.products %}
  ...
{% endfor %}
4

## Wrap rendering in an unless block

  • Wrap the existing product display code inside an unless block:

{% unless product.tags contains "eraya-duplicated" %}
  <!-- existing product display code -->
{% endunless %}
  • Click Save and preview your collection page.

Last updated