Find out how to Discover Product ID in WooCommerce (Newbie’s Information)

  • August 11, 2023
  • elkenz
  • 4 min read

Are you on the lookout for a product ID in WooCommerce?

Every product added to your WooCommerce retailer has a novel identification quantity assigned to it. Typically, you might want this ID to find a product, show it in a sale marketing campaign, and extra.

On this newbie’s information, we’ll present you tips on how to discover a product ID in WooCommerce rapidly.

Finding product ID in WooCommerce

What’s Product ID in WooCommerce?

WooCommerce saves all of your product knowledge within the WordPress database system.

To make every document distinctive, it routinely assigns an ID quantity to every product you add to your WooCommerce retailer.

This permits WooCommerce to show a product when requested, course of orders, and do many cool issues behind the scenes.

Nevertheless, generally you might have to discover a product’s ID to carry out sure duties.

For example, you might be constructing a WooCommerce product web page, and also you want a product ID to show a selected product.

Equally, you might use a WooCommerce plugin that wants product IDs to point out associated merchandise or provide upsells.

Let’s have a look at how one can rapidly find a WooCommerce product’s ID.

Find out how to Find a Product ID in WooCommerce

WooCommerce makes it very straightforward to discover a product ID.

Merely go to the Merchandise » All Merchandise web page. You will notice an inventory of the newest merchandise added to your WooCommerce retailer.

Take the mouse over to a product title, and a line of instructions seems under the product title. This line additionally consists of product ID displayed as ID: adopted by the ID quantity.

Product ID displayed under product title on the All Products page

For example, the demo product ID is 81 within the above screenshot.

In case your retailer has solely a handful of merchandise, then you possibly can scroll down the merchandise web page to find a product and see its ID.

You can too use the search on the highest proper nook of the merchandise desk to rapidly search for a product by title.

Find a product by name using product search

It will aid you slim down the checklist of merchandise displayed.

You’ll be able to then find a selected product and take your mouse over to its title to view the product ID.

Search for a product to view its ID

You can too discover a product ID by clicking on the Edit hyperlink.

It will open the Edit Product web page now if you happen to have a look at your browser’s deal with bar, you’ll discover the product ID within the URL.

Product ID in browser's address bar

Discovering Product ID For a Variation Product in WooCommerce

If the product you might be on the lookout for doesn’t have variations, then you should utilize the above technique to discover a product ID.

Nevertheless, if the product you might be on the lookout for has variations, every variation is assigned its distinctive product ID.

For example, if you happen to promote a T-shirt in three colours like Pink, Blue, and Inexperienced, then you’ll add completely different colours as a product variation.

Example of a WooCommerce product with variations

If you happen to solely want a product ID for a selected variation, right here is the way you’ll discover it.

Merely find the product by visiting the Merchandise » All Merchandise web page. After that, click on on the Edit Product hyperlink under the product title.

Edit product

On the product edit display, scroll right down to the Product Information part.

From right here, click on Variations, and it’ll present you all product variations with their IDs.

Product variation ID

What’s The Distinction Between Product SKU and ID?

SKU stands for Inventory Conserving Unit. It’s a distinctive identifier a retailer proprietor assigns to a product to maintain observe of their stock or inventory.

Retailers, wholesalers, and different retailer homeowners additionally use SKUs in product barcodes.

Nevertheless, In contrast to product IDs, SKU identifiers aren’t routinely generated by WooCommerce. A retailer proprietor should manually add it to WooCommerce merchandise.

Adding SKU in WooCommerce

If you happen to don’t observe stock in WooCommerce, your merchandise might not have SKUs or want them.

For example, if you happen to promote digital downloads or digital merchandise, you might not have to maintain observe of your inventory or stock.

However, every product in your on-line retailer has a novel product ID, which is routinely generated by WooCommerce. Even if you happen to by no means put in an SKU, every product in your retailer can have a product ID.

We hope this text helped you discover ways to discover product ID in WooCommerce. You may additionally wish to see our tutorial on tips on how to edit WooCommerce pages (with out coding) or check out our WooCommerce search engine optimisation information.

If you happen to appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You can too discover us on Twitter and Fb.