Remove commented-out code for comment and birthday fields in CustomerFormatter
This commit is contained in:
@@ -119,10 +119,11 @@ class CustomerFormatterCore implements FormFormatterInterface
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
->setRequired(true)
|
->setRequired(true)
|
||||||
->addAvailableValue(
|
// ->addAvailableValue(
|
||||||
'comment',
|
// 'comment',
|
||||||
$this->translator->trans('Only letters and the dot (.) character, followed by a space, are allowed.', [], 'Shop.Forms.Help')
|
// $this->translator->trans('Only letters and the dot (.) character, followed by a space, are allowed.', [], 'Shop.Forms.Help')
|
||||||
);
|
// )
|
||||||
|
;
|
||||||
|
|
||||||
$format['lastname'] = (new FormField())
|
$format['lastname'] = (new FormField())
|
||||||
->setName('lastname')
|
->setName('lastname')
|
||||||
@@ -134,10 +135,11 @@ class CustomerFormatterCore implements FormFormatterInterface
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
->setRequired(true)
|
->setRequired(true)
|
||||||
->addAvailableValue(
|
// ->addAvailableValue(
|
||||||
'comment',
|
// 'comment',
|
||||||
$this->translator->trans('Only letters and the dot (.) character, followed by a space, are allowed.', [], 'Shop.Forms.Help')
|
// $this->translator->trans('Only letters and the dot (.) character, followed by a space, are allowed.', [], 'Shop.Forms.Help')
|
||||||
);
|
// )
|
||||||
|
;
|
||||||
|
|
||||||
if (Configuration::get('PS_B2B_ENABLE')) {
|
if (Configuration::get('PS_B2B_ENABLE')) {
|
||||||
$format['company'] = (new FormField())
|
$format['company'] = (new FormField())
|
||||||
@@ -198,23 +200,23 @@ class CustomerFormatterCore implements FormFormatterInterface
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->ask_for_birthdate) {
|
// if ($this->ask_for_birthdate) {
|
||||||
$format['birthday'] = (new FormField())
|
// $format['birthday'] = (new FormField())
|
||||||
->setName('birthday')
|
// ->setName('birthday')
|
||||||
->setType('text')
|
// ->setType('text')
|
||||||
->setLabel(
|
// ->setLabel(
|
||||||
$this->translator->trans(
|
// $this->translator->trans(
|
||||||
'Birthdate',
|
// 'Birthdate',
|
||||||
[],
|
// [],
|
||||||
'Shop.Forms.Labels'
|
// 'Shop.Forms.Labels'
|
||||||
)
|
// )
|
||||||
)
|
// )
|
||||||
->addAvailableValue('placeholder', Tools::getDateFormat())
|
// ->addAvailableValue('placeholder', Tools::getDateFormat())
|
||||||
->addAvailableValue(
|
// ->addAvailableValue(
|
||||||
'comment',
|
// 'comment',
|
||||||
$this->translator->trans('(E.g.: %date_format%)', ['%date_format%' => Tools::formatDateStr('31 May 1970')], 'Shop.Forms.Help')
|
// $this->translator->trans('(E.g.: %date_format%)', ['%date_format%' => Tools::formatDateStr('31 May 1970')], 'Shop.Forms.Help')
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
|
|
||||||
if ($this->ask_for_partner_optin) {
|
if ($this->ask_for_partner_optin) {
|
||||||
$format['optin'] = (new FormField())
|
$format['optin'] = (new FormField())
|
||||||
|
|||||||
Reference in New Issue
Block a user