If you run an e-commerce website, you may need the product ID to easily manage your online business. Each unique ID under a product can reveal a variety of information about product details as well as how users interact with your website.
They also play an important role when it comes to customizing the WooCommerce store page. Today, we’ll show you how to find the WooCommerce product ID quickly and easily without having to use plugins or write complex lines of code.
Why do I need to find a product ID in WooCommerce?
A product ID is a unique number assigned to each product by WooCommerce. Whenever you create a product in WooCommerce, a corresponding ID is generated for this product. It is used by WordPress and WooCommerce to identify products in your store.
The product ID is more useful than you might think.
You can track users’ interaction with your website, their IDs, their purchase date and the abandonment of their purchase via the product ID to capture their shopping behavior.
You may also need the product ID to easily remove the product from the feed or create advanced product filters.
Apart from this, the product ID also plays an important role in customizing the WooCommerce store page. If you want to customize your product or store page, you may need to include it in the code.
For example, you will need the product ID if you are creating variations for the same product. Or if you want to use the WRAC (WooCommerce Redirect After Checkout) plugin to redirect based on products after checkout, you need to know the specific product ID to apply the redirect rules.
Knowing how important the product ID is, let’s look at 2 ways to determine the product ID in WooCommerce.
The 2 easiest ways to find the WooCommerce product ID in the WordPress backend
To find the product ID in WooCommerce, you can either search for it in the WordPress backend, use plugins or edit the code using SQL and PHP. In most cases, finding the product ID in the backend of the WordPress website is better, simply because it is the fastest and easiest compared to the other two options.
Determine individual WooCommerce product ID
There are two easy ways to find an individual product ID in the WordPress backend. The first way is to obtain a product ID on the product list page.
- Go to “Products” in your WordPress administration and select ““All products”
- Hover over the product for which you need the ID.
- The product ID will then be displayed under the product name.
The second option is to search for an individual product ID via the product URL.
- Select the URL in your browser under “Edit product”. The post number contains the product ID.
- In the illustration below, the product ID is 694.
The above methods are simple, but it is time-consuming if you need to search for multiple product IDs at the same time. In this case, you can definitely save a lot of time with the CSV method.
Get all WooCommerce product IDs
This way, all the product IDs of your WooCommerce products will be listed in the CSV file.
- Navigate to “Products” in WooCommerce
- Click on the “Export” button.
- Then click on the “Generate CSV” button.
- Once the CSV file is exported, open it and check the product ID in the first column labeled “ID”

Conclusion
The product ID may be required in many situations, such as when adding shortcodes for customization or when creating product filters.
We have guided you through the easiest ways to find the WooCommerce product ID in the WordPress backend.
You can retrieve an individual product ID via the URL when editing a product, or by hovering over a product on the product listing page. To find all product IDs of your WooCommerce products, let us export the CSV file to save your valuable time.
If you need more help, contact us via the comment box below or follow us on Youtube for more useful tips and tutorials.

