Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Private marketplace for members
- This topic has 3 replies, 2 voices, and was last updated 4 years, 7 months ago by Sushobhan.
- AuthorPosts
- April 18, 2020 at 11:12 am #120252bladesworkunlimitedParticipant
Hello! I would like to create a private marketplace for my vendors who have signed up on the multivendor marketplace. I’m thinking adding a link to the shop in their dashboard. Is there any way to create a link in their dashboard to go to a specific url?
- April 18, 2020 at 1:23 pm #120272SushobhanKeymaster
Hello,
Thanks for getting in touch.
From what I have understood, you just want a link/menu/button in your vendor dashboard which will take them to some other url. Now I have a couple of questions-
1. Is it a static link or dynamic? Means, will it be different for each vendor?
2. What will be purpose of vendor store page on your site?
By default, the store logo (at the top left of vendor dashboard) is linked with vendor store page. Now we can change that url easily according to our need. That is one way of achieving what you want.
Let me know.
Thanks! - May 6, 2020 at 7:29 pm #127540bladesworkunlimitedParticipant
Hello! Sorry for the late response. It will be a static link. It will take them all to the same store. I just want this store to be hidden from the everyday customer.
- May 7, 2020 at 12:06 am #127681SushobhanKeymaster
Hi,
You can do so, using the following snippet, final result will be like this- https://imgur.com/PDkUSqYadd_action( 'wcfm_dashboard_after_username', function($id) { if ( wcfm_is_vendor() ) { $external_url = 'https://myprivateurl.com'; echo "<div class='external_url'><a href='{$external_url}' target='_blank' rel='noopener noreferrer'>{$external_url}</a></div>"; } }, 100 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Let me know how this goes.
Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.