Public Ticket #3178409

Registration form

Closed
Comments
1 Ticket
Artur started the conversation 4 years ago on November 30, 2022 at 10:49am

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?

2,762
KingsPlugins replied 4 years ago on November 30, 2022 at 11:01pm

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


2,762
KingsPlugins replied 4 years ago on December 1, 2022 at 6:52pm

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

2,762
KingsPlugins replied 4 years ago on December 7, 2022 at 5:41am

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);


Sign In