Getting the ID of your product or category

Each product and category in your Sauecommerce store has its own unique identifier (or ID). You can see these identifiers as part of the product/category web address. IDs can be used to create CSS codes for certain store pages or to add a specific store category to a website.

In this article, we explain how you can find the ID of a product or product category.

Table of contents

Getting ID for a product

There are several ways to get the ID of a product. First, you can copy IDs for individual products from your Sauecommerce admin or from the storefront. Second, you can export IDs for several products in bulk.

To get the ID of an individual product:

  1. From your Sauecommerce admin, go to Catalog → Products.
  2. Open the product.
  3. Copy the ID from the browser address bar. You will see numbers that go after “id=” — that’s the ID of your product (“239904127” in our example):

If you need to get IDs of hidden products (en inglés) that do not display in the storefront, you can do that only in your Sauecommerce admin.

In case you want to get the IDs of several products in bulk, you can export products with their IDs to a CSV file. The CSV file downloaded to your device will contain a list of IDs for your products in the "product_internal_id" column. You can open this file in any text editor like Notepad or TextEdit or in a spreadsheet editor like Excel or Google Sheets.

Getting ID for a category

There are several ways to get the ID of a specific product category. First, you can copy IDs for individual categories from your Sauecommerce admin or from the storefront. Second, you can export IDs for several categories in bulk.

The ID of the Store front page category (the one with featured products) is always “0”.

To get the category ID:

  1. From your Sauecommerce admin, go to Catalog → Categories.
  2. Open the category for which you need to get the ID.
  3. Copy the ID from the browser address bar. You will see numbers that go after “id=” — that’s the ID of your product category (“120581513” in our example):

If you need to get IDs of hidden categories (en inglés) that do not display in the storefront, you can do that in your Sauecommerce admin or temporarily make your category visible (en inglés).

In case you want to get the IDs of several categories in bulk, you can export your catalog with their IDs to a CSV file. The CSV file downloaded to your device will contain a list of IDs for your categories in the "category_internal_id" column. You can open this file in any text editor like Notepad or TextEdit or in a spreadsheet editor like Excel or Google Sheets.