Hello,

One of our Client’s websites, the requirement was as follows.

  1. Don’t allow the user to create the profile at the checkout page.
  2. Just display the Register here button and ask the customer to register and get approved before he creates the order.

As we all know, once you stop the user from creating the profile at checkout level, its difficult to place the register here button.

We altered the file at below location

public_html\wp-content\plugins\woocommerce\templates\Checkout\form-login.php

The below is the changed code snippet

defined( 'ABSPATH' ) || exit;

if ( is_user_logged_in() || 'no' === get_option( 'woocommerce_enable_checkout_login_reminder' ) ) {
	return;
}

?>
<div class="woocommerce-form-login-toggle">
	<?php wc_print_notice( apply_filters( 'woocommerce_checkout_login_message', esc_html__( 'Returning customer?', 'woocommerce' ) ) . ' <a href="#" class="showlogin">' . esc_html__( 'Click here to login', 'woocommerce' ) . '</a>', 'notice' ); ?>
</div>
<?php

woocommerce_login_form(
	array(
		'message'  => esc_html__( 'If you have shopped with us before, please enter your details below. 
If you are a new customer', 'woocommerce' ).'<a href="https://threepupils.com/my-account/"> Register here</a>',
		'redirect' => wc_get_checkout_url(),
		'hidden'   => true,
	)
);

highlighted the changes in bold.

Happy coding