To remove the category name from the URL in OpenCart 2, you can follow these steps:
After completing these steps, the URLs for your category pages should no longer include the category name. Instead, they will include the unique keyword you entered in the "SEO Keyword" field for each category. For example, if you entered "books" as the SEO keyword for your "Books" category, the URL for the category page would be something like "http://example.com/books" instead of "http://example.com/index.php?route=product/category&path=1".
Please note that this solution assumes you have already enabled SEO URLs in your OpenCart installation. If you have not done so, you will need to enable the SEO URLs feature by following these steps:
After enabling SEO URLs, you can follow the steps mentioned in the previous response to remove the category name from the URL.
To summarize, the steps to remove the category name from the URL in OpenCart 2 are:
After completing these steps, the URLs for your category pages will no longer have the category name in them.