Home Forums Theme Support Dokan Customizing; Help Me

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18453

    Noel
    Member

    Hi. I have two concerns that I cant seem to fix.
    1. In the demo one of the products has the details instead of the add to cart as seen in this image. How can I do this?

    2. How can I edit the registration page so that the radio buttons of choosing if you are a customer or a seller will be placed on top?

    Thank you.

    #18456

    Tareq Hasan
    Keymaster
    Post count: 2831

    1. If your product is a variable product, then this happens.

    2. Open /includes/template-tags.php and see at function dokan_seller_reg_form_fields around line 367. Remove the seller/custom radio box.

    Now add this function to your functions.php, should work.
    [php]
    function dokan_seller_type_chose_registration() {
    ?>
    <p class="form-row form-group user-role">
    <label class="radio">
    <input type="radio" name="role" value="customer"<?php checked( $role, ‘customer' ); ?>>
    <?php _e( ‘I am a customer', ‘dokan' ); ?>
    </label>

    <label class="radio">
    <input type="radio" name="role" value="seller"<?php checked( $role, ‘seller' ); ?>>
    <?php _e( ‘I am a seller', ‘dokan' ); ?>
    </label>
    </p>
    <?php
    }

    add_action( ‘woocommerce_register_form_start', ‘dokan_seller_type_chose_registration' );
    [/php]

    Remember, you'll lose the changes once any update comes.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Customizing; Help Me’ is closed to new replies.