Merge branch 'main' of http://91.189.216.43:3000/jacek.pyziak/lulandia.pl
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user