Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Auto login during vendor membership registration
Tagged: Vendor registration
- This topic has 13 replies, 2 voices, and was last updated 5 years, 1 month ago by bruce.rockow.
- AuthorPosts
- September 2, 2019 at 11:30 pm #79721bruce.rockowParticipant
I am using WCFM Marketplace with WCFM ultimate and Membership add-on.
When a vendor registers they are immediately logged in as a subscriber even if they haven’t completed choosing a membership plan. Do I have a setting wrong? I would like the person registering to have to receive an email and follow a link just as if they were to apply for a WordPress subscription. I really don’t want the vendor to be able to actually log in until admin approvers their vendor registration request.Thanks,
- September 2, 2019 at 11:33 pm #79722bruce.rockowParticipant
In addition, I have tried checking the email verification code box where the vendor gets an email and they have to fill in the code number. The process works the same way. The vendor is immediately logged in as a subscriber. That is not the way I need it to work.
- September 4, 2019 at 8:28 am #79950WCFM ForumMember
HI,
DO you have keep “Registration” as first for Membership subscription?
Please check this to “Choose Plan” as first step.
You may set this setting from WCFM Membership setting – https://ibb.co/SJBgM1p
Thank You
- September 4, 2019 at 11:06 am #80004bruce.rockowParticipantThis reply has been marked as private.
- September 4, 2019 at 12:15 pm #80023bruce.rockowParticipantThis reply has been marked as private.
- September 6, 2019 at 3:29 pm #80435bruce.rockowParticipant
Hi,
I am wondering if there has been any progress on my issue? I have provided all credentials to my site in my last post. I did mark my last 2 posts private and not sure if you received them.
Thank you kindly
- September 7, 2019 at 12:57 pm #80592WCFM ForumMember
Hi,
We have received your messages, but we not yet find out any way to restrict vendors from login after registration.
If it’s normal registration still it will work, but for membership subscription it’s not working.
Membership subscription process not completing!
So we are looking for a way out to bypass this.
Thank You
- September 11, 2019 at 4:22 pm #81192bruce.rockowParticipantThis reply has been marked as private.
- September 15, 2019 at 1:18 am #81722WCFM ForumMember
Hi,
We not yet got any reliable solution for this.
We are trying to “logout” users at thank you page!
Thank You
- September 23, 2019 at 5:12 pm #83197bruce.rockowParticipantThis reply has been marked as private.
- September 26, 2019 at 4:34 pm #83795WCFM ForumMember
Hi,
How much longer before we can get this solved?
– Well, this is not a problem or bug! You asked me for a solution to change WP default behavior.
It’s not that easy!
We were trying to finding out a way out for this.
Please add this code to your site, it will auto-logout users at Membership Thank you page –
add_action('template_redirect', function( $template ) { if( function_exists( 'wcfm_membership_registration_current_step' ) && function_exists( 'wcfm_is_vendor' ) ) { $current_step = wcfm_membership_registration_current_step(); if( $current_step && ( $current_step == 'thankyou' ) && !wcfm_is_vendor() ) { wp_clear_auth_cookie(); } } return $template; }, 1 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- September 27, 2019 at 7:06 am #83930bruce.rockowParticipant
Hi,
Thank You for your explanation regarding this being WP default behavior. That being the case I understand there not being an easy solution.
I added the code you suggested to my child theme functions.php file. Unfortunately I received a fatal error and my site would not come up. There seems to be a syntax error that I cannot seem figure out. Could you check the code and see if maybe there may be an error? I am not proficient in php.
Thanks again for your support. - September 30, 2019 at 11:03 am #84448WCFM ForumMember
Well, this code does not have any syntax error, I have tested this many times before send you – https://ibb.co/1q41XM4
When you are pasting this be sure single quotes (‘) are same as here.
If you are trying to add this code from wp-admin ->Theme editor then it will not save.
Better, add code using this plugin – https://wordpress.org/plugins/code-snippets/
Thank You
- October 1, 2019 at 4:44 pm #84655bruce.rockowParticipant
Hi,
I see what I did wrong. I copied your code from my email and did not realize that Gmail did not display it the same as what was in the support thread. My fault for not seeing the difference. You are very much correct. Your code works fine and now the user is automatically logged off during the Membership Registration process.
I do have one last question. Will this possibly be a part of any upcoming release? I am curious to know if this is something you are considering even though it is no fault of WCFM.Thank you again for your patience and understanding.
- AuthorPosts
- The topic ‘Auto login during vendor membership registration’ is closed to new replies.