Get product permalink by product name in Woocommerce
This code works for me
$product = get_page_by_title( 'Product Title', OBJECT, 'product' )echo get_permalink( $product->ID );
$product = wc_get_product( $product_id );$permalink = $product->get_permalink();
For URL:
$url = get_permalink($product_id)
For the title:
$name = get_the_title($product_id)