• Resolved hashdev

    (@hashdev)


    there is a problem with New Vendor Product Upload. I already mark Allow newly registered vendors to add products. but, still in new vendor profile after registraion it’s shows, “Error! Your account is not enabled for selling, please contact the admin”.

    i don’t want this oprion. I want vendor can upload their products without admin permission.

    note: I cleared browser cache also browse from different device and browsers. but, it’s not working..

    how can i disable or remove this from core code file? what’s the file path?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello @hashdev ,

    The settings you have mentioned should allow any new vendors to upload products after they register. Please check what is the status of the vendors in Dokan > Vendors section after registration.

    Are they enabled?

    If not, you can contact our support with your site details to investigate further.

    Thank you ??

    Thread Starter hashdev

    (@hashdev)

    I understand. but, i don’t want that. every time i have to enable when new vendor registered. I want It will be autometically enable. what should i do?

    Hello @hashdev ,

    I just checked in a fresh WooCommerce and Dokan installation. Once I kept this setting enabled – https://prnt.sc/z7pgg4 the new vendors can add products without needing the admin’s action.

    I will recommend to check in a separate staging site if any of your theme, plugin or previous configuration is not causing the problem. Also, if you have Dokan Pro installed, please contact our support team with your site details.

    Thank you ??

    Thread Starter hashdev

    (@hashdev)

    Can you please provide me the code path to change it within the code.please. i tried every possible way to fix it out

    Thread Starter hashdev

    (@hashdev)

    @rur165 Can you please provide me the code path to change it within the code.please. i tried every possible way to fix it out

    Hello @hashdev ,

    The notice is coming from this function – dokan_seller_not_enabled_notice()

    In case you want to disable the condition that checks if the vendor is enabled or not, you can modify the template – dokan-lite/templates/products/new-product.php see line no. 91 which checks if the seller is enabled – dokan_is_seller_enabled

    I am unable to guarantee if this will enable every other feature of the store to sell products.

    You can also take a look at this function –
    Path: \dokan-lite\includes\functions.php
    Function: dokan_admin_user_register

    This function controls the feature that we are enabling in the Dokan settings panel.

    You can override and update user meta to have selling capability as soon as they register.

    Thank you ??

    Thread Starter hashdev

    (@hashdev)

    what should I do https://prnt.sc/zhof6l , https://prnt.sc/zhohi9
    how can i disable this

    Thread Starter hashdev

    (@hashdev)

    @rur165 what should I do https://prnt.sc/zhof6l , https://prnt.sc/zhohi9
    how can i disable this ??

    Hello @hashdev ,

    I understand this can be confusing. As per our support policy, we are unable to provide customization help. We can share file locations and guidelines as in my previous replies.

    However, I went ahead and tested this code below that will allow vendors to sell regardless of the Dokan settings. Add this code in your theme’s functions.php file –

    remove_action( 'user_register', 'dokan_admin_user_register' );
    
    function dokan_admin_user_register_custom( $user_id ) {
        $user = new WP_User( $user_id );
        $role = reset( $user->roles );
    
        if ( $role == 'seller' ) {
                update_user_meta( $user_id, 'dokan_enable_selling', 'yes' );
            }
    }
    
    add_action( 'user_register', 'dokan_admin_user_register_custom' );

    If you have any more customization requests, please consult with an expert.

    Thank you ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error! Your account is not enabled for selling option not working’ is closed to new replies.