Defining the main category of a product

Assign a product to more than one category if needed. In this case, make sure to define one of them as the main category.

Background

Setting a main category is important for the following reasons:

  • OXID eShop uses the main category in specific contexts to determine where to display the product.

    For example, if a customer finds a product via the shop’s search or through tags, the product will be shown in the defined main category.

  • You avoid what is known as duplicate content.

    A product assigned to multiple categories has multiple URLs pointing to the same details page. This means the same content is accessible through different URLs, which search engines like Google, Bing or Yahoo! typically penalise in ranking.

    The solution is to use canonical tags (also known as canonical links), which identify the original version of a page with identical content. In OXID eShop, the canonical tag points to the product’s details page with the main category in the URL.

    Canonical tags are always automatically set in OXID eShop—even if a product is only assigned to a single category.

    If no main category is explicitly defined, the shop will use the first assigned category as the main category.

Procedure

To set the main category for a product, proceed as follows:

  1. Go to Administer Products ‣ Products.

  2. Select the desired product from the product list.

  3. Open the Extended tab and click on Assign Categories.

  4. Highlight the category that should be used as the main category.

  5. Click on Set as Main Category (Fig.: Setting the main category, Pos. 1 – in our example, we assign the umbrella to “Accessories” as its main category).

  6. Close the assignment window.

Setting the main category

Fig.: Setting the main category

Result

In our example, the canonical tag in the page source of the product details page for the umbrella includes the “Accessories” category:

<link rel="canonical" href="http://myshop.com/en/Spare-parts/Accessories/Royal.html">

See also

Products - Extended tab | Canonical link (Wikipedia)