I got the following question:
When I go to a WooCommerce category, the link displays like this:
http://www.example.com/product-category/category/
Where the bold text is the link like it is and the rest is the product category that needs to be shown.
When i go into WooCommerce settings and I go to the pages tab, I got an option to change productcategory slugs. If I fill the following in this textfield: %product_cat%
the links shows as follows:
http://www.example.com/category/category/
What I want to show in my links is:
http://www.example.com/category/subcategory/product
Is there any way to do this?
We use a method simular to this to generate product permalinks: Custom field values in permalink
Annoyingly this supports one level of category only – not nested categories, so I believe what you want to do is not possible (but if anyone else has a solution I’d love to hear it!).
There is post on here about URL rewrites that you can use for woocommerce if you want to do something else.
Product Base Page URL
You’ll also want to tick this option on WooCommerce > Settings > Pages
This setting is mentioned in the WooCommerce documentation on Permalinks