Forum Replies Created

Viewing 6 Topics - 1 through 6 (of 6 total)
Author Posts
April 18, 2015 at 10:26 pm in reply to: User Registration – Become A Vendor Application 41715
andrewsailer andrewsailer

I have this working, but my client’s site is not yet public. Essentially I added a link to the top menu “Become A Vendor” which only displays to logged out users. This links to a page with a form created with Ultimate Member. The tricky part was syncing WordPress roles with Ultimate Member Roles. Adding this to my functions.php did the trick:

/* This example syncs both UM / WP role during user approval */

add_action(‘um_after_user_is_approved’, ‘sync_um_and_wp_role’, 99 );
function sync_um_and_wp_role( $user_id ) {

// Get UM role
$role = get_user_meta( $user_id, ‘role’, true );

// Set WordPress role for same user
$wp_user_object = new WP_User( $user_id );
$wp_user_object->set_role( ‘seller’ );

}

April 18, 2015 at 6:30 pm in reply to: Round Up For Charity 41699
andrewsailer andrewsailer

Thanks for the quick response! Crossing my fingers for this one. 😀

April 18, 2015 at 6:28 pm in reply to: User Registration – Become A Vendor Application 41695
andrewsailer andrewsailer

Check out Ultimate Member (https://ultimatemember.com). I was able to achieve my goal with this free plugin. If you need assistance, feel free to shoot me an email at andrew@solariumcreative.com.

April 18, 2015 at 6:24 pm in reply to: Round Up For Charity 41693
andrewsailer andrewsailer

Hello!
Will you please consider adding this functionality in the next Dokan update? I simply need a way for shoppers to be able to add a donation (or round up) to the cart that hits a unique account.

Thank you!

April 9, 2015 at 12:05 pm in reply to: Adding New Products with ALL Options 40982
andrewsailer andrewsailer

Looking forward to this.
This is a time critical requirement for a project that I am on.
Thank you.

March 19, 2015 at 7:09 am in reply to: User Registration – Become A Vendor Application 39424
andrewsailer andrewsailer

Nash,
I found this plugin: https://wphive.com/plugins/new-user-approve/
I’m gonna play around with it tonight to see if I can make it work with Dokan.
Will let you know the outcome.

DOKAN SUPPORT: PLEASE HELP!!

Viewing 6 Topics - 1 through 6 (of 6 total)