Home Forums Themes Support Claue Vendors given white screen when logging in

Topic Resolution: Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #28869

      Hi Harry,

      When my vendors log in via https://www.consciouscrafties.com/my-account/ they are taken to a white screen.
      url stays as: https://www.consciouscrafties.com/my-account/ rather than the vendor dashboard. See attached screenshot.

      If they refresh the screen, the site returns and they can see they are logged in and then need to navigate themselves to their vendor dashboard.

      However when I deactivate Claue and use Storefront, Vendors are redirected correctly to the vendor dashboard (and no scary white screen)

      This is pretty urgent as my vendors are getting confused by the white screen.

      Many thanks,

      Karen

      Attachments:
      You must be logged in to view attached files.
    • #28873

      I’ve recorded the process so you can see 🙂

      Thanks for your help

    • #28877

      Hi Karen,

      Could you send me private account to check as private reply to check.

      Thanks

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #28885
      This reply has been marked as private.
    • #28887

      Hi Karen,

      I check with default Claue it work well. Please check the code you added in claue-child to override WC Vendor function.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #28888

      Please check below fucntion in claue-child > functions.php

      /* Redirect Vendors to Vendor Dashboard on Login */
      add_filter('woocommerce_login_redirect', 'login_redirect', 10, 2);
      function login_redirect( $redirect_to, $user ) {
          
       
          // 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;
      }

      Regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #28889

      YAY YAY YAY!!!

      Thank you soooooo much!!!!
      Deleting the old code from functions.php worked!!!!

      Thanks so much for spotting and all your help 🙂 x

Viewing 6 reply threads

You must be logged in to reply to this topic.