Skip to main content
All CollectionsB2B HandsfreeGeneral
How to replace the default registration form with B2B Handsfree's registration form
How to replace the default registration form with B2B Handsfree's registration form
Updated over a week ago

Important Note: Only follow this tutorial if your theme uses .liquid files in the templates/customers theme folder. If your theme uses .json files there, follow the tutorial for using B2B Handsfree's App Block.
​

If you only want customers with a VAT ID to be able to register an account, you can replace the default registration form with B2B Handsfree's registration form.

Please note: Customers can then only register an account through B2B Handsfree's registration form and they need to have a valid VAT ID. Registering a customer account during checkout is also not possible in this configuration.

To replace the default registration form at /account/register with B2B Handsfree's registration form, you need to make a small modification to your store's theme using the code editor.

Navigate to Online store -> Themes and then click Actions -> Edit code on the theme you want to modify. In the code editor, find the Templates section and click Add a new template.

In the dialog that appears, select customers/register from the dropdown and then enter backup for the name of the new template.

Then find the file page.b2bapp.liquid in the Templates section. Open it in the editor, select its entire contents and copy the contents to the clipboard. Then open the file customers/register.liquid and replace the entire contents of that file with the code from page.b2bapp.liquid which you just copied to your clipboard. Then save that file. The default registration page located at /account/register on the storefront should now have been replaced with B2B Handsfree's registration form.
​
If you ever need to go back to using the default registration form, simply replace all the code in customers/register.liquid with the contents of customers/register.backup.liquid.
​

Did this answer your question?