Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Vendor redirect

WCMp Advanced Frontend Manager

Resolved
Viewing 3 reply threads
  • Author
    Posts
    • #119588
      marounhashem
      Participant

      Hello,
      I want to redirect vendors (approved or not) to the dashboard if they try to go on the page for vendor registration
      What am i doing wrong?

      function rediret_vendor_reg_to_dashboard(){
      if ( is_page_vendor_registration()&& is_user_wcmp_vendor( get_current_user_id() ) )
      wp_redirect( get_permalink( wcmp_vendor_dashboard_page_id() ) );
      }
      add_action( ‘template_redirect’, ‘rediret_vendor_reg_to_dashboard’ );

    • #119672

      Hi,
      As per our default flow If a vendor logged in then we redirect to the vendor dashboard page when they try to go on the page for vendor registration.
      Check out the video – https://www.loom.com/share/e598456b9e3e4e5eb5b28079502d467b
      Kindly make sure that you are using the latest version of WCMp (3.7.1).

      Regards,

    • #120830
      marounhashem
      Participant

      Hello,

      I removed the vendor registration link for users logged in as vendors.

      You can close the ticket

      Thank you

    • #120840
Viewing 3 reply threads

The topic ‘Vendor redirect’ is closed to new replies.