Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Add website link to Vendors Store page
Tagged: vendor page
- This topic has 5 replies, 2 voices, and was last updated 5 years, 10 months ago by WCFM Forum.
- AuthorPosts
- February 19, 2019 at 3:01 am #48872cin.soteraParticipant
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
- February 19, 2019 at 6:48 am #48894WCFM ForumMember
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
- February 19, 2019 at 12:19 pm #48960cin.soteraParticipant
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? - February 19, 2019 at 12:34 pm #48964WCFM ForumMember
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
- February 19, 2019 at 2:15 pm #49001cin.soteraParticipant
Awesome Support!! Last thing, how to make this external link clickable?
Im not good with phpThank you!
- February 19, 2019 at 2:29 pm #49005WCFM ForumMember
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
- AuthorPosts
- The topic ‘Add website link to Vendors Store page’ is closed to new replies.