BuddyBoss
BuddyBoss
  • Product
    • Features
      • Connect your people
      • Make it fun and engaging
      • Sell access, generate revenue & create wealth
      • Everything you need to customize for your brand
      • Launch your online courses
      • Amplify your impact with the power of mobile
    • Integrations
    • Platform
    • Use Cases
      • For Online Communities
      • For Online Courses
      • For Membership Sites
      • For LearnDash
      • For LifterLMS
    • Mobile Apps
      • For Online Communities
      • For LearnDash
      • For Online Courses
      • For Membership Programs
    • Showcase
    • Roadmap
  • Agency
    • Case Studies
    • Expertise
    • Enterprise
    • Retainers
    • Agency Partners
    • Staff Augmentation
  • Resources
    • Step by step documentation for easy BuddyBoss setup
    • Create a new ticket, and get help from the BuddyBoss support team
    • More Resources
      • Blog
      • Videos
      • Webinars
      • Code Reference
      • Release Notes
      • Git
  • Features
    • Connect your people
    • Make it fun and engaging
    • Sell access, generate revenue & create wealth
    • Everything you need to customize for your brand
    • Launch your online courses
    • Amplify your impact with the power of mobile
  • Get More Out Of BuddyBoss
  • Platform
  • Use Cases
    • For Online Communities
    • For Online Courses
    • For Membership Sites
    • For LearnDash
    • For LifterLMS
  • Mobile App
    • For Online Communities
    • For LearnDash
    • For Online Courses
    • For Membership Programs
  • Showcase
  • Roadmap
My Account
My Account
Pricing

Support Forums

BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › Vendors aren't redirected to Vendor Dashboard on Log in

Tagged: Redirection. Log in, Vendor Dashboard, Vendor Log in, WCVendors

  • This topic has 2 replies, 2 contibutors, and was last updated 6 years, 4 months ago by Karen Thomas.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Question

    March 27, 2016 at 5:30 am #65526

    Karen Thomas
    @conscious-crafties

    Hello,

    I'm a WCVendors customer. When my vendors log in via My Account, they are redirected to their Vendor Dashboard by adding this code to my functions.php file:

    /* Redirect Vendors to Vendor Dashboard on Login */
    add_filter('woocommerce_login_redirect', 'login_redirect', 10, 2);
    function login_redirect( $redirect_to, $user ) {
        
        // WCV dashboard -- Uncomment the 3 lines below if using WC Vendors Free instead of WC Vendors Pro
        // if (class_exists('WCV_Vendors') && WCV_Vendors::is_vendor( $user->id ) ) {
        //  $redirect_to = get_permalink(WC_Vendors::$pv_options->get_option( 'vendor_dashboard_page' ));
        // }
    
        // WCV Pro Dashboard
        if (class_exists('WCV_Vendors') && class_exists('WCVendors_Pro') && WCV_Vendors::is_vendor( $user->id ) ) {
            $redirect_to = get_permalink(WCVendors_Pro::get_option( 'dashboard_page_id' ));
        }
        return $redirect_to;
    }

    However, if they log in using the One Social log in form, they are not redirected to their Vendor Dashboard.

    How do I make this work? Lots of WCVendors customers use this redirection – the code is provided by WCVendors.

    Many thanks,

    Karen

    Answers

    March 29, 2016 at 1:35 pm #65892

    Varun Dubey
    @vapvarun

    Hi @conscious-crafties
    above code is hooked with woocommerce_login_redirect and will work fine with my-account page.

    Top popup login is not linked with WooCommerce action, that' why it will not redirect vendors to Vendors dashboard.

    We have to use the native approach with our popup login and register options to support additional plugin, it's already in our to list.

    Regards
    Varun Dubey

    March 30, 2016 at 6:15 am #66005

    Karen Thomas
    @conscious-crafties

    Can I just check my understanding that it is on the list to add the redirect code (to dashboard) for Vendors when they log in? Also can you give me an idea of when that will be?
    Many thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • The question ‘Vendors aren't redirected to Vendor Dashboard on Log in’ is closed to new replies.
  • Helpful Information
    • Privacy Policy
    • Refund Policy
    • Terms and Conditions
    • Support Policy
    • Licenses & Subscriptions

  • View Themes Custom Work
    STAY IN TOUCH
    Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss
    • Hidden
    • This field is for validation purposes and should be left unchanged.
    COMPANY
    • Blog
    • Contact Us
    • Media Kit
    • Affiliate Program
    • Terms & Conditions
    • Support Policy
    • Privacy Policy
    • Affiliate Program Terms
    SOLUTIONS
    • Community Software
    • Online Courses Software
    • LearnDash Theme
    • LifterLMS Theme
    • Themes
    • BuddyPress Plugins
    • BuddyBoss vs BuddyPress
    AGENCY
    • Agency Overview
    • Retainers
    • Enterprise
    • Expertise & Services
    • Case Studies
    • Partners
    • Staff Augmentation
    RESOURCES
    • Frequently Asked Questions
    • Documentation
    • Code Reference
    • Webinars
    • Videos & Tutorials
    • Create Support Ticket
    • Roadmap
    • My Account

    © All rights reserved Boss Media Ltd. 2022

    Terms & Conditions Privacy Policy

    Not recently active
    62fea2077c1a4