Jump to content

Set PS_LANG_DEFAULT in code


prestatent

Recommended Posts

Prestashop 1.6.0.8

 

Hi

 

How do I set the PS_LANG_DEFAULT value in code?

 

Reason is that I am running a modified version of the AdminImportController.php script on the command line. This worked ok in version 1.5 but in 1.6 there seems to be a problem.

 

I have six languages. Whatever language is passed on the command line then updates all other languages for the same product. For example if I want to load only English for Product A, then the description and short description for all languages are updated to English.

 

Any help greatly appreciated.

 

Thanks.

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...