how to add phone field to registration in prestashop

many store owners looking to add phone field so new customers can add phone number, unfortunately prestashop 1.7 dont have option to add phone field like for address form i created a module that help add phone field to prestashop, this module allow to add phone field in registration form, you can use same module as template to create other

easy way to create an array and check existing value in smarty template

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. This implies that PHP code is application logic, and is separated from the presentation. very useful in MVC architecture and used by many big cms and frameworks like Prestashop script. so to create an array you can declare it like that

to print