Okay
  Public Ticket #3132450
It wont let me verify a customer
Closed

Comments

  •  1
    pipin3000 started the conversation

    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.

  •  1
    pipin3000 replied

    Also, I have noticed I cant update the users b2b group either... 

  •  1,904
    WebWizards replied

    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
    pipin3000 replied

    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


  •  1,904
    WebWizards replied

    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

  •  1
    pipin3000 replied

    Thank you so much for the help, I will go over the solutions to verify 😊