MultivendorX
Tagged: approve vendor, Membership
-
AuthorPosts
-
-
August 22, 2023 at 12:59 AM #195342PicflickParticipant
Hi,
Will you please test and confirm if the manual approval of vendors is working, it is currently not working with my website.
I have tested out the sign-up journey of a vendor to purchase a recurring subscription package. There was no email sent to admin to approve their account, the vendor was approved automatically, and they were able to navigate to their dashboard and received confirmation emails.
Please assist -
August 22, 2023 at 2:30 PM #195374Sangita Support SquadKeymaster
@Picflick If vendors are paying with MVX paypal marketplace or MVX stripe marketplace, the payments are getting paid in real time i.e. they are becoming vendors without any admin’s approval.
But you may use this code to make vendor pending https://multivendorx.com/docs/code-snippet/make-vendor-pending-for-automatic-payment/ -
August 25, 2023 at 9:13 AM #195488PicflickParticipant
Thanks. But this did not work.
See, here I have added the code to functions.php – https://ibb.co/fDcyBkK
And I did a test… the vendor was set as approved: https://ibb.co/ySbQbnX -
August 25, 2023 at 7:37 PM #195533Sangita Support SquadKeymaster
Add the below code in the functions.php file of you current active theme and check again –
add_action('mvx_vendor_purchased_subscription', 'set_role_pending'); function set_role_pending($user_id) { $user = new WP_User($user_id); $user->set_role('dc_pending_vendor'); }
Copy -
August 28, 2023 at 1:59 AM #195580PicflickParticipant
Thank you, this did set the vendor status to ‘pending vendor’ when they applied.
HOWEVER – It did not send through the ‘pending vendor’ email to the vendor and it did not send the ‘admin pending vendor’ to the administrators. These need to work!
I then proceeded to view the ‘work board’ and selected ‘approve’ button. This did not send the ‘approved email’ to the vendor.
Some other emails are being sent through (e.g. invoice, account creation, etc.) so it is not an email sending issue. I also checked spam.
Please can you address this email communication issue. -
August 28, 2023 at 5:25 PM #195591Sangita Support SquadKeymaster
Our team is looking into this.
In the meantime it would be really great if you can give us 5/5 review here: https://wordpress.org/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post
This would motivate the team further to do their job more efficiently. -
August 30, 2023 at 9:01 PM #195685PicflickParticipant
I will most gladly provide a positive review, however there are 5 outstanding support queries that should have been critical to the basic functionality of the website and your plugin. Without these being fixed I will not be able to run my business. Once they are all resolved I will provide a review. I should be receiving a discount for this lengthy period of waiting for this to be fixed.
-
August 31, 2023 at 10:30 AM #195698Sangita Support SquadKeymaster
Not an issue @Picflick
-
September 6, 2023 at 10:52 AM #195926PicflickParticipant
Hi, it has been more than a week after I posted the last comment and you have not provided a solution for this issue?! Please can you urgently respond, I am unable to use your plugin and expect a discount on renewal
-
September 6, 2023 at 6:19 PM #195963Sangita Support SquadKeymaster
You can add the below code in the functions.php file of your current active theme and check the flow –
add_action('mvx_vendor_purchased_subscription', 'set_role_pending'); function set_role_pending($user_id){ $user = new WP_User($user_id); $user->set_role('dc_pending_vendor'); $user_pass = $user->user_pass; $email = WC()->mailer()->emails['WC_Email_Vendor_New_Account']; $email->trigger($user_id, $user_pass, false); }
Copy -
September 7, 2023 at 10:59 AM #195978PicflickParticipant
Thanks.
And the ‘Admin New Vendor Account’? email. This was not received by Admins, only the ‘new order’.
This is the email admins are expecting: /dc-product-vendor/emails/admin-new-vendor-account.php
-
September 7, 2023 at 11:43 AM #195981Sangita Support SquadKeymaster
@Picflick We have some core fixes to add in our core plugin for the upcoming update of MultiVendorX and currently our team is working on those fixes.
Once we are done with the core fixes our team will help you with the code for custom flow that you are trying to implement on your end. Kindly provide us some time. -
September 18, 2023 at 11:05 PM #196393PicflickParticipant
Hi. Its been 2 weeks. Please advise an update
-
September 19, 2023 at 4:35 PM #196422Sangita Support SquadKeymaster
Add the below code in the functions.php file of your current active theme and check –
add_action('mvx_vendor_purchased_subscription', 'set_role_pending'); function set_role_pending($user_id) { $user = new WP_User($user_id); $user->set_role('dc_pending_vendor'); $user_pass = $user->user_pass; $email = WC()->mailer()->emails['WC_Email_Vendor_New_Account']; $email->trigger($user_id, $user_pass, false); $email_admin = WC()->mailer()->emails['WC_Email_Admin_New_Vendor_Account']; $email_admin->trigger($user_id); }
Copy -
October 24, 2023 at 5:19 PM #197458PicflickParticipant
Hi,
This code worked. However:
1. It sent the WC_Email_Vendor_New_Account email twice to the user
2. The WC_Email_Admin_New_Vendor_Account email was sent, but when I click the link ‘You can access vendor application here: <link>’ it says I am not allowed to access the page (see https://ibb.co/1fnD5g8).
3. When I navigate to the back-end and click ‘approve’, it does not send the Approved email to the vendor
4. When the approved vendor logs in to the dashboard it did not present them with setting up the wizard?! How do I get them to navigate there once they have been notified to approve.
Please can you urgently respond!
Thanks, Greg -
October 25, 2023 at 11:31 AM #197478Sangita Support SquadKeymaster
@Picflick Our replies are inline with your queries –
1. It sent the WC_Email_Vendor_New_Account email twice to the user
>>We have checked the flow with the above shared code and the user is receiving mail for creating an account on the site from WooCommerce and a new vendor account mail from MultiVendorX. Kindly check https://prnt.sc/8il8dGF_79yn. Install plugin like EMail Log and see whether it is registering the email twice there too?2. The WC_Email_Admin_New_Vendor_Account email was sent, but when I click the link ‘You can access vendor application here: ’ it says I am not allowed to access the page (see https://ibb.co/1fnD5g8).
>>Our team is looking into this. Kindly give us a little time.3. When I navigate to the back-end and click ‘approve’, it does not send the Approved email to the vendor
>>The approved email is also sent to the vendor correctly after approval from the admin (https://prnt.sc/aWnvAGuIx7mE). Again Install plugin like E-Mail Log and see whether it is registering the email twice there too?4. When the approved vendor logs in to the dashboard it did not present them with setting up the wizard?! How do I get them to navigate there once they have been notified to approve.
>>After approval from the admin when the vendor logs in to the vendor dashboard the store setup wizard appears correctly https://prnt.sc/i4f53SBtJoA2. Make sure that the vendor is logged in again after being a vendor. -
October 27, 2023 at 11:27 AM #197562PicflickParticipant
#1) Well you shared with me this code that forces the new_vendor_email and admin_new_vendor_email to be sent? Maybe you have fixed it in your core, so now it is duplicating?
add_action(‘mvx_vendor_purchased_subscription’, ‘set_role_pending’);
function set_role_pending($user_id){
$user = new WP_User($user_id);
$user->set_role(‘dc_pending_vendor’);
$user_pass = $user->user_pass;
$email = WC()->mailer()->emails[‘WC_Email_Vendor_New_Account’];
$email->trigger($user_id, $user_pass, false);
$email_admin = WC()->mailer()->emails[‘WC_Email_Admin_New_Vendor_Account’];
$email_admin->trigger($user_id);
}#3) It is not working. I need code (like the above) to force the email to send. Please share code
#4) So the vendor is still logged in after they check-out and close the webpage (It is the same session), which prevents them from going to the wizard. So the user needs to be logged out after they check-out and are waiting to be approved. If they are logged in and navigate to the dashboard then the wizard will not appear. If they log out, get approved, and then log in again, then the wizard will appear. So you need to help me with a solution to this
-
October 27, 2023 at 11:50 AM #197563PicflickParticipant
Hi, see image of failed email send – https://ibb.co/vDHz6s7.
Please advise
-
October 27, 2023 at 3:42 PM #197566Sangita Support SquadKeymaster
@Picflick Our replies are inline with your queries –
#1) Well you shared with me this code that forces the new_vendor_email and admin_new_vendor_email to be sent? Maybe you have fixed it in your core, so now it is duplicating?
#3) It is not working. I need code (like the above) to force the email to send. Please share code
>>We have added the same code we have shared with you earlier and no mail is triggered twice and also when the admin is approving the vendor he is receiving the approval mail.
Kindly check the video here – https://www.awesomescreenshot.com/video/21956961?key=218317e2a91fe1c0ce9811d3789094d6.P.S – We are using the current versions of MultiVendorX and MultiVendorX Pro on our end.
#4) So the vendor is still logged in after they check-out and close the webpage (It is the same session), which prevents them from going to the wizard. So the user needs to be logged out after they check-out and are waiting to be approved. If they are logged in and navigate to the dashboard then the wizard will not appear. If they log out, get approved, and then log in again, then the wizard will appear. So you need to help me with a solution to this
>> As per our flow, if a pending vendor is logged into the dashboard when their approval is granted, they will gain immediate access to their vendor dashboard.If a vendor logs out and then logs back in, they will be directed to the store setup wizard.
If you want to change how this works, you’ll need to add custom code on your own. Please keep in mind that the specific changes you’re looking for would involve a significant amount of custom code, which is beyond what our team can provide. We can help with smaller customizations that only require a few lines of code.
But not to worry if you want you can hire our service team (https://multivendorx.com/custom-development/) and they will help you to implement your custom flow.
Hope you understand.
-
November 2, 2023 at 9:27 AM #203408PicflickParticipantThis reply has been marked as private.
-
November 2, 2023 at 6:23 PM #203545Sangita Support SquadKeymaster
@Picflick Our replies are inline with your queries –
1st question) Emails are not being sent (https://ibb.co/BCr25SM). Do you know why?
>>We have shared earlier that all the emails are triggered accordingly after adding the code on our end.
Now as you are facing issues with the emails, kindly create a staging site that should be an exact replica of your live site and share the access with us so that we can check the issue on your end.
2nd question) Look at the flow here https://www.loom.com/share/1bf335d2f86241fca59e318618218b14?sid=c9b862d7-ecc6-4b86-9efa-1c7caa92b9e8 The vendor is logged in and waiting for their subscription to be approved (on the waiting approval dashboard page). Once the admin approves their subscription the vendor will refresh their browser or navigate to it and it does not prompt them to do set up wizard
>> As mentioned in our earlier reply, if the vendor is logged in already after admin’s approval they will not get redirected to the store setup wizard instead they will get access to the vendor dashboard.
The store setup redirection will work only once after first log in from the vendors.
This is the default flow. -
November 3, 2023 at 1:07 AM #203549PicflickParticipant
Exactly! I ALWAYS want the vendor to be redirected to set-up wizard no matter if they were logged in or not. It is the vendors first time accessing the dashboard after being approved, so regardless they need to do the wizard. I need you to help me achieve this
This should be standard user experience and if not is considered a bug
-
November 3, 2023 at 12:07 PM #203554Sangita Support SquadKeymaster
As the default flow doesn’t support this, hence in order to add the same flow on your end, you’ll need to add custom code on your own.
Please keep in mind that the specific changes you’re looking for would involve a significant amount of custom code, which is beyond what our team can provide.
-
November 11, 2023 at 7:10 PM #204246PicflickParticipant
This is illogical. When a vendor is waiting to be approved, they will close the browser but still stay logged in because of cookies. When they get approved, how do they navigate to the wizard
-
November 13, 2023 at 1:34 PM #204277Sangita Support SquadKeymaster
Hi @Picflick, I have shared this with the dev team. They will look into this and take further decisions regarding the same.
You can keep track of this from here https://github.com/multivendorx/MultiVendorX/issues/585. -
December 24, 2023 at 7:52 PM #215427PicflickParticipant
Hi there. Has this been resolved?
-
December 26, 2023 at 1:01 PM #215456Sangita Support SquadKeymaster
We have already replied over here https://multivendorx.com/support-forum/topic/check-out-page-change/#post-215429. Kindly check.
-
-
AuthorPosts
The topic ‘Manual approval of vendor not working’ is closed to new replies.