Woocommerce Settings:
- Guest checkout disabled.
- Create account during checkout enabled (user and passowrd auto generated)
If user is REGISTERED. But NOT logged in. Checkout errors with "An account is already registered with your email address. Please log in."
How do I override this to COMPLETE order, and tie order to existing account. Give a prompt to user to login next time for a faster checkout
Can't find any snippet or module that can do it
none yet. Happy to reward.
There is no hook for this. You may need to modify process_customer function in WC core (plugins/woocommerce/includes/class-wc-checkout.php) Line#935 - Keep in mind, it's not encouraged to edit core ( when updated, your changes will loose)
If you have enabled allow customers to login on checkout, the option login from checkout page will be coming.