• Resolved shineboyjun

    (@shineboyjun)


    I use woocommerce to manage products, and the product permalinks is “/product/%product_cat%/”, so the single product url will like “domain.com/product/category/subcategory/slug”.
    the translatepress plugin works fine on all pages excluding single product page, it adds like “/it/”, “/fr/” after “domain.com”.

    the problem on single product page is that it auto translates “product“(from single product url) to “prodotto” in italian and to “produit” in french, so it becomes (italian example)”domain.com/it/prodotto/category/subcategory/slug”. it’s ok when you switch from english to italian, but when switch from italian to other language like english, it will remove /it/ to english or change /it/ to /fr/ to french, but no changes on “/prodotto/”, then the page 404 error.

    is there anyway to solve this problem? I wanna product url without changes, just add lanuage short name like /it/, /fr/, keep the “/product/category/subcategory/slug” same, don’t translate “product”.
    Thanks in advance!

  • You must be logged in to reply to this topic.