Home Forums Theme Support Dokan Adding Terms and Conditions in reg form

This topic is: not resolved

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

Viewing 15 posts - 16 through 30 (of 38 total)
  • Author
    Posts
  • #68373

    Scott
    Member
    Post count: 18

    It is, thanks Nayem

    #68374

    Scott
    Member
    Post count: 18

    Actually, When I sign up as a seller it has the terms&conditions checkbox but not when I register as a customer. I was also logged in as a customer and went to My Account page and clicked on Become a Seller button at the bottom of page but there was no terms&condition checkbox when becoming a seller from there.

    I want all members, both sellers and customers to have to agree to terms&conditions when signing up.

    Thanks

    #68398

    Nayem
    Moderator
    Post count: 6480

    Hello,

    To insert terms and condition in the migration page you have to insert that code also in the seller-migration page.

    Thanks.

    #68499

    Scott
    Member
    Post count: 18

    I added the terms&conditions code to the seller-migration page but it added the terms&conditions check box on the same sign up page where the the terms&conditions checkbox already is so now I have 2 check boxes on signup. I checked the become a seller option from the customer's My Account page but the terms&conditions are not displayed on the sign up page from there. How should I proceed so I can add the terms&conditions for customers and sellers throughout the site?

    #68553

    Nayem
    Moderator
    Post count: 6480

    Hello,

    When you will add terms and condition filed in the registration form it should also show in the become a seller form. Please make sure that you have putted those codes correctly.

    Thanks.

    #69056

    Scott
    Member
    Post count: 18

    Hello, could you give me a path to add the terms&conditions to the registration field? And can you also give me the path to locate the seller-migration page in the Dokan files on my server?

    Thanks

    #69080

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Please open dokan/templates/global/seller-registration.php file. In this file you have to add those codes-

    <p class="form-row form-group form-row-wide">
    <label><input name="terms" required="" type="checkbox" value="checked" />
    I agree to the <a href="#">terms and conditions</a><span class="required">*</span></label>
    </p>

    Seller migration page-

    You have to open dokan/templates/global/update-account.php file.

    Thanks.

    #69614

    Scott
    Member
    Post count: 18

    Hello,

    I'm using a dokan-child functions.php file so I won't lose these added codes when Dokan updates, I've added this code you gave me to the child functions.php:

    However, I'm not seeing the terms and conditions. What should I do when using a dokan-child theme to customize?

    I'd also like to add two registration fields for different type users, could you give me instructions to create & modify different user registration fields?

    Thanks

    #69625

    Nayem
    Moderator
    Post count: 6480

    Hello,

    If you have inserted only those line in your child theme function then it will not work. You have to override the entire registration form through child theme function. There is a filteradd_action( 'register_form', 'dokan_seller_reg_form_fields' ) in registration form you have to use that to override from child theme.

    If you are looking for changing or modifying your registration form then you have to hire a developer because we do not provide support for customization.

    Thanks.

    #69865

    Scott
    Member
    Post count: 18

    Hello Nayem,

    I don't understand your instruction for the use of the filter. I added the filter you recommended; add_action( ‘register_form', ‘dokan_seller_reg_form_fields' ) to the functions.php so I wasn't making changes directly to the Dokan theme before the code you gave me to add the terms and conditions to the seller sign up on the site;

    But after adding these to the functions.php my site wouldn't function (white screen), am I adding these correctly?
    Thanks

    #69953

    Nayem
    Moderator
    Post count: 6480

    Add those codes in your child theme function.php file-

    add_action( 'dokan_seller_registration_field_after','terms_condition' ); 
    
    function terms_condition(){
    ?>
    <p class="form-row form-group form-row-wide">
    <label><input name="terms" required="" type="checkbox" value="checked" />
    I agree to the <a href="#">terms and conditions</a><span class="required">*</span></label>
    </p>
    
    <?php
    }
    #71966

    Scott
    Member
    Post count: 18

    Hello Nayem,

    I added this code to the functions.php file and I got a Corrupt file error that brought the white screen (site crashed). So I removed the Dokan theme and plugin from wp-admin and downloaded the latest versions from your site
    dokan-plugin-2.3.zip and dokan-plugin-v2.4.5.zip (I believe this is theme zip file). I tried to add new theme, dokan-plugin.v2.4.5.zip to my wordpress installation but I'm getting this Error when uploading: The package could not be installed. The theme is missing the style.css stylesheet.

    Theme install failed.

    If this is the new theme zip file then it's missing the style.css and I'm wondering if Dokan has a conflict with the plugin WP Spamshield?

    #71987

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Please delete your previous installation of Dokan plugin and theme. Then upload and install the latest plugin and after installing the plugin, you have to install the theme. It should not show any error. You can disable all plugin before installing the plugin and theme.

    #72128

    Scott
    Member
    Post count: 18

    I disabled all the plugins and uploaded the new Dokan plugin and then uploaded the new theme but still received this error message: The package could not be installed. The theme is missing the style.css stylesheet.

    Theme install failed.

    #72150

    Nayem
    Moderator
    Post count: 6480

    Please provide your login and FTP details by using this form: http://wedevs.com/provide-login-details/. I will install the theme and plugin. If there is any custom changes in the theme or plugin then you will loose everything.

    Thank you ๐Ÿ™‚

Viewing 15 posts - 16 through 30 (of 38 total)

The topic ‘Adding Terms and Conditions in reg form’ is closed to new replies.