| @@ -13,16 +13,10 @@ | ||
| 13 | 13 | |
| 14 | 14 | if ( is_user_logged_in() ) { |
| 15 | 15 | return; |
| 16 | 16 | } |
| 17 | - | |
| 18 | -$checked = 'checked="checked"'; | |
| 19 | -if ( ! is_user_logged_in() && LearnPress::instance()->checkout()->is_enable_guest_checkout() ) { | |
| 20 | - $checked = ''; | |
| 21 | -} | |
| 22 | 17 | ?> |
| 23 | 18 | |
| 24 | -<input type="radio" id="checkout-account-switch-to-login" <?php echo $checked ?> name="checkout-account-switch-form" value="login"/> | |
| 25 | 19 | <div id="checkout-account-login" class="lp-checkout-block left"> |
| 26 | 20 | |
| 27 | 21 | <h4><?php esc_html_e( 'Sign in', 'learnpress' ); ?></h4> |
| 28 | 22 | |
| @@ -59,10 +53,10 @@ | ||
| 59 | 53 | |
| 60 | 54 | <p class="lp-checkout-sign-up-link"> |
| 61 | 55 | <?php if ( LearnPress::instance()->checkout()->is_enable_register() ) : ?> |
| 62 | 56 | <?php esc_html_e( 'Don\'t have an account?', 'learnpress' ); ?> |
| 63 | - <a href="javascript: void(0);"> | |
| 64 | - <label for="checkout-account-switch-to-register"><?php echo esc_html_x( 'Sign up', 'checkout sign up link', 'learnpress' ); ?></label> | |
| 57 | + <a href="<?php echo esc_url( add_query_arg( 'is_form_register', '1', LP_Helper::get_link_no_cache( learn_press_get_page_link( 'checkout' ) ) ) ); ?>"> | |
| 58 | + <?php echo esc_html_x( 'Sign up', 'checkout sign up link', 'learnpress' ); ?> | |
| 65 | 59 | </a>. |
| 66 | 60 | <?php endif; ?> |
| 67 | 61 | |
| 68 | 62 | <?php learn_press_get_template( 'checkout/guest-checkout-link' ); ?> |