Public Ticket #3604816

Approval buttons doesn't work

Closed
Comments
2,762
KingsPlugins replied 3 years ago on March 12, 2024 at 5:25pm

Hi Alex,

Thank you for purchasing our plugin,


I am not able to reproduce that issue on our local test site. I believe there must be some kind of conflict, or an error on your site that is preventing the functions from running when those buttons are clicked.

I would suggest to check the console and / or a debug log to see if that shows you which specific errors are occurring.


We can also investigate the issue directly on your site if you would like. For that, we would need a backend login to the site, or to a staging clone site we can work on,


Kind regards,

Stefan

2,762
KingsPlugins replied 3 years ago on March 14, 2024 at 2:25pm

Hi Alex,

Thank you for the access details. I looked it on your site now.


What happens is that on some sites, Elementor creates a 2nd my account area, hidden besides the regular one. If we were to unhide it, the page actually looks like this:

7907018112.png


This creates issues with the scripts of B2BKing, as the scripts such as those that handle clicking the buttons are actually being applied to the hidden buttons, not the visible ones.

It can lead to various other strange behaviours on the My Account page.


In any case, I have resolved this by adding a code snippet to your site:

https://thyledis.fr/wp-admin/admin.php?page=edit-snippet&id=5

We have used this method before to resolve similar issues, so I think that should work well,


If you see any further issues or anything I can help with, please let me know,


Kind regards,

Stefan

1
2,762
KingsPlugins replied 3 years ago on March 19, 2024 at 12:49am

It is possible to do that:


- First, you would have to create a regular user account (via the Users -> Add New page).

- Then, you can go to B2BKing -> Tools -> User Editor and use the tool here:

1916221657.png

Here you can enter the user ID of the user you just created, and the user ID of the parent user. This tool will connect them and will set the former as a subaccount of the latter.


To get the user ID of a user, please see: https://rudrastyh.com/wordpress/get-user-id.html

Sign In