• Resolved rudyb33

    (@carolb33)


    I’ve removed the login and register links by adding the information below, but I still get 2 error messages when an order is placed: Valid email is require and Password is required.

    This prevents someone from ordering. How do I keep these error messages from appearing? It would like to have customers provide an email address but not have to register or login or use a password.

    I’ve added this:
    // Add this to your theme’s functions.php file or use a plugin like Code Snippets
    add_filter( ‘sunshine_main_menu’, ‘custom_sunshine_main_menu’, 999 );
    function custom_sunshine_main_menu( $menu ) {
    unset( $menu[100] );
    unset( $menu[110] );
    return $menu;
    }
    and this
    // OR, alternatively add this to Sunshine > Settings > Design > Custom CSS
    li.sunshine-login, li.sunshine-register { display: none; }
    but links still there

    Also, I’ve added to CSS:

    This required putting a little more specific CSS for this theme:

    #sunshine .sunshine-main-menu li.sunshine-login, #sunshine .sunshine-main-menu li.sunshine-register { display: none !important; }

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter rudyb33

    (@carolb33)

    On the above, I do not want customers to provide an email address, as I obtain their email address when they use PayPal.

    Plugin Author WP Sunshine

    (@wpsunshine)

    An email is needed at checkout to send receipt emails, it should not be removed.

    Thread Starter rudyb33

    (@carolb33)

    When I use the code provided by Sunshine to remove login and register links it removes the requirement to create an account with password. Yet, when I try to checkout without an account it gives an error message that I need to provide an email address and password – so I can’t check out. If I’ve removed the need to create an account why is it still asking for a password?

    www. barbrathbun.com

    Plugin Author WP Sunshine

    (@wpsunshine)

    In Sunshine > Settings > Checkout, you also need to enable the Guest Checkout option. That makes the password field not required.

    Thread Starter rudyb33

    (@carolb33)

    It’s been enabled. It’s still asking for the password and email address.

    Thread Starter rudyb33

    (@carolb33)

    Also, I removed the “already have an account?” using CSS because if I keep it there, it directs users to log into WordPress.

    sunshine-checkout-login { display: none; }

    Plugin Author WP Sunshine

    (@wpsunshine)

    I went to your site at https://barbrathbun.com/client-galleries/checkout/

    I am not getting any error requiring a password when attempting to checkout right now.

    Thread Starter rudyb33

    (@carolb33)

    I ended up removing the CSS below as it removed the email address request (I was trying to remove any trace of request for an account), which is why the error messages were there, but there was no place to put the email.

    sunshine-checkout-login {?
    display: none;
    }

    Plugin Author WP Sunshine

    (@wpsunshine)

    Sounds like you have it now working how you hoped. Let me know if there is anything else!

    Thread Starter rudyb33

    (@carolb33)

    The only other question I had was about logging in. If someone does create an account, it looks like they log into a page that looks like the WordPress login. Is this correct?

    Thanks for your help!

    Plugin Author WP Sunshine

    (@wpsunshine)

    Sunshine does currently use the default WordPress login page and then automatically redirects them back to where they were after logging in.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Removing llogin and register links’ is closed to new replies.