You can remove the Shop/Product/Product-Category slug from your WooCommerce products URLs. You don’t need to have coding knowledge for this.
And, if you are worried about the existing URLs shared over different platforms, then you can simply create a redirection rule after removing the Shop/Product/Product-Category slug. Check this guide to redirect the old URL structure to the new URL structure.
So that if anyone tries to visit the product page with any of the old URLs they can automatically redirect to the product page with the new URL structure.
With the Premmerce Permalink Manager for WooCommerce plugin you can remove the Shop/Product/Product-Category slug. The free version of this plugin is enough to perform the job you want, you do not need to go for the premium version.
How to Remove Shop/Product/Product-Category slug from WooCommerce URL
Install the Premmerce Permalink Manager for WooCommerce plugin on your WooCommerce website, and activate it.
After activating the plugin it will open the plugin settings page. If you do not see the plugin settings page then you can find it from the WordPress dashboard menu.
On the plugin settings page, you can set the URL structure for the Product Category page and the Product page
So, for the category pages, you can display the parent categories with the categories, or only the categories. Select one of the options from the Categories section.
For the product pages, you can select only the product slug after the website address, or you can display the categories or the categories with the parent categories. Select the structure you want.
Leave all the other settings as they are and save the settings.
Now check the product page or category pages on the site if they are working as the settings. If you do not like any settings then you can change it to another available settings option on the plugin settings page.
SEE ALSO: 16 Reasons to use the Jetpack plugin.
WooCommerce itself does not recommend removing the Shop/Product/Product-Category slug from the URL. Because the product URLs can collide with the existing pages or posts. So make sure that the site has no URLs for any pages or posts as the product’s URLs.