Skip to content

Latest commit

 

History

History
16 lines (16 loc) · 805 Bytes

2020-10-26-adds-config-to-make-phone-input-optional-for-contact-form.md

File metadata and controls

16 lines (16 loc) · 805 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Added config to make first name, last name and phone number input optional for contact form
issue: NEXT-8058
author: Claudio Bianco
author_email: info@claudio-bianco.de 
author_github: @claudiobianco
---

Core

  • Added BuildValidationEvent in ContactFormValidationFactory in order to change the validation definition via subscriber.
  • Added Shopware\Core\Migration\Migration1604499476AddDefaultSettingConfigValueForContactForm to preserve the default behaviour that first name, last name and phone number are required.

Administration

  • Added configuration for optional first name, last name and phone number in "Basic information -> Security and Privacy".

Storefront

  • Added check if first name, last name and and phone number input are required or optional in contact form.