Okay
  Public Ticket #3178409
Registration form
Closed

Comments

  • Artur started the conversation

    Hello, I am using stockie theme wordpress, i create page Didmeninkai, and entered shortcode for registration form [b2bking_b2b_registration], but shows standart theme woocommerce form for registration as in my account how to fix this?

    Attached files:  Screenshot 2022-11-30 at 12.47.34.png
      Screenshot 2022-11-30 at 12.47.18.png

  •  2,218
    WebWizards replied

    Hi Artur,

    Thank you for purchasing our plugin,


    This is actually normal - what the shortcode does is that it takes the standard theme account form and removes 'B2C' options, showing only B2B options.


    Can you please let me know what you are trying to achieve? What would be the ideal outcome / ideal display that you would like?

    There are ways to change the shortcode or add parameters, so I would like to help achieve that.


    Kind regards,

    Stefan


  • Artur replied

    I want to display something like this, with form inputs as in screenshot

    Attached files:  Screenshot 2022-12-01 at 07.08.52.png
      Screenshot 2022-12-01 at 07.08.58.png
      Screenshot 2022-12-01 at 07.09.41.png
      Screenshot 2022-12-01 at 07.09.51.png

  •  2,218
    WebWizards replied

    Hi again,

    In the screenshots in our demo, the forms there are displayed through the SAVOY theme, so for that exact design you would need the Savoy theme ( https://themeforest.net/item/savoy-minimalist-ajax-woocommerce-theme/12537825 )




    I checked your website at https://savex.6m.lt/didmeninkams

    4601881359.png

    This part here is not normal because you do not have the B2BKing custom fields - it is an incompatibility with the Stockie theme.


    To fix this, some options:

    Option 1:

    Use the [b2bking_b2b_registration_only] shortcode on a page

    You will get a page like this, without the login part:

    9933488496.png

    But you will have the custom fields.

    The login is the same for all users, so B2B users can login anywhere on the site.


    Option 2:

    1) Go to WooCommerce -> Settings -> Accounts & Privacy and disable "When creating an account, send the new user a link to set their password".

    2) Add this PHP code snippet to your site:

    global $b2bking_public;
    add_action('woocommerce_register_form_end', array($b2bking_public,'b2bking_custom_registration_fields'));

    You will get the registration like this:

    4158380562.png



    Kind regards,

    Stefan

  • Artur replied

    And is it possible to translate validation errors with Loco translate?

  • Artur replied

    And is it possible at option 2 show register button at the bottom of custom registrationd fields?

  •  2,218
    WebWizards replied

    Do you mean the VAT number validation error, or which errors do you mean?

    If you mean VAT error, I don't believe we can translate these, because the error codes come directly from the Europa.eu server.



    To have the 'register' button at the bottom, please change the previously added PHP snippet to this snippet:

    global $b2bking_public;
    add_action('register_form', array($b2bking_public,'b2bking_custom_registration_fields'), 10);