Hello @romanhugo ,
Here is an example code by which you can pull the store URL in the product page:
function seller_url_on_single_product() {
global $product;
$seller = get_post_field( 'post_author', $product->get_id());
$author = get_user_by( 'id', $seller );
$store_url = esc_url( dokan_get_store_url( $author->ID ) );
?>
<span class="details">
<a href="<?php echo $store_url; ?>">Return to vendor store</a>
</span>
<?php
}
The only requirement you have is the $seller-id which is basically ther user ID number that you have for each user. Now, there are tons of different ways to get access to the user IDs in WordPress. You can check this article to have some ideas on it – https://rudrastyh.com/wordpress/get-user-id.html
I hope these are all the information you need to understand how to get access to the store url.
Thank you ??