Dokan Theme Bug (Automatically Generate Customer Password)

  • Home
  • Forums
  • Dokan
  • Dokan Theme Bug (Automatically Generate Customer Password)
This topic contains 3 reply and 2 voices, and was last updated by Nayem 9 years, 3 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
December 23, 2014 at 3:25 am 32834
Nayem hi, i have noticed a bug in the theme , when i click on automatically generate customer password in woocommerce account settings , when i go to the "My Account" page to register , the password field is showing (which should be hidden). so i changed the theme to twentytwelve and that fixed the problem , the password field was gone you guys should look into this bug , because i cant use your theme for the automatically generate customer password option
December 23, 2014 at 3:55 am 32835
fahad fahad

an if statement is needed in the dokan “woocommerce/myaacount/form-login.php”

and wrap it a round the password field

p class=”form-row form-row-wide”>
label for=”reg_password”> span class=”required”>*/span>/label>
input type=”password” class=”input-text” name=”password” id=”reg_password” />

December 23, 2014 at 11:47 am 32851
Nayem Nayem

Hello Fahad,

I have checked and found this bug. I have to discuss with our developer team with this bug. Hope they will give me a good feedback. Please allow me some time and i will back with the right solution after discussing with the developer team.

Thank you 🙂

December 24, 2014 at 12:37 pm 32914
Nayem Nayem

Hello Fahad,

We fixed this bug. Please open your theme folder wedevs-dokan/woocommerce/my-account and open form-login.php file. In this file you have to replace line number 84-89 with this code-

 <?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>
                <p class="form-row form-group form-row-wide">
                    <label for="reg_password"><?php _e( 'Password', 'dokan' ); ?> <span class="required">*</span></label>
                    <input type="password" class="input-text form-control" name="password" id="reg_password" value="<?php if ( ! empty( $_POST['password'] ) ) esc_attr_e( $_POST['password'] ); ?>" required="required" minlength="6" />
                </p>
            <?php endif; ?>

.
Hope everything will work fine. Thank you 🙂

Viewing 3 Posts - 1 through 3 (of 3 total)