• Resolved airfast

    (@airfast)


    When I send a request to WooCommerce of this type:

    woocommerce.site.com/product/sfsfscf/product-name/ it generates the correct URL and returns woocommerce.site.com/product/product-name/

    But when I send a request of this type:

    woocommerce.site.com/product-category/sfsfscf/category-name/sub-category-name/ it returns woocommerce.site.com/product-category/sfsfscf/category-name/sub-category-name/

    How do I cut this unwanted particle (sfsfscf) from the URL?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    Hi @airfast,

    You’ll want to first go to WP-Admin > Settings > Permalinks and check if the Product category base has the added string sfsfscf. If it’s added from there, you can remove it to leave that field as product-category.

    Let us know how it goes.

    Thanks.

    Thread Starter airfast

    (@airfast)

    Hi, thanks for the reply. Of course, this line is not there. I myself will enter them in these two described cases.

    Please try on your local or test system. This string sfsfscf can be anything…

    Hi @airfast,

    Thanks so much for clarifying! I did some testing on my staging site and was able to see what you describe – when you add a slug between product-category and the category or sub-category name, that is not automatically removed.

    I don’t believe it’s possible to have the category pages automatically remove that text in the same way the product pages do without significant customization of the code that handles permalinks.

    Could you give us some more information on what you’re trying to accomplish here? What is the case where you are inserting this extra string into the URL and need to have it removed?

    Thank you!

    Thread Starter airfast

    (@airfast)

    Hello!

    This situation is not specific only to WooCommerce. This is standard WordPress behavior:

    wordpress.site.com/category-name/sfsfscf/post-name/ it generates the correct URL and returns wordpress.site.com/category-name/post-name/ (This is a request for a single post)

    wordpress.site.com/category/sfsfscf/category-name/sub-category-name/ it returns wordpress.site.com/category/sfsfscf/category-name/sub-category-name/ (This is a request for an archive page of a certain category)

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @airfast,

    Thanks for the clarification. At the moment, this is not possible, and customizing that would require a bit of additional coding.

    If you do require help with the actual coding, we’d recommend hiring a developer or one of the customization experts listed at?https://woocommerce.com/customizations/.

    Cheers.

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hey there!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks!

    Thread Starter airfast

    (@airfast)

    Hi there!

    This issue has not been resolved but can be closed.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to remove inappropriate particles in the URL for a product-category WooComme’ is closed to new replies.