Adding a product code in WooCommerce is simple and straightforward. There are two ways to do it:
Method 1: In your WordPress admin panel, go to WooCommerce > Settings > Products. Under the Product Data section, select the General tab. Enter the product code in the SKU (Stock Keeping Unit) field. Save your changes.
Method 2: Add or edit a product from your WooCommerce > Products page.
Scroll down to the Product Data section. Select the General tab.
Adding a product code in WooCommerce is an easy process that can be completed in just a few minutes. By following either of the methods outlined above, you can add a product code to any product in your WooCommerce store.