• Resolved nitish56

    (@nitish56)


    Hi Team,
    I am using woocommerce and ultimate elementor addon plugin in my website. When i do order from checkout page as a guest user and add the password from Create an account field on checkout page, Once order is placed it redirect to order-received page and showing me logged in. In menu it is showing me submenu for My account, order and logout which is created by me which i show basically when user is logged in. But don’t know why it showing logged in on checkout page after order is placed by guest user.

    I checked by adding this codes but it is not working.
    add_filter( ‘woocommerce_registration_auth_new_customer’, ‘__return_false’ );

    Checked with doing settings in woocommerce Account & Privacy as well. But it is not fixed.

    Can anyone tell me how it can be fix ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there @nitish56,

    Thanks for reaching out!

    When i do order from checkout page as a guest user and add the password from Create an account field on checkout page…

    Based on your description here, it’s not clear if you’re creating an account from the checkout page, or completing the process as a guest user.

    Can you please clarify the steps you’re taking at guest checkout, and perhaps provide us with a few screenshots of what you see through the process?

    Thanks!

    Thread Starter nitish56

    (@nitish56)

    Yes, I am completing the process as a guest user and creating account from here i.e checkout page. Have a look screenshot.
    https://tinyurl.com/22xewwjr

    Once account created from order received page it is showing me logged in only in order-received page. Header is created by Ultimate Addon of Elementor have a look
    https://tinyurl.com/2xk93de3

    Hi @nitish56

    Thanks for clarifying that you are creating an account during checkout.

    Once account created from order received page it is showing me logged in only in order-received page

    Thanks for sharing the screenshot. If you are not being shown as logged in at other pages which were open before, you should refresh (F5) those pages.

    I checked by adding this codes but it is not working

    An additional piece of code is not required. Once your account is created it will have a dashboard from where users will be able to view their orders alongside other account details. You can set this up from WooCommerce → Settings → Accounts and Privacy → Account Creation:
    IMAGE
    Link to image: https://snipboard.io/nSdCYZ.jpg

    We’ve explained further in this guide: https://docs.woocommerce.com/document/configuring-woocommerce-settings/#accounts-and-privacy-settings.

    Can you please also share a screenshot of your “Accounts & Privacy” settings as found in WooCommerce > Settings > Accounts & Privacy?

    Thread Starter nitish56

    (@nitish56)

    @margaretwporg ,

    Yes, this settings are done have a look screenshot. I checked by enabling other options as well but it is not working.
    https://tinyurl.com/22eaqm4g

    After creating an account during checkout on order-received page it is showing me logged in but when i refresh the page i am not logged in. Why it shows me logged in on order-received page when i do order as guest user that i want you to let me know how it can be fix ?

    Hi @nitish56

    If I am following it correctly when you create an account on the checkout page, after placing an order it automatically creates the user/password and logs in to that session.

    This kind of customization is a bit out of scope for us, so you can consider using a plugin like the WooCommerce Members only to disable it.

    I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    Alternatively, I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack.

    We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    My very best,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Deny auto login after checkout in woocommerce’ is closed to new replies.