DjLanceDjLance MemberComments: 1 Received thanks: 0 Member since: December 2020 edited December 2020

I want to remove some default form fields from the registration page.
So far I did not find a correct solution to establish that.
In the backoffice you can enable / disable some settings regarding the form fields but that is not what I need.

I want to remove the "your address" fields to simplfy the registration process ...

I've looked into the possibility of "service decoration" but you need an interface for that.
RegistrationRoute.php is not an interface so that is not an option.

Anyone who can help with a raw roadmap how to accomplish this with Shopware 6?

  1. I have already created a plugin ...
  2. I've copied the twig-files and removed the fields
  3. removing them gives error (sounds logic). I need to change that function / class? Other options?

Thanks.

Answers

  • DjLanceDjLance MemberComments: 1 Received thanks: 0 Member since: December 2020

    No one who has experience in overriding / extending a route?

    vendor/shopware/platform/src/Core/Checkout/Customer/SalesChannel/RegisterRoute.php

    more in detail: 

    private function validateRegistrationData { ... }

     

Sign In or Register to comment.