Public Ticket #3132450

It wont let me verify a customer

Closed
Comments
1 Ticket 1
pipin3000 started the conversation 4 years ago on September 25, 2022 at 8:03pm

I am trying to approve a customer into a b2b role but when i click verify customer, nothing seems to happen and it will keep asking me to verify the same customer.

2,762
KingsPlugins replied 4 years ago on September 25, 2022 at 9:03pm

Hi there,

Thank you for purchasing our plugin!


The way this should work is as follows:

Normally, you would go to the user profile page and scroll down to this section:

9826453855.png

You would click on the green 'Approve user' button. The browser will show a message to confirm:

3705812165.png

If you click OK, the page should refresh, and the user should now be already approved.



In your case, what happens after you click the Approve user button?


If you'd like, we can check the issue directly on your site and troubleshoot it directly for you. For that, we would need a backend login to your site or a staging clone site, so we can look into it.

Kind regards,

Stefan

1 Ticket 1
pipin3000 replied 4 years ago on September 25, 2022 at 9:58pm

Hi

In my case the page isnt refreshing when i click the button, 

I have created a stating website if you don't mind looking to fix the issue:

https://www.staging96.myconsumables.com/wp-admin/

Username: [email protected]

Password: dSV(qnrx3AOEfC0^iGGV9hOf

If you can use this form to create a new b2b user:

https://www.staging96.myconsumables.com/trade-account-form/

Then you will see that its impossible to approve the user.

Thanks for looking into this

Hussein


2,762
KingsPlugins replied 4 years ago on September 26, 2022 at 6:34am

Hi Hussein,

Thank you for the login details,


After testing, I find that the issue has to do with some kind of conflict with the plugin "Biller Business Invoice". 

The issue can be resolved by deactivating that plugin completely, or by deactivating the B2BKing 'Account Approved' email in WooCommerce -> Settings -> Email.


I believe their plugin has some kind of bug that is causing it to interfere with our plugin's email. I would recommend you contact the support team of the Biller plugin to look into this.


Below I will provide more technical details and you can feel free to share this message with the Biller team:

------------------------

I tried tracking the problem through the code to see if I can provide a fix or help understand the issue. When the 'Approve user' button is clicked, an ajax call is triggered. Within this call there is a function that sends the customer an email letting them know the account has been approved. This is where the conflict is.

For some reason, Biller Business Invoice interferes with this email, which results in an error and the ajax call fails.

I believe the issue can also be reproduced by simply calling 

do_action( 'b2bking_account_approved_finish', $email_address );

----------------------


Kind regards,

Stefan

Sign In