• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 18.10.23, 09:17
  • Opened by: Nicolas Bindels
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #24988 - When removing birthdate from the checkout, a warning appears

When you disable asking the birthdate of the client in the checkout form, and error starts showing up:

Warning: Undefined array key “name” in /var/www/html/var/cache/dev/smarty/compile/alysum/77/f2/49/77f24993e363501c14562cd4daa385062e5aec48_2.file.customer-form.tpl.php on line 52
Warning: Undefined array key “type” in /var/www/html/var/cache/dev/smarty/compile/alysum/53/0b/45/530b457a73d3245f2cea1feadb3ee45ec9525017_2.file.customer-form.tpl.php on line 58

PrestaShop v8.1.2

Please advise on how to fix this without hiding PHP warnings.


Fred 18 Oct 2023, 11:49

Hi, Nicolas.
Can you please give me a link to a page where I can see the issue?

Nicolas Bindels 18 Oct 2023, 15:33

You need to put an item in your cart and go to the order page (https://inwood.be/commande)

Fred 18 Oct 2023, 20:07

Yes, I see the issue.
Please fill out all necessary fields in your profile https://support.promokit.eu/myprofile to access to your Back-office and FTP Server to let me try to fix it

Nicolas Bindels 28 Oct 2023, 13:58

Shall I edit checkout TPL?

Fred 28 Oct 2023, 17:53

Yes, to fix the issue we have to edit tpl file

Nicolas Bindels 29 Oct 2023, 09:34

I’ll do it, just tell me which one :)

Nicolas Bindels 29 Oct 2023, 10:44

Ok, I fixed it, I changed themes/alysum/templates/customer/_partials/customer-form.tpl from:

{$formFields.birthday.icon = 'info'}
{$formFields.firstname.icon = 'account'}
{$formFields.lastname.icon = 'account'}


{if isset($formFields.birthday)}
    {$formFields.birthday.icon = 'info'}
{if isset($formFields.firstname)}
    {$formFields.firstname.icon = 'account'}
{if isset($formFields.lastname)}
    {$formFields.lastname.icon = 'account'}

that seems to fix it :)

Fred 29 Oct 2023, 19:24

I wanted to send you fixed file, but you were first.
Ok, I’m glad you fix it. Sorry for the late reply