Add website link to Vendors Store page

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Add website link to Vendors Store page

Tagged: 

Viewing 5 reply threads
  • Author
    Posts
    • #48872
      cin.sotera
      Participant

      Hello Im using marketplace ultimate and I want to add the Link of the vendor website (external) under email and phone. How can I add this curtom field? Thanks

    • #48894
      WCFM Forum
      Member

      Hi,

      Please create vendor registration custom field “website” from WCFM Admin Setting -> Vendor Registration – https://ibb.co/84vPwDC

      You will see this under Vendor profile -> Addition info

      Thank You

    • #48960
      cin.sotera
      Participant

      Thank You, I already configure that, but it does not appear in the store page for visitors
      http://wcfmmp.wcfmdemos.com/store/demo/ for example under store email.
      Could you help me?

    • #48964
      WCFM Forum
      Member

      Hi,

      Please add this code to your child theme’s functions.php –

      add_action( 'wcfmmp_store_after_address', function( $store_id ) {
      	$website = get_user_meta( $store_id, 'website', true );
      	if( $website )
      		echo '<p><i class="fa fa-globe" aria-hidden="true"></i><span>' . $website . '</span></p>';
      }, 50 );

      Thank You

    • #49001
      cin.sotera
      Participant

      Awesome Support!! Last thing, how to make this external link clickable?
      Im not good with php

      Thank you!

    • #49005
      WCFM Forum
      Member

      You are welcome and don’t forget to leave a review for me – https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/

      Well, use this updated code snippet –

      add_action( 'wcfmmp_store_after_address', function( $store_id ) {
      	$website = get_user_meta( $store_id, 'website', true );
      	if( $website )
      		echo '<p><i class="fa fa-globe" aria-hidden="true"></i><span><a target="_blank" href="'.$website.'">' . $website . '</a></span></p>';
      }, 50 );

      Thank you

Viewing 5 reply threads
  • The topic ‘Add website link to Vendors Store page’ is closed to new replies.