Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi @devwp2020 ,

    First of all thanks for using this plugin.

    This plugin would work only for contact form 7 plugin.

    If you are using Contact form 7 plugin for form then you need to edit contact form from wordpress backend and you will see there form tags. Its just easy to add that fields in contact form 7 as you generally use first name , last name etc.

    If you can share site/page where are you using this then it would be good to understand.

    Looking forward.

    Thanks,
    TrustyPlugins

    Thread Starter devwp2020

    (@devwp2020)

    this is code formulaire:

    <div class=”col-md-12″>
    <form method=”post” name=”vendor_staff_form” class=”wcmp_vendor_staff_form form-horizontal”>
    <?php do_action(‘wcmp_before_vendor_staff’); ?>
    <div class=”container site-content-small main-content-offset”>
    <div class=”form-section”>
    <!–<div class=”form-group row multirow”>
    <label class=”label col-md-3 col-sm-3 col-xs-3″>User Name*</label>
    <div class=”col-md-8 col-sm-8 col-xs-9″>
    <input class=”sub_vendor_username” type=”text” <?php echo $valid_user_edit ? ‘readonly’ : ”; ?> name=”sub_vendor_username” value=”<?php echo isset($user_details->user_login) ? $user_details->user_login : ”; ?>” placeholder=”Enter your Staff User Name here”>
    <small>(Usernames cannot be changed.)</small>
    </div>
    </div> NON SERVE PIù, ORA L’USERNAME VIENE SETTATO A PARTIRE DALLA MAIL–>
    <div class=”form-group row”>
    <label class=”label col-md-3 col-sm-3 col-xs-3″>Email*</label>
    <div class=”col-md-8 col-sm-8 col-xs-9″>
    <input class=”sub_vendor_email” type=”text” name=”sub_vendor_email” value=”<?php echo isset($user_details->user_email) ? esc_attr($user_details->user_email) : ”; ?>” placeholder=”Enter your Staff Email here”>
    </div>
    </div>
    <div class=”form-group row”>
    <label class=”label col-md-3 col-sm-3 col-xs-3″>First Name</label>
    <div class=”col-md-8 col-sm-8 col-xs-9″>
    <input class=”sub_vendor_fname” type=”text” name=”sub_vendor_fname” value=”<?php echo isset($user_details->first_name) ? esc_attr($user_details->first_name) : ”; ?>” placeholder=”Enter your Staff First Name here”>
    </div>
    </div>
    <div class=”form-group row”>
    <label class=”label col-md-3 col-sm-3 col-xs-3″>Last Name</label>
    <div class=”col-md-8 col-sm-8 col-xs-9″>
    <input class=”sub_vendor_lname” type=”text” name=”sub_vendor_lname” value=”<?php echo isset($user_details->last_name) ? esc_attr($user_details->last_name) : ”; ?>” placeholder=”Enter your Staff Last Name here”>
    </div>
    </div>
    <div class=”form-group row”>
    <label class=”label col-md-3 col-sm-3 col-xs-3″>New Password*</label>
    <div class=”col-md-8 col-sm-8 col-xs-9″>
    <input class=”sub_vendor_password” type=”password” name=”sub_vendor_password” placeholder=”Enter your Staff Password here”>
    <input type=”hidden” name=”staff_id” id=”edit_staff_id” value=”<?php echo esc_attr($staff_id) > 0 ? $staff_id : ”; ?>” />
    </div>
    </div>
    <div class=”form-group row”>
    <label class=”label col-md-3 col-sm-3 col-xs-3″>Role*</label>
    <div class=”col-md-8 col-sm-8 col-xs-9″>
    <select class=”sub_vendor_roles” name=”sub_vendor_roles” multiple=”multiple”>
    <?php foreach (get_editable_roles() as $role_name => $role_info) {
    if (substr($role_name, 0, 9) === ‘bsly_sup_’) {
    $selected = (isset($user_details->roles) && in_array($role_name, $user_details->roles)) ? ‘selected’ : ”;
    if ($role_name != ‘bsly_sup_master_division’)
    echo “<option value=\”{$role_name}\” {$selected}>”.esc_html($role_info[‘name’]).”</option>”;
    else if ($is_vendor)
    echo “<option value=\”{$role_name}\” {$selected}>”.esc_html($role_info[‘name’]).”</option>”;
    }
    } ?>
    </select>
    </div>
    </div>
    <?php if ($is_vendor):
    global $BSLYsupplier;
    $division_items = $BSLYsupplier->division;
    $division_items->get_division_supplier($current_user->ID);
    ?>
    <?php if (count($division_items->items) > 0):?>
    <div class=”form-group row”>
    <label class=”label col-md-3 col-sm-3 col-xs-3″>Division*</label>
    <div class=”col-md-8 col-sm-8 col-xs-9″>
    <select class=”sub_vendor_division” name=”sub_vendor_division”>
    <?php
    if (count($division_items->items) > 1){
    $selected = (empty(get_user_meta($staff_id, ‘_vendor_division_id’, true))) ? ‘selected’ : ”;
    echo ‘<option value=”” disabled ‘.$selected.’>Enter your Staff Division here</option>’;
    }
    foreach ($division_items->items as $division){
    $selected = (get_user_meta($staff_id, ‘_vendor_division_id’, true) == $division[‘division_id’]) ? ‘selected’ : ”;
    echo ‘<option value=”‘.$division[‘division_id’].'” ‘.$selected.’>’.esc_html($division[‘name’]).'</option>’;
    }
    ?>
    </select>
    </div>
    </div>
    <?php endif; ?>
    <?php endif; ?>
    </div>
    <?php do_action(‘wcmp_after_vendor_staff’); ?>
    <div class=”action_div_space”> </div>
    <div class=”after-content-action-button-cnt my-action-container”>
    <button class=”add_sub_vendor btn btn-small btn-color-gray-negate btn-style-outline outline-2″ name=”add_sub_vendor”><?php $valid_user_edit ? _e(‘Save and continue’, ‘wcmp-sub_vendor’) : _e(‘Save and continue’, ‘wcmp-sub_vendor’); ?></button>
    <div class=”clear”></div>
    </div>
    </div>
    </form>
    </div>

    • This reply was modified 4 years, 10 months ago by devwp2020.
    Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi @devwp2020 ,

    I noticed that you are not using contact form 7 plugin so it will not work for you.

    You need to create form using contact form 7 and this plugin will work for you because its add-on of CF7.

    Looking forward.

    Thanks,
    Jasveer

    Is possible to prefill and specified country? I want to choose my country and hide that field, to show only the states in my country.

    It is possible?

    Thank you!!

    Plugin Author Trusty Plugins

    (@trustyplugins)

    Hi @aloysiochagas ,

    plugin does not have this type of functionality but yes, its possible to make this and we can do this custom code on your website. So you can contact us via email [email protected].

    Looking forward to your email.

    Thanks,
    Jasveer

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘use plugin in wordpress’ is closed to new replies.