[PrestaShop] Add translations everywhere

My simple module allows to add translations everywhere where we have access to Tools class – for example in PrestaShop classes (directory: /classes/).

  1. Download module and install in PrestaShop.
  2. Open file: /modules/extratranslations/extratranslations.tpl and add labels in this way:
  3. Add yours labels wherever you want in this way:
  4. Translate yours labels in PrestaShop Admin Panel:
    Localization > Translations > Module Translations > Module extratranslations

 

Download: extratranslations.zip

Github: https://github.com/evox95/prestashop-extratranslations

[PrestaShop] How to override PrestaShop controller, class or main class of the module

In this entry I describe how to override PrestaShop controller, class or main class of the module.

 

How to override PrestaShop controller: /controllers/front/AddressController.php (this is just an example of the file)

Create file: /override/controllers/front/AddressController.php with content:

 

How to override PrestaShop class: /classes/Address.php (this is just an example of the file)

Create file: /override/classes/Address.php with content: Continue reading [PrestaShop] How to override PrestaShop controller, class or main class of the module