A lot of (potential) customers ask us, if we have read the post from WooCommerce/ WordPress Docs, that they advice to don’t change the url structure of WooCommerce. Of course you wouldn’t be here if you are doubting about their facts.
Still interested, then we would recommend you to read this post: https://www.perfectseourl.com/removing-product-product-category-shop-urls-yes-no/