Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Display the Store Logo and the Avatar of the vendor
- This topic has 8 replies, 2 voices, and was last updated 6 years, 12 months ago by Bingal. 
- AuthorPosts
- November 2, 2018 at 1:09 am #35559Vinny CAmpos GuestHi, I need to include in my template (at the php of my template file): – Store Logo 
 – Store Name
 – Store permalink
 – Store bannerAnd also I need to include in my template (at the php of my template file): – The Avatar of the Profile of the Vendor 
 – The name of the Profile of the VendorRegards 
- November 2, 2018 at 10:43 am #35582WCFM Forum MemberHi, Kindly check this – https://wclovers.com/knowledgebase/wcfm-marketplace-widgets-short-codes/ There has a short code for this purpose – [store_info data="" store=""]Please know me if you require any further assistance on this. Thank You 
- November 2, 2018 at 3:04 pm #35599Vinny Campos GuestOK, but I’m doing this with a query listing the products. How do I for example will include the shortcode for the store_url ? Thank you 
- November 2, 2018 at 3:42 pm #35601WCFM Forum MemberHi, There is a function for have store URL – wcfmmp_get_store_url( $store_id );Thank You 
- November 2, 2018 at 3:56 pm #35602Vinny Campos GuestCan you please show me an example to past at my template to: store_url store_gravatar (url) This is my loop: <?php $params = array(‘posts_per_page’ => 5, ‘post_type’ => array(‘product’, ‘product_variation’)); $wc_query = new WP_Query($params); ?> 
 <?php if ($wc_query->have_posts()) : while ($wc_query->have_posts()) : $wc_query->the_post(); ?><?php endwhile; ?> 
 <?php wp_reset_postdata(); else: ?><?php endif; ?> 
- November 2, 2018 at 4:48 pm #35604WCFM Forum MemberHi, Please check this, hope will help you – global $WCFM, $WCFMmp; $store_id = $WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product( $post->ID ); $store_user = wcfmmp_get_store( $store_id ); $store_info = $store_user->get_shop_info(); $gravatar = $store_user->get_avatar(); $banner_type = $store_user->get_list_banner_type(); if( $banner_type == 'video' ) { $banner_video = $store_user->get_list_banner_video(); } else { $banner = $store_user->get_list_banner(); if( !$banner ) { $banner = isset( $WCFMmp->wcfmmp_marketplace_options['store_list_default_banner'] ) ? $WCFMmp->wcfmmp_marketplace_options['store_list_default_banner'] : $WCFMmp->plugin_url . 'assets/images/default_banner.jpg'; $banner = apply_filters( 'wcfmmp_list_store_default_bannar', $banner ); } } $store_name = isset( $store_info['store_name'] ) ? esc_html( $store_info['store_name'] ) : __( 'N/A', 'wc-multivendor-marketplace' ); $store_name = apply_filters( 'wcfmmp_store_title', $store_name , $store_id ); $store_url = wcfmmp_get_store_url( $store_id ); $store_address = $store_user->get_address_string(); $store_description = $store_user->get_shop_description();Thank You 
- November 2, 2018 at 5:35 pm #35605Vinny CAmpos GuestCan you please include it in my loop? I tryed to echo but it’s not working. Regards 
- November 2, 2018 at 6:00 pm #35607Vinny Campos GuestSorry, Now it’s working. 
- November 2, 2018 at 6:05 pm #35609Bingal GuestGreat … Glad to hear! 
 
- AuthorPosts
- The topic ‘Display the Store Logo and the Avatar of the vendor’ is closed to new replies.

 
 