I need to be able to have duplicate slugs for the "product" post type.
I have it organized as such (and it can not be organized another way to avoid this problem): mens/clothing/shirts & womens/clothing/shirts
Currently it appends a "-2" to the womens subcategories. Ex. womens/clothing-2/shirts-2
I have other top level categories other than mens and womens and will be adding more in the future so the solution must be able to scale. I don't care if I have to change a few numbers in the code to make this happen, though I do prefer it to be automatic.
I am using latest version of wordpress and woocommerce.