D
D
Dmitry2020-08-12 16:58:50
WordPress
Dmitry, 2020-08-12 16:58:50

How to manage product IDs in WooCommerce?

There are about 2000 products in the store, but the ID of the last one is about 51000. How are product IDs assigned and can they be edited? There is only one guess - a large number of categories and the CMS reserves an ID for each category.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pychev Anatoly, 2020-08-12
@Boomajko

The product id is the id of the post in the wp_posts table. This is an auto-increment field, i.e. itself increases by 1 each time a new record is added.
You cannot edit them. For identification, use the "article" field. Any text string can be written into it, and Woo programmatically maintains the uniqueness of this field.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question