Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Display vendor website
- This topic has 1 reply, 1 voice, and was last updated 4 years, 5 months ago by aurelien_boutillier.
- AuthorPosts
- May 23, 2020 at 5:39 pm #134477aurelien_boutillierParticipant
Hello,
I would like to display when it exists, the vendor URL website on the vendor page and on the product page in “sold by” section.
I have a code snippets to display on the vendor page but it doesn’t work very well :
1. First, the icon “wcfmfa fa-globe” is displayed even if the vendor doesn’t have a website.
2. The URL od the website vendor is not displayed well (screenshot attached)Have you any idea to improve this code and to add the possibility to display the URL also on the product page ?
I precise that the URL website is collected via subscription form and its name in database is “site-internet”.
add_action( 'wcfmmp_store_after_email', function( $store_id ) { $site_url = get_user_meta( $store_id, 'site-internet', true ); ?> <div class="store_info_parallal" style="display:inline;"><i class="wcfmfa fa-globe" aria-hidden="true"></i><span><a target="_blank" href="<?php echo $site_url; ?>"><?php echo $site_url; ?></a></span></div> <?php });
Thanks for your help.
Have a good day
AurélienAttachments:
You must be logged in to view attached files. - May 30, 2020 at 3:33 am #136647aurelien_boutillierParticipant
Hello,
Nobody has an idea to do this? It’s important for me, I am not so far with this snippet code.
Thanks for your help.
Have a good day,
Aurélien.
- AuthorPosts
- You must be logged in to reply to this topic.