Display the Store Logo and the Avatar of the vendor

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!

Viewing 8 reply threads
  • Author
    Posts
    • #35559
      Vinny CAmpos
      Guest

      Hi, I need to include in my template (at the php of my template file):

      – Store Logo
      – Store Name
      – Store permalink
      – Store banner

      And 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 Vendor

      Regards

    • #35582
      WCFM Forum
      Keymaster

      Hi,

      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

    • #35599
      Vinny Campos
      Guest

      OK, 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

    • #35601
      WCFM Forum
      Keymaster

      Hi,

      There is a function for have store URL – wcfmmp_get_store_url( $store_id );

      Thank You

    • #35602
      Vinny Campos
      Guest

      Can 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; ?>

    • #35604
      WCFM Forum
      Keymaster

      Hi,

      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

    • #35605
      Vinny CAmpos
      Guest

      Can you please include it in my loop?

      I tryed to echo but it’s not working.

      Regards

    • #35607
      Vinny Campos
      Guest

      Sorry, Now it’s working.

    • #35609
      Bingal
      Guest

      Great … Glad to hear!

Viewing 8 reply threads
  • The topic ‘Display the Store Logo and the Avatar of the vendor’ is closed to new replies.