Woocommerce permalink & breadcrumbs for products with multiple categories
-
Hello,
I’m facing an issue with the default behavior of Woocommerces’ permalinks and breadcrumbs for products that are in multiple categories.
I have a product named “Product A” which is in multiple categories. “Category A” and “Category B”.
When I open the archive page for “Category A”, the product permalink shows as
"/shop/category-b/product-a"
which is incorrect. No matter how many categories a product has, Woocommerce just selects one of them and displays the same permalink everywhere no matter which archive page is opened.The same goes for breadcrumbs, Woocommerce just picks one of the selected categories and displays that category in the breadcrumb (the same category it shows in the permalink).
Is there a way to correct this?
When I’m on the “Category B” archive page, the permalink for the product should be
"/shop/category-a/product-a"
on the “Category A” archive and"/shop/category-b/product-a"
on the “Category B” archive and the single product page breadcrumb should also reflect the categories that are in the URL.
- The topic ‘Woocommerce permalink & breadcrumbs for products with multiple categories’ is closed to new replies.