Replace all diacritic chars from string in JavaScript

How to replace all diacritic chars from string in JavaScript:

Example of use:

Code for removing diacritic chars from string:  Continue reading Replace all diacritic chars from string in JavaScript

[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

[PrestaShop] Copy product translations from one lang to others

This entry shows how to easily copy product translations from one lang to others by PHP script.

Make a backup of the database before running this script! Continue reading [PrestaShop] Copy product translations from one lang to others

[PrestaShop][1.6] Add friendly URL to shop home page

When we turn on Friendly URL in PrestaShop, shop home page url looks like this:
http://example.com/en/
This entry shows trick how to change this url to:
http://example.com/en/shop Continue reading [PrestaShop][1.6] Add friendly URL to shop home page