Viewing 8 replies - 1 through 8 (of 8 total)
  • Simply do not allow guest orders and allow users to login during checkout in Woocommerce->Settings->Account and Privacy

    Thread Starter dyin

    (@dyin)

    @techedge83 thanks for the info! So it does the following steps?

    If not logged in: Cart > create account / login > checkout
    If logged in: Cart > checkout

    edit: I tried a few of the settings in WooCommerce and I can not replicate the behaviour with the default settings. Is there a guide? Perhaps I am doing something wrong

    • This reply was modified 1 year, 7 months ago by dyin.

    It depends on the theme but the standard path for not logged in is the same as logged in: Cart > Checkout. In the checkout page there is an option to login for already registered users (top square) and a form for the registration (bottom square).

    See attached image:

    https://1drv.ms/i/s!Aqh4xu_sLJlvhcdQUs1Tv2T_ukqnpQ

    If you disallowed guest orders in Woocommerce>Settings>Account and Privacy (first option on the page), users will be forced to either login or create a new account (by filling the form directly in the checkout page).

    Thread Starter dyin

    (@dyin)

    @techedge83 ok I see. That isn’t the way I am doing it now though. I am always letting them go through the login page if they are not logged in before they go to checkout. I am a wholesale business and my clients need their shipping details from their account (and other things).

    Most large webshops (Amazon / bol.com / …) do the same so it would have been nice to have the option build in.

    I did find this also on stackoverflow: php – Redirect to login (my-account) before checkout and return to checkout after login – Woocommerce – Stack Overflow

    Oh, I see what you are trying to achieve, there is not an “out of the box” solution for that.

    I suggest you also disallow account creation during checkout (third option from top on the same page Woocommerce>Settings>Account and Privacy).

    The stackoverflow solution should do, but I’m sorry I cannot try it now to confirm it’s working as intended.

    Keep us posted in case of need.

    Thread Starter dyin

    (@dyin)

    @techedge83 ok, I guess I will stick with the plugin as it is light and well coded.
    It would be a nice default though. There is a reason why large online shops do it that way :D. Is there a feature request page for WooCommerce?

    I’ve examined the plugin and I can confirm it is very light and it does almost the same than it was suggested in the stackoverflow discussion.

    About feature request I think this should be the right place:
    https://woocommerce.com/feature-requests/woocommerce

    • This reply was modified 1 year, 7 months ago by techedge.

    Hi @dyin ,

    It seems @techedge83 has guided you effectively here. ??

    Just to add – if you have any ideas that could improve the WooCommerce core plugin, feel free to submit an Enhancement request.

    Cheers!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Default option to log in before checkout’ is closed to new replies.