• Resolved Lucas Lopez

    (@lucaslopez)


    Hello WooCommerce Community,

    I am experiencing an issue with setting custom permalinks for my WooCommerce products. I am trying to set a custom structure to only display %product_cat%/ (and the the title of the product) in global product URLs in wp-admin/options-permalink.php .

    However, when I input this structure into the ‘Custom Base’ field under WooCommerce Product Permalinks and save the changes, the permalink structure reverts to adding a /produit/ prefix before %product_cat%/.

    Here are the steps I’ve taken:

    1. Navigated to Settings > Permalinks in my WordPress dashboard.
    2. Scrolled down to the ‘Product permalinks’ section.
    3. Entered /%product_cat%/ into the Custom Base field.
    4. Clicked ‘Save Changes’.

    Despite these steps, the structure does not save as intended and instead reverts to /produit/%product_cat%/. I have tried clearing my cache and confirmed that no other plugins are interfering with the permalinks.

    Has anyone else encountered this issue, or does anyone have insights on how to properly save the custom permalink structure without the unwanted prefix? Any help or guidance would be greatly appreciated.

    For instance for the moment i got this 2 options :
    1
    /boutique/%product_cat%/

    https://wikihhc.com/boutique/okiweed/small-buds-thcp-avis-effets-okiweed/
    In this case i would like to remove : / boutique
    2
    /%product_cat%/produit/ :

    https://wikihhc.com/okiweed/produit/small-buds-thcp-avis-effets-okiweed/
    In this case i would like to remove : / produit.

    What i would like is :
    https://wikihhc.com/okiweed/small-buds-thcp-avis-effets-okiweed/
    Just the Category and the product

    I know i can use Rankmath or Permalink Manager for WooCommerce?but if use this way i can’t use mu extension wich translate the page…
    So is like i have to use the default systeme.

    Thank you in advance for your assistance!

Viewing 1 replies (of 1 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @lucaslopez

    It looks like you’ve already taken the correct steps to change the permalink structure in the WordPress settings. However, there might be a conflict with your theme or another plugin that’s causing the /produit/ prefix to be added.

    To isolate the issue, I would suggest you to perform a conflict test. This involves deactivating all your plugins except WooCommerce and switching to a default WordPress theme like Storefront. Then try setting the permalinks again. If the issue is resolved, you can identify the conflicting plugins or themes by reactivating them one by one.

    If the issue persists, it could be related to your .htaccess file. In this case, you might need to manually update the .htaccess file. Please make sure you back up your site before making any changes to this file.

    You can also reach out to a developer or consider using a plugin like Permalink Manager for WooCommerce. I understand that you’re not interested in using this plugin due to the translation extension, but it’s worth noting that many permalink plugins are compatible with popular translation plugins.

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

Viewing 1 replies (of 1 total)
  • The topic ‘Issue with Custom Permalink Structure Not Saving in WooCommerce’ is closed to new replies.