• Resolved farhadghnm

    (@farhadghnm)


    I have two websites with woocommerce plugin.

    One of my websites generates a product ID in 3 digits in length. and another generates 4 digits.

    How can I make my first website 4 digits product id? or even more like 5 or 6 is better.

Viewing 1 replies (of 1 total)
  • Hi,

    By default, WooCommerce, like WordPress, uses an auto-incrementing ID for products which is determined by the database, and it’s not something that can be easily changed within WooCommerce itself. These IDs are not based on the number of digits, but are a sequential numbering system.

    However, if you wish to display 4 digits, 5 digits, or 6 digits product ID to your customers, I recommend the following:

    1. Use SKU: You can use the SKU field of the product to set a unique 4, 5, or 6 digits ID for each product.
    2. Custom Coding: This would involve custom coding and would require the assistance of a developer. 

    Please note that making changes to the actual product ID in the database is not recommended as it can lead to unexpected issues and conflicts, especially if you have numerous products or if you are using other plugins that rely on these IDs.

    I hope it helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Product id Length’ is closed to new replies.