在WooCommerce中更改产品的URL

My WooCommerce products link are like this:

http://domine.com/product/sample-product/

I want to change them to:

http://domin.com/product-catagorys/prodactname

I tried permalink option in setting but failed.
how can I do that?

Login to admin panel and Go to the Dashboard > Settings > Permalinks and under Product Permalinks section there is an option called Custom Base set it to /%product_cat%

Hope this helps!