In WooCommerce, you can exclude user login details at the checkout page. Also, one can move account login or registration details from top to the bottom. If doing so improves your website’s experience, then you must execute it. A simple coding is enough to make it work. In this article, you will learn how to remove or move login or registration at checkout. You can do it through WooCommerce settings & PHP coding.
Solution 1 (WooCommerce Settings) : Remove Login or Registration at Checkout page in WooCommerce
You just need to untick the fields in red as shown in the below image.
Solution 2 (PHP Snippet) : Move Login or Registration at Checkout Bottom
Using below PHP code, you can move login or registration below the billing information at checkout page.
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_login_form', 10 ); add_action( 'woocommerce_after_checkout_billing_form', 'woocommerce_checkout_login_form' );
Where do you add this snippet?
So, this is how you can remove or move login or registration at checkout in WooCommerce. Also, it is easier to activate this function with this code. So, to apply this code, just add this PHP snippet at your child theme function.php file’s bottom. It should be placed before “?>”, if you have it there. Apart from this, CSS goes in your child theme style.css file. Make sure that you are editing these files in a right manner for best results.
Is this snippet still valid?
So, this is how you can learn about remove or move login or registration at checkout in WooCommerce. I have applied this code on the Storefront theme and WordPress friendly hosting PHP 7.3. Let me know if everything works as expected when you code. Share it further if you find this snippet useful for you and it had saved your time.
Also Read, How to Create Custom Logs in WooCommerce?
Important links: WooCommerce – https://woocommerce.com/