Title: link back to vendor store url
Last modified: September 28, 2020

---

# link back to vendor store url

 *  [ftanger](https://wordpress.org/support/users/ftanger/)
 * (@ftanger)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/link-back-to-vendor-store-url/)
 * Dear Sir / Madam,
 * I made 2 vendor stores as prototype for the final website. Here are the url´s:
   
   [https://unitosports.ga/clubshops/mzc11/](https://unitosports.ga/clubshops/mzc11/)
   [https://unitosports.ga/clubshops/scc/](https://unitosports.ga/clubshops/scc/)
 * More individual vendor stores with different items will be created for each club..
   
   When the visitor (buyers who are not logged in as administrator) adds an item
   to the basket for purchase there is no link for the visitor to go back to the
   vendor shop homepage (for example [https://unitosports.ga/clubshops/mzc11/](https://unitosports.ga/clubshops/mzc11/))
   They can only use the browser navigation arrows in the browser.
 * If I make a home button in a top menu bar it will direct to [https://unitosports.ga/](https://unitosports.ga/)
   which will cause the visitor to be lost.
    I need to add a menu home button or
   link that directs to the current vendor shop page ([https://unitosports.ga/clubshops/mzc11/](https://unitosports.ga/clubshops/mzc11/),
   [https://unitosports.ga/clubshops/scc/](https://unitosports.ga/clubshops/scc/)
   or any future clubshop to be created.
 * I tried to use the shortcode [wcfm_store_info id=”” data=”store_url “] but I 
   could not get it to work for this application.
 * Can you suggest a way to create such a link to the current vendor store url? 
   Thanks in advance for your help!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flink-back-to-vendor-store-url%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/link-back-to-vendor-store-url/#post-13482448)
 * > I tried to use the shortcode [wcfm_store_info id=”” data=”store_url “] but 
   > I could not get it to work for this application.
 * – Well, this shortcode return static store page url.
 * But for your case you have to generate this URL dynamically depending upon customer’s
   cart product.
 *  Thread Starter [ftanger](https://wordpress.org/support/users/ftanger/)
 * (@ftanger)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/link-back-to-vendor-store-url/#post-13485474)
 * Yes, I have added the following code to my functions.php to try and see if I 
   could generate a link to the vendor shop homepage. You can see the result at 
   [https://unitosports.ga/clubshops/mzc11/](https://unitosports.ga/clubshops/mzc11/)
   when clicking on any product.
 * This function code seems to work but:
    1) It shows a link on a single product
   page only. 2) The link label is the “shop name” for example: “S.V. MZC’11” but
   I need it to be named “Home” for the visitor to understand what it is for. 3)
   When clicked on it opens a new browser window. It needs to stay the same window.
   4) I need this link to be visible on every page. Is it possible to add the output
   of this function to the standard menubar?
 * Thanks in advance for your advice, ftanger
 *  Thread Starter [ftanger](https://wordpress.org/support/users/ftanger/)
 * (@ftanger)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/link-back-to-vendor-store-url/#post-13485483)
 * I forgot to add the code snippet, it is:
    ” add_action( ‘woocommerce_before_single_product’,‘
   wc_print_storeinfo’, 10 );
 * function wc_print_storeinfo() {
    global $product, $WCFM; $id = $product->get_id();
   $vendor_id = $WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product( $id);
   echo do_shortcode( “[wcfm_store_info id='”.$vendor_id.”‘ data=’store_url’]” );}“
 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/link-back-to-vendor-store-url/#post-13488937)
 * Why are you adding this at single product page when single product page by default
   shows sold by information – [https://ibb.co/cQZQPLD](https://ibb.co/cQZQPLD)
 * > 3) When clicked on it opens a new browser window. It needs to stay the same
   > window.
 * – Add this snippet for this purpose-
 * `add_filter( 'wcfm_shop_permalink_open_by', '__return_false' );`
 * > 4) I need this link to be visible on every page. Is it possible to add the 
   > output of this function to the standard menubar?
 * – That’s why I told you, “you have to generate this dynamically depending upon
   cart items.”

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘link back to vendor store url’ is closed to new replies.

 * ![](https://ps.w.org/wc-multivendor-marketplace/assets/icon-256x256.gif?rev=2611991)
 * [WCFM Marketplace - Multivendor Marketplace for WooCommerce](https://wordpress.org/plugins/wc-multivendor-marketplace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-multivendor-marketplace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-multivendor-marketplace/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-multivendor-marketplace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-multivendor-marketplace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/)

## Tags

 * [navigation](https://wordpress.org/support/topic-tag/navigation/)

 * 4 replies
 * 2 participants
 * Last reply from: [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/link-back-to-vendor-store-url/#post-13488937)
 * Status: not resolved