This commit is contained in:
2025-04-08 09:22:06 +02:00
228 changed files with 57634 additions and 28 deletions

View File

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