Home Forums WC Vendors Pro Support Editing the text on My Account page?

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 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #26938
    Jason Cyr
    Participant

    Hey there…what template file controls the text on the My Account page? I’m using “Sellers” instead of “Vendors” and want to change it to “Seller Dashboard” if possible.

    http://screencast.com/t/qOsMXVX5ovP

    Thanks!

    #26955
    WC Vendors Support
    Participant

    Hi Jason,

    You can use a filter for that:

    add_filter('wcv_my_account_msg', 'custom_wcv_my_account_msg');
    function custom_wcv_my_account_msg(){
       $message = 'This is my new message on the my account page with the link to the <a href="/dashboard/">Seller Dashboard</a>.';
       return $message;
    }

    Have fun!

    #27601
    Jason Cyr
    Participant

    Boom…worked perfectly, thanks!

    #58367
    Carin
    Participant

    I used that filter,but it did not replace the text, it only added to it, I still have: (and need to remove it)
    From your account dashboard you can view your recent orders, manage your shipping and billing addresses and edit your password and account details.

    To add or edit products, view sales and orders for your vendor account, or to configure your store, visit your Vendor Dashboard.

    #58368
    WC Vendors Support
    Participant

    @JWTBREDS

    That text is not from WC Vendors. That’s WooCommerce. Not sure how or where you remove it, but Woo can surely show ya.

    #58372
    Carin
    Participant

    I found part of it here, class-wcvendors-pro-vendor-controller.php but did not want to edit this file in case of updates
    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 Vendor Dashboard.</p>’, ‘wcvendors-pro’ ) );

    #58374
    Carin
    Participant

    I found this part in woocommerce,myaccount, dashboard.php
    From your account dashboard you can view your recent orders, manage your shipping and billing addresses and edit your password and account details.
    But should I just delete the other from class-wcvendors-pro-vendor-controller.php

    #58398
    Anna
    Member

    TO remove our message, which is: '<p>To add or edit products, view sales and orders for your vendor account, or to configure your store, visit your Vendor Dashboard.</p>', 'wcvendors-pro'

    You can use that filter: wcv_my_account_msg and just remove everything in the message, leaving the single quotes:

    /* remove 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 = '';
        return $my_account_msg;
    }
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.