Home Forums WC Vendors Pro Support To add or edit products, view sales and orders for your vendor account…

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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53046
    Nicholas
    Participant

    Hello.
    In which plugin folder do I find this message: To add or edit products, view sales and orders for your vendor account, or to configure your store, visit your Vendor Dashboard.
    I would like to change it but can’t seem to find it.

    Regards,
    Nicholas

    #53066
    Anna
    Member

    Nicholas,
    That message is found in a core file: wp-content/plugins/wcvendors-pro/public/class-wcvendors-pro-vendor-controller.php
    Approx.line 1030:

    public function pro_dashboard_link_myaccount() { 
    
    		$user 				= get_user_by( 'id', get_current_user_id() ); 
    		$dashboard_page_id 	= WCVendors_Pro::get_option( 'dashboard_page_id' );
    		$dashboard_url 		= get_permalink( $dashboard_page_id ); 
    		$my_account_msg 	= apply_filters( 'wcv_my_account_msg', __( '<p>To add or edit products, view sales and orders for your vendor account, or to configure your store, visit your <a href="%s">Vendor Dashboard</a>.</p>', 'wcvendors-pro' ) ); 
    
    		if ( ! WCV_Vendors::is_vendor( $user->ID ) ) { return; } 
    		
    		echo sprintf( $my_account_msg, $dashboard_url );  
    
    	} // pro_dashboard_link_myaccount ()

    You can change the message by using the filter. This should do it:

    https://gist.github.com/fervous/56f32069387d0003fb43a18a935a2299

    #53067
    Anna
    Member

    ^^ That would go in your theme/child theme functions.php file, by the way. 😉

    #53421
    Nicholas
    Participant

    Thank you very much Anna.

    And if I wanted to remove this message completely?

    I just left the <p></p> tag empty like so:

    /* change the message on the my-account page for vendors */
    add_filter( ‘wcv_my_account_msg’, ‘custom_wcv_my_account_msg’ );
    function custom_wcv_my_account_msg( $my_account_msg ) {
    $my_account_msg = ‘<p></p>’;
    return $my_account_msg;
    }

    But I guess this is not the proper way to do it.

    #53515
    Anna
    Member

    Hello,
    $my_account_msg = '';
    Should do it.

    #53721
    Nicholas
    Participant

    Thank you very much.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.