| @@ -11,9 +11,8 @@ | ||
| 11 | 11 | |
| 12 | 12 | defined( 'ABSPATH' ) || exit(); |
| 13 | 13 | ?> |
| 14 | 14 | |
| 15 | -<input type="radio" id="checkout-account-switch-to-register" name="checkout-account-switch-form" value="register"/> | |
| 16 | 15 | <div id="checkout-account-register" class="lp-checkout-block left"> |
| 17 | 16 | |
| 18 | 17 | <h4><?php esc_html_e( 'Sign up', 'learnpress' ); ?></h4> |
| 19 | 18 | |
| @@ -50,10 +49,10 @@ | ||
| 50 | 49 | |
| 51 | 50 | <p class="lp-checkout-sign-in-link"> |
| 52 | 51 | <?php if ( LearnPress::instance()->checkout()->is_enable_login() ) : ?> |
| 53 | 52 | <?php esc_html_e( 'Already had an account?', 'learnpress' ); ?> |
| 54 | - <a href="javascript: void(0);"> | |
| 55 | - <label for="checkout-account-switch-to-login"><?php esc_html_e( 'Sign in', 'learnpress' ); ?></label> | |
| 53 | + <a href="<?php echo esc_url( add_query_arg( 'is_form_login', '1', LP_Helper::get_link_no_cache( learn_press_get_page_link( 'checkout' ) ) ) ); ?>"> | |
| 54 | + <?php esc_html_e( 'Sign in', 'learnpress' ); ?> | |
| 56 | 55 | </a>. |
| 57 | 56 | <?php endif; ?> |
| 58 | 57 | |
| 59 | 58 | <?php learn_press_get_template( 'checkout/guest-checkout-link' ); ?> |