Jump to content

Add a button to show all languages in the features (in admin)


Recommended Posts


In the PrestaShop administration panel, after entering a product and entering the "Information" tab, we can set the product name for different languages. Here there is a button "Show all languages".

I would like to add the same button to show all languages in "Catalog -> Features".

I know I need to add some changes to the PrestaShop files. The question is which file should I modify on FTP and what code should I add?

I will be grateful for your help. Thanks!┬á­čśä

//PrestaShop 1.6.x.x

Edited by Dominik.Presta (see edit history)
Link to comment
Share on other sites

I dealt with it.
You need to modify the file ./admin/themes/default/tempalte/controllers/feature_vale/helpers/form/form.tpl

Need to add here:
<button class = "btn btn-primary" onclick = "$ ('. langs-name'). find ('. translatable-field'). show (); return false;"> Show all languages </button>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...