Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Appointment › Holiday Mode removes Vendor user role
- This topic has 7 replies, 3 voices, and was last updated 6 years, 5 months ago by WCFM Forum.
- AuthorPosts
- July 8, 2018 at 5:20 pm #26080vevieGuest
Hello,
I am using your WCFM with WC Marketplace and directory theme Wyzi and when a vendor activates holiday mode, theur Vendor user role is automatically removed. This looks like a bug, as they are not able to access their WCFM dash so they can never deactivate the holiday mode.
Here is a video:
https://www.useloom.com/share/9d443685aaaf4e89975a0230ac331114 I will send a password in a private comment. Hope it works 🙂
Thank you
- July 8, 2018 at 5:20 pm #26081vevieGuestThis reply has been marked as private.
- July 8, 2018 at 8:05 pm #26084Eddy TrivulceParticipant
Hi
I also use the wizi theme and I was going to post on this same type of bug. In fact each time a user modifies his profile in the parameters, his role as a vendor is deleted and he has to request it again. If necessary I can give access to the site as admin to correct the Bug.
Thank you
Eddy
- July 9, 2018 at 6:19 am #26105WCFM ForumMember
Hi,
Thanks for get in touch with us.
Tell me one thing, if you are not activate “Vacation” for a vendor and save setting is this working fine? Vendor role still there! Take a test and know me.
Frankly, there is nothing related to vendor user role with vacation mode.
But, there is many things in your site. What is this “switch user”? Is this not creating mess, are you sure?How you are able to assign multiple role to an user? Is this option provided by theme?
Thank You
- July 9, 2018 at 6:30 am #26106Eddy TrivulceParticipant
Hi
This is when a change is made in all WCFM settings that the user loses his role as a seller. Not just for the vacation mode.
For the roles it is an option of the theme and the plugin associated with the theme.Have a nice day
Thank You
Eddy
- July 9, 2018 at 6:48 am #26108WCFM ForumMember
Hi,
Kindly add this code snippet to your site, hope this will resolve the issue for you –
function wcfm_wcmarketplace_custom_settings_update( $user_id, $wcfm_settings_form ) { if( apply_filters( 'wcfm_is_allow_store_name', true ) ) { $member_user = new WP_User(absint($user_id)); $member_user->set_role('dc_vendor'); } } add_action( 'wcfm_wcmarketplace_settings_update', 'wcfm_wcmarketplace_custom_settings_update', 50, 2 );
Thank You
- July 9, 2018 at 7:17 am #26120Eddy TrivulceParticipant
Hi
It’s ok for me 😉
Thank You
- July 9, 2018 at 7:23 am #26122WCFM ForumMember
That’s great 🙂
- AuthorPosts
- The topic ‘Holiday Mode removes Vendor user role’ is closed to new replies.