Hi @sirvius,
You can modify this in WP-Admin → Settings → Permalinks.
* In the optional section, you can set Product category base to sklep/kategoria-produktu
* In the Product permalinks, you can select Shop base with category
Let us know how it goes.
Thanks.
@abwaita
* In the optional section, you can set Product category base to sklep/kategoria-produktu
This worked like a gem. Now categories page looks as I wanted them to be.
But Product permalinks doesn’t want to collaborate.
They look: /sklep/product_category in the browser.
But if I change product permalinks directly to /sklep/kategoria-produktu/%product_cat%/
they look fine but category page dies – error 404
Any other idea what is the cause? 🙂
con
(@conschneider)
Engineer
Hi again,
This worked like a gem. Now categories page looks as I wanted them to be.
Nice.
Any other idea what is the cause? 🙂
You need to set for %product_cat%/ whatever you have set here: https://d.pr/i/ulb8M6
Kind regards,
Hi!
With some further test I came to following:
Product category base >> /sklep/kategoria-produktu
Custom base >> /sklep-/kategoria-produktu/%product_cat%/
This is working fine but the difference is that I added “-” in the custom base.
If I remove it then the category page is not working. So it looks like wp doesn’t like that I use word “sklep” (means shop) in both cases.
With setup from the ss it works but the problem is that I have to have the term “shop” in both links :
Product category base >> /sklep/kategoria-produktu
Custom base >> /sklep/kategoria-produktu/%product_cat%/
so the product is the follow up of product category.
-
This reply was modified 4 years, 8 months ago by
sirvius.
con
(@conschneider)
Engineer
Hi again!
If I remove it then the category page is not working. So it looks like wp doesn’t like that I use word “sklep” (means shop) in both cases.
I think that is to be expected, since WooCommerce probably already occupies this. That is why you cannot re-use in a custom permalink structure.
Product category base >> /sklep/kategoria-produktu
Custom base >> /sklep/kategoria-produktu/%product_cat%/
so the product is the follow up of product category.
I am not sure I understand. What do you need differently?
Kind regards,
Hi,
We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to the issue you reported.
If you have further questions, please feel free to open a new topic.
Thanks.