August 17, 2014 at 8:30 am 25351
|Gabriel||Hi, I use Gravity Forms (with the User Registration addon) to register new sellers to the website instead of Woocommerce. So when I select the "Make selling status enable for new registred seller" checkbox in the Dokan Settings, it does not automatically enable the seller status for every user. Is there another way to auto-activate selling capabilities for all users with the 'Seller' role? I really need this. Thanks again, Lewis|
August 19, 2014 at 10:26 pm 25537
August 19, 2014 at 10:36 pm 25539
Thanks for the reply,
Yep Gravity Forms has the option to select a user’s role, but after looking through the Dokan code, I have a question;
Is the option “Make selling status enable for new registered seller” a WordPress capability or is it user_meta?
August 21, 2014 at 9:16 pm 25662
“Make selling status enable for new registered seller” is a user_meta
August 29, 2014 at 8:51 am 26034
I’m trying to setup a custom seller registration form using Gravity Form’s User Registration also. Did you manage to get it to work?
August 29, 2014 at 7:54 pm 26048
In addition to getting the form to automatically active the seller, I’ve run into an issue with trying to set the user_nicename for the store url. user_nicename isn’t stored in user_meta, but in wp_user.
August 29, 2014 at 11:46 pm 26054
I have actually unfortunately managed to find a solution for this yet. If the seller permissions were actually WordPress capabilities instead of user_meta/wp_user then I could use the User Role Editor plugin to auto-assign capabilities for new sellers registered to my website without using the Woocommerce form that Dokan uses.
September 10, 2014 at 8:44 am 26570
Put the following in your functions.php file. Make sure to change the 1 in “gform_post_submission_1” to the ID of the gravity form you are using for user registration.
September 10, 2014 at 10:36 pm 26614
Thanks for that Simon,
It works perfectly, really appreciate it!
November 18, 2014 at 8:32 am 30663
Can you tell me which Gravity Forms plugin you are using? In the WP plugin directory there seem to be a lot from different companies.
I’m having the same problem: trying to make it so all my users can sell.