Главная / Overrides

Category: Overrides

Global variable in smarty to define the phone

In some cases, it is important to know that the person comes from the phone. This will allow the user to download certain content without unnecessary information, which will increase the speed of page loading and increase the level of user involvement. In PrestaShop 1.7 there is no global variable that defines a mobile phone, […]

How to make prices without a point

Everyone knows that in PrestaShop prices are displayed by default-two decimal places. And what if you want a numeric value without points? This problem can be solved in several ways, one of which we will consider in this article. Чтобы не изменять ядро нашей CMS, воспользуемся функцией «Overrides». Перейдём в папку: /override/classes/ To override the […]

User authorization via phone

To authorize by phone number you need to add the appropriate field. How this can be done is described in the previous article. By default, Presta Shop users are authorized by E-mail. Often it is not convenient, and then there is a need for identification by phone number. To do this type of work we […]

Add a phone for the user

In the standard Prestashop build, the user does not have a “Phone” field, which can not be evaluated positively, because in some cases it is simply necessary. In this article we will explain how to add this field to the main information without affecting the PrestaShop kernel. For a start we need predetermine classes and […]