Scroll menu in PrestaShop 1.7 back-office

When you have many modules which adds buttons to the menu you are not able to see/click button from bottom of the menu because it’s not visible.

Very simple solution to allow scrolling the menu

Open file: /admin/themes/default/css/overrides.css and append this:

Open file: /admin/themes/default/js/admin-theme.js and append this:

 

 

 

FOSUserBundle with ajax authentication

What is required for json response from server?

/AppBundle/Handler/AuthenticationHandler.php

/AppBundle/Resources/config/services.yml

/app/config/security.yml

How to send login request?

You can use jquery for example:

 

 

 

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

Updating address bar with new URL without hash or reloading the page

Updating address bar with new URL without hash or reloading the page example:

 

You can then use window.onpopstate to detect the back/forward button navigation: