Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @pgdarkness, in order to add this modification, you have to do custom code.

    For this, you need to use this filter –apply_filters('wcmp_vendor_profile_completion_progress_fields', $progress_fields, $vendor->id);

    Thread Starter pgDarkness

    (@pgdarkness)

    I couldn’t find any documentation on this filter.
    Can you give me an example?
    Let’s say I want to redirect vendors profile page to home page.

    @pgdarkness, add this code to the function.php of your current active theme :

    add_filter('wcmp_vendor_profile_completion_progress_array', 'test', 10, 2);
    function test( $profile_completion, $vendor_id ) {
    $profile_completion['todo']['link'] = 'pass-your_link_here';
    return $profile_completion;
    }

    Sorry for the inconvenience.

    Please use this correct code :

    function wcmp_vendor_dashboard_header_right_panel_nav( $nav ) {
       if ( isset( $nav['profile'] ) ) {
           $nav['profile']['url'] = 'Add_your_buddy_press_url';
       }
       return $nav;
    }
    add_filter( 'wcmp_vendor_dashboard_header_right_panel_nav', 'wcmp_vendor_dashboard_header_right_panel_nav', 99 );
    Thread Starter pgDarkness

    (@pgdarkness)

    Is this code suppose to redirect shop page links too?
    I have vendors names available under their products in shop page.

    • This reply was modified 5 years, 6 months ago by pgDarkness.
    • This reply was modified 5 years, 6 months ago by pgDarkness.

    @pgdarkness, the above code snippet is for vendor’s own shop page redirection i.e. https://prnt.sc/p51qt4

    Now, if you want users to redirect to another page, when they will access the Sold By vendor name, for this you have to follow the coding logic shared here – https://wc-marketplace.com/support-forum/topic/disable-vendor-archive-page-programmatically/#post-30242

    Here instead of sending the user to site’s shop page, you have to direct them to vendor’s BuddyPress profile.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Vendor profile link redirection’ is closed to new replies.