We are using a custom form to register our B2B customers. We have set the metakeys as recommended in the B2BKing guide to customer forms:
| b2bking_account_approved | no |
| b2bking_b2buser | yes |
| b2bking_customergroup | 27822 (number of user group) |
The accounts are successfully being treated a B2B accounts and moving into the correct customer group. Once they appear on our website, we can see on our B2B King dashboard the user is in the “New Registrations - Approval Needed” portion of the page. But, when we go to the user’s account page they are already set as Active and the only option we are given is to deactivate/unapprove user. I checked the meta key in the backend and b2bking_account_approved is set as no, so that shouldn’t be happening. Because the account is never actually in the “pending approval” phase, the email that should be sent once the user is “approved” is not sending. The user also has access to the special pricing immediately, if they were to enter their account.
I did to test if the “pending approval” option was just generally working on our site. Using the built-in B2B King registration form shortcode for a sample user it was able to enter properly as “pending approval” and trigger expected emails. Checking the user’s metadata they were both set to b2bking_account_approved “no”. So I’m not sure what is different between the two.
I checked the common culprits, our account page only has the [woocommerce_my_account] shortcode and Separate My Account Page for B2B is set to disabled.