Okay
  Public Ticket #3673462
How to display errors in B2BKing Registration form?
Closed

Comments

  • VICTORIA started the conversation

    We'd like to include an error messages when users are trying to log in/register. -For example - 

    Please register for a trade account (if customer tries to log in without having an approved trade account)

    It seems you already have a trade account with us, please log in (if a customer tries to register but already has an account)

    Log in details invalid (if customer details incorrect)



  •  2,114
    WebWizards replied

    Hello Victoria,

    Thank you for purchasing our plugin,


    I looked over your site and I understand it's a mixed B2C + B2B site.


    -> I see that the page you created here https://www.ceraudo.com/trade/ does not show messages like "an account is already registered", which other pages such as /my-account/ do show:

    5698329261.png


    B2BKing does add those kinds of messages. I believe the issue here is that that page probably does not have an area that displays woocommerce notifications / notices. 

    We would need to add a WooCommerce notices area to the page. Depending on how the page is built and what builder it uses, you may be able to edit it and add some kind of "woocommerce notices" widget - I'd suggest to check if you can find something like that.

    If not, we can also just add a code snippet to fix it. If so, I believe we can set that up for you - it would be very helpful if you were able to share a temporary backend access so we can do this.


    Or are you asking about any other page or area?


    -> Besides that, what you can do to make things clearer for users it to use B2BKing's content shortcode: https://woocommerce-b2b-plugin.com/docs/shortcode-to-restrict-content-to-b2b-b2c-user-groups-specific-users/

    With this shortcode, you can have different messages and content for different user categories. For example:

    [b2bking_content show_to=loggedout]Please sign up for an account[/b2bking_content]

    [b2bking_content show_to=b2c]Please apply for a B2B trade account below:[/b2bking_content]

    [b2bking_content show_to=b2b]Exclusive B2B content here...[/b2bking_content]

    This can be added to any page or content area.


    Kind regards,

    Stefan