Home Forums WC Vendors Pro Support Shop Page Banner

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #65416
    The Ebook Giant
    Participant

    Okay so I have checked the option to display the shop page banner but it’s not displaying. I tried with a different theme and it worked so it looks like my theme is a little incompatible with WC Vendors. What I am trying to work out now with a developer is what core files should we be looking at for displaying the banner properly. I’m hoping I could get a little guidance from the developers of this plugin themselves.

    So basically my question is, what functions & files are used for displaying the banner on the Vendor’s page?

    Appreciate all the support!

    #65461
    Anna
    Member

    @ebookgiant
    Well– you have the template for the store-header here:
    wp-content/plugins/wc-vendors-pro/templates/store/store-header.php

    and the code for injecting the store-header into the woocommerce archive product.php is here, I believe:
    wp-content/plugins/wc-vendors-pro/public/class-wcvendors-pro-vendor-controller.php
    Lines 1017 – 1043 which look like this:

    /**
    	 * Add the new pro store header on the main page
    	 *
    	 * @since    1.2.0
    	 */
    	public function store_main_content_header() { 
    
    		if ( WCV_Vendors::is_vendor_page() ) { 
    
    			$vendor_shop 		= urldecode( get_query_var( 'vendor_shop' ) );
    			$vendor_id   		= WCV_Vendors::get_vendor_id( $vendor_shop ); 
    			$vendor_meta 		= array_map( function( $a ){ return $a[0]; }, get_user_meta( $vendor_id ) );
    
    			do_action('wcv_before_main_header', $vendor_id); 
    
    			wc_get_template( 'store-header.php', array( 
    						'vendor_id' 	=> $vendor_id, 
    						'vendor_meta'	=> $vendor_meta, 
    			), 'wc-vendors/store/', $this->base_dir . 'templates/store/' ); 
    
    			do_action('wcv_after_main_header', $vendor_id); 
    
    		}
    
    	} // store_main_content_header() 
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.