Home Forums Theme Support Dokan Dokan Theme Bug (Automatically Generate Customer Password)

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Nayem 4 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32834

    fahad
    Member
    Post count: 17

    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

    #32835

    fahad
    Member
    Post count: 17

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

    and wrap it a round the password field

    < ?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>

    p class=”form-row form-row-wide”>
    label for=”reg_password”>< ?php _e( 'Password', 'woocommerce' ); ?> span class=”required”>*/span>/label>
    input type=”password” class=”input-text” name=”password” id=”reg_password” />

    < ?php endif; ?>

    #32851

    Nayem
    Moderator
    Post count: 6480

    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 ๐Ÿ™‚

    #32914

    Nayem
    Moderator
    Post count: 6480

    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 4 posts - 1 through 4 (of 4 total)

The topic ‘Dokan Theme Bug (Automatically Generate Customer Password)’ is closed to new replies.