Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
    
Has this been resolved? –  kidakaka Jul 8 '13 at 9:38
add comment

2 Answers

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 enter image description here

This setting is mentioned in the WooCommerce documentation on Permalinks

share|improve this answer
    
Your second link is a 404. –  Sparky Jan 28 at 2:30
add comment

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!).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.