Getting the ID of your product or category
Each product and category in your Ecwid 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.
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 Ecwid admin or from the storefront. Second, you can export IDs for several products in bulk.
To get the ID of an individual product:
- From your Ecwid admin, go to Catalog → Products.
- Open the product.
- 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):
- Open your Ecwid storefront.
You can always access your storefront by clicking the View [your store name] link in the top right corner of the admin.
- Navigate to the page of the product.
- Copy the ID from the browser address bar. It’s the numbers that go at the end of the link, after letter “p” (“239904127” in our example):
In case you want to get the IDs of several products in bulk, you can export products with their IDs to a CSV file.
To get the IDs of several products:
- From your Ecwid admin, go to Catalog → Products.
- Tick the products for which you want to get the IDs and click Import or Export products → Export Selected. You can also click Import or Export products → Export All if you need to export all your product IDs.
- In the export dialog, select product name or SKU and Product ID for columns:
You can also select other columns if you want. - Click Download CSV file.
The CSV file will contain a list of IDs for your products. 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 two ways to get the ID of a specific product category. First, you can copy it from your Ecwid admin. Second, you can copy it from the storefront.
To get the category ID:
- From your Ecwid admin, go to Catalog → Categories.
- Open the category for which you need to get the ID.
- 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):
- Open your Ecwid storefront.
You can always access your storefront by clicking the View [your store name] link in the top right corner of the admin.
- Navigate to the page of your product category.
- Copy the ID from the browser address bar. It’s the numbers that go at the end of the link, after letter “c” (“120581513” in our example):