Hello @rachelbjj,
You can disable the customer registration option :
/wp-content/plugins/dokan/templates/global/seller-registration-form.php
Comment out the mentioned line :
<label class="radio">
<input type="radio" name="role" value="customer"<?php checked( $role, 'customer' ); ?>>
<?php esc_html_e( 'I am a customer', 'dokan-lite' ); ?>
</label>
Then your user will only be able to register as a vendor.
I hope this helps 🙂
Hello, i’m looking for same thing, only vendor registration. But when i do this, i don’t have automaticaly the vendor registration. So i going on dokan-lite/includes/template-tags.php and on this :
function dokan_seller_reg_form_fields() {
$postdata = wc_clean( $_POST ); // WPCS: CSRF ok, input var ok.
$role = isset( $postdata['role'] ) ? $postdata['role'] : 'seller';
$role_style = ( $role == 'seller' ) ? 'display:none' : '';
dokan_get_template_part( 'global/seller-registration-form', '', array(
'postdata' => $postdata,
'role' => $role,
'role_style' => $role_style
) );
}
i have replace customer by vendor. But i need check customer and vendor agin to update form…