1. Home
  2. Docs
  3. WooCommerce
  4. How to add SKU to WooCommerce permalinks?

How to add SKU to WooCommerce permalinks?

In this short article, you can find instructions on how to easily include SKU number in WooCommerce product permalinks.

Some of the functionalities presented in this post are available only in Permalink Manager Pro.

Permalink Manager works perfectly well with WooCommerce post types & taxonomies. For instance, you can use it to remove the permalink bases from products, product categories or tags. In addition, one of the most useful functions is possibility to add SKU numbers to product permalinks.

How to easily add SKU to WooCommerce permalinks?

Firstly, you need to go “Tools -> Permalink Manager -> Permastructures” admin page and scroll down to WooCommerce section.

Add SKU to the product permastructure settings

Now, you need to add “%__sku%” tag inside the permastructure settings for Product post type.

You can insert SKU anyway you like inside the input field. If you would like to use it instead of product slug you will also need to stop Permalink Manager from appending the slug to the end of URL.

To do so, please click on “Show additional settings” to display the additional panel. Then you should enable “Do not automatically append the slug” mode. Afterwards, Permalink Manager will no longer automatically append the product slug to the end of URL.

After you save the new permastructure settings, Permalink Manager will automatically add the SKU number to the product permalinks. If you would like to apply the new permalink format to the old product permalinks please follow the instructions posted here.

A list of old products after their permalinks are regenerated.
Was this article helpful to you? Yes No