PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 1.6.2
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v1.6.2
2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 1.8.1 All 42 releases
sellkit / includes / elementor / modules / checkout / templates / form-login.php

form-login.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster 1.6.2, at includes/elementor/modules/checkout/templates/form-login.php

171 lines 5.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Checkout login form
4 *
5 * This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-login.php.
6 *
7 * HOWEVER, on occasion WooCommerce will need to update template files and you
8 * (the theme developer) will need to copy the new files to your theme to
9 * maintain compatibility. We try to do this as little as possible, but it does
10 * happen. When this occurs the version of the template file will be bumped and
11 * the readme will list any important changes.
12 *
13 * @see https://docs.woocommerce.com/document/template-structure/
14 * @package WooCommerce\Templates
15 * @version 3.8.0
16 */
17
18 defined( 'ABSPATH' ) || exit;
19
20
21 if ( is_user_logged_in() ) {
22 $this_user = wp_get_current_user();
23 $email = get_user_meta( $this_user->ID, 'billing_email', true );
24
25 if ( empty( $email ) ) {
26 $email = $this_user->user_email;
27 }
28
29 ?>
30 <div class="sellkit-checkout-widget-login-section sellkit-checkout-widget-logged-user sellkit-checkout-local-fields">
31 <h4 class="header heading"><?php echo __( 'Contact Details', 'sellkit' ); ?></h4>
32 <div class="sellkit-checkout-widget-email-holder">
33 <div class="sellkit-checkout-fields-wrapper sellkit-widget-checkout-fields sellkit-checkout-excluded-wrapper-fields sellkit-login-section">
34 <div style="position:relative">
35 <span class="mini-title">
36 <?php echo __( 'Email address', 'sellkit' ); ?>
37 </span>
38 </div>
39 <p class="log-email">
40 <span class="woocommerce-input-wrapper">
41 <input
42 type="email"
43 class="input-text validate-email"
44 name="billing_email"
45 id="billing_email"
46 readonly
47 placeholder="<?php echo __( 'Email Address', 'sellkit' ); ?>"
48 value="<?php echo $email; ?>"
49 autocomplete="email"
50 />
51 </span>
52 </p>
53 </div>
54 </div>
55 </div>
56 <?php
57 } else {
58 ?>
59 <div class="sellkit-checkout-widget-login-section sellkit-checkout-local-fields">
60 <h4 class="header heading"><?php echo __( 'Contact Details', 'sellkit' ); ?></h4>
61 <div class="sellkit-checkout-widget-email-holder">
62 <div class="sellkit-checkout-fields-wrapper sellkit-widget-checkout-fields sellkit-checkout-excluded-wrapper-fields sellkit-login-section">
63 <div style="position:relative">
64 <span class="mini-title">
65 <?php echo __( 'Email address', 'sellkit' ); ?>
66 </span>
67 </div>
68 <p>
69 <span class="woocommerce-input-wrapper">
70 <input
71 type="text"
72 name="billing_email"
73 id="billing_email"
74 class="login-mail validate-email"
75 placeholder="<?php echo __( 'Email Address', 'sellkit' ); ?>"
76 autocomplete=""
77 >
78 </span>
79 <span class="sellkit-checkout-widget-email-error login-section-error">
80 <?php echo __( 'Email address is not valid.', 'sellkit' ); ?>
81 </span>
82 <span class="sellkit-checkout-widget-email-empty login-section-error">
83 <?php echo __( 'Email address is empty.', 'sellkit' ); ?>
84 </span>
85 <span class="jupiter-checkout-widget-email-search">
86 <i class="fas fa-sync fa-spin"></i>
87 <?php echo __( 'Checking...', 'sellkit' ); ?>
88 </span>
89 </p>
90 </div>
91 </div>
92 <div class="login_hidden_section sellkit-checkout-widget-username-field">
93 <?php if ( 'no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?>
94 <div class="sellkit-checkout-fields-wrapper sellkit-widget-checkout-fields sellkit-checkout-excluded-wrapper-fields sellkit-login-section">
95 <div style="position:relative">
96 <span class="mini-title">
97 <?php echo __( 'Username', 'sellkit' ); ?>
98 </span>
99 </div>
100 <p>
101 <input
102 type="text"
103 class="login-username"
104 name="account_username"
105 id="register_user"
106 placeholder="<?php echo __( 'Username', 'sellkit' ); ?>"
107 >
108 <span class="sellkit-checkout-widget-username-error login-section-error">
109 <?php echo __( 'An account is already registered with that username. Please choose another..', 'sellkit' ); ?>
110 </span>
111 </p>
112 </div>
113 <?php endif; ?>
114 </div>
115 <div class="login_hidden_section sellkit-checkout-widget-password-field">
116 <div class="sellkit-checkout-fields-wrapper sellkit-widget-checkout-fields sellkit-checkout-excluded-wrapper-fields sellkit-login-section">
117 <div style="position:relative">
118 <span class="mini-title">
119 <?php echo __( 'Password', 'sellkit' ); ?>
120 </span>
121 </div>
122 <p>
123 <input
124 type="password"
125 class="login-pass"
126 <?php
127 if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) {
128 echo 'name="account_password"';
129 echo 'id="register_pass"';
130 } else {
131 echo 'name="account_password"';
132 echo 'id="login_pass"';
133 }
134 ?>
135 placeholder="<?php echo __( 'Password', 'sellkit' ); ?>"
136 >
137 </p>
138 </div>
139 </div>
140 <?php if ( 'yes' === get_option( 'woocommerce_enable_signup_and_login_from_checkout' ) ) : ?>
141 <div class="create-desc">
142 <div class="sellkit-checkout-fields-wrapper sellkit-widget-checkout-fields sellkit-checkout-excluded-wrapper-fields sellkit-login-section">
143 <p>
144 <input
145 type="checkbox"
146 class="sellkit-create-account-checkbox woocommerce-form__input woocommerce-form__input-checkbox input-checkbox"
147 id="createaccount"
148 name="createaccount"
149 value="1"
150 >
151 <label for="createaccount" class="sellkit-create-account-checkbox-label">
152 <?php
153 do_action( 'sellkit_core/widgets/checkout/custom_message/create_website_account' );
154 ?>
155 </label>
156 </p>
157 </div>
158 </div>
159 <?php endif; ?>
160 <div class="login-wrapper login_hidden_section">
161 <div class="sellkit-checkout-fields-wrapper sellkit-widget-checkout-fields sellkit-login-section">
162 <span class="login-submit sellkit-checkout-widget-secondary-button">
163 <?php echo __( 'Login', 'sellkit' ); ?>
164 </span>
165 <label class="login-result"></label>
166 </div>
167 </div>
168 </div>
169 <?php
170 }
171