Magento Multi store products from different root category in same page on website level

Magento Multi store products from different root category in same page on website level

September 18, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento Multi store products from different root category in same page on website level

Multistore Product Integration Across Different Root Categories

In Magento, managing multiple stores across different domains is a common requirement for e-commerce businesses looking to expand their online presence. While Magento Commerce Edition (CE) offers robust features for multistore setup, integrating products from various root categories on a single website level can be challenging.

Understanding the Magento Multi-Store Architecture

Before we dive into the solution, let’s briefly understand how Magento handles multiple stores and websites.

In Magento, you can create separate websites within your instance. Each website can contain one or more store views associated with it. The root category is defined at the store view level, which means each store view has its own product catalog organized under a specific root category.

The Challenge: Unifying Products from Multiple Root Categories

You want to display products from different root categories (associated with separate stores) on the same page of your default website. This isn’t straightforward because Magento’s architecture separates these products based on their root category assignments.

A Pragmatic Approach: Using a Custom Category

To achieve this, you’ll need to create a new custom category at the root level that serves as an umbrella for all products regardless of their original root categories. Here’s how:

  1. Create a New Category: Go to Catalog > Categories in your Magento admin panel and click on “Add Root Category”. Create a new category with a descriptive name like “All Products” or “Entire Catalogue”.

  2. Assign All Products to the New Category: You’ll need to programmatically move all products from their original root categories to this new one. This requires some custom development using Magento’s API.

    Here’s an example of how you can use Magento’s REST API to move a product:

    const fetch = require('node-fetch');
    const url = 'https://your_magento_instance.com/rest/V1/products/1';
    const options = {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        "category_ids": [3]  // 3 is the ID of your new "All Products" category
      })
    };
    
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data));
    

    You would run this script for each product in your catalog, updating their category_ids property to include the ID of your new category.

Displaying Products from the Custom Category

Once you’ve moved all products into the custom “All Products” category, you can now display them on any page using standard Magento CMS or block creation methods. You can use the catalog_category_view_all_products layout handle to load products from this specific category.

Conclusion: Integrating Products Across Multiple Root Categories

While Magento’s out-of-the-box features don’t explicitly support this scenario, a pragmatic approach involves creating a new custom root category and programmatically moving all products into it. This allows you to unify your product catalog across multiple stores on a single page.

Remember, the key is to ensure that each product has its original store view and price information associated with it when moved to the new category. This requires careful management of product attributes during the migration process.

For more advanced custom development needs like this one, consider reaching out to experienced Magento developers or agencies for professional assistance.

You can find a comprehensive guide on Magento development practices at Laravel Company.

Catalog Themes Admin

Our network