WordPress.org

Ready to get started?Download WordPress

Forums

Cimy User Extra Fields
Display all extra field in form-login.php (1 post)

  1. ngoran.ahoua
    Member
    Posted 1 year ago #

    Hi,
    how can I display all the fields created in my form?
    my code is as below

    <div class="col-2">
    	<div class="wooLogin">
    		<h2><?php _e('Register', 'woocommerce'); ?></h2>
    		<form method="post" class="register">
    
    			<?php if ( get_option( 'woocommerce_registration_email_for_username' ) == 'no' ) : ?>
    
    				<p class="form-row form-row-first">
    					<label for="reg_username"><?php _e('Username', 'woocommerce'); ?> <span class="required">*</span></label>
    					<input type="text" class="input-text" name="username" id="reg_username" value="<?php if (isset($_POST['username'])) echo esc_attr($_POST['username']); ?>" />
    				</p>
    
    				<p class="form-row form-row-last">
    			<?php else : ?>
    				<p class="form-row form-row-wide">
    			<?php endif; ?>
    				<label for="reg_email"><?php _e('Email', 'woocommerce'); ?> <span class="required">*</span></label>
    				<input type="email" class="input-text" name="email" id="reg_email" value="<?php if (isset($_POST['email'])) echo esc_attr($_POST['email']); ?>" />
    			</p>
    
    			<div class="clear"></div>
    
    			<p class="form-row form-row-first">
    				<label for="reg_password"><?php _e('Password', 'woocommerce'); ?> <span class="required">*</span></label>
    				<input type="password" class="input-text" name="password" id="reg_password" value="<?php if (isset($_POST['password'])) echo esc_attr($_POST['password']); ?>" />
    			</p>
    			<p class="form-row form-row-last">
    				<label for="reg_password2"><?php _e('Re-enter password', 'woocommerce'); ?> <span class="required">*</span></label>
    				<input type="password" class="input-text" name="password2" id="reg_password2" value="<?php if (isset($_POST['password2'])) echo esc_attr($_POST['password2']); ?>" />
    			</p>
    			<div class="clear"></div>
                <p><?php $values = get_cimyFieldValue(false, 'Nom établissement');?></p>
    			<!-- Spam Trap -->
    			<div style="left:-999em; position:absolute;"><label for="trap">Anti-spam</label><input type="text" name="email_2" id="trap" /></div>
    
    			<?php do_action( 'register_form' ); ?>
    
    			<p class="form-row">
    				<?php $woocommerce->nonce_field('register', 'register') ?>
    				<input type="submit" class="button" name="register" value="<?php _e('Register', 'woocommerce'); ?>" />
    			</p>
    
    		</form>
    
    	</div>

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic