Jump to content

ps_country_lang - language has wrong ID, how to change?


Recommended Posts

Hi,

 

www.ahb-france.com is the website;

 

It has two languages active: FR (id=2) and NL (id=3)

The french country list is in the database but has the wrong ID.

 

Can somebody help me to remove current id_lang 2 and change the current id_lang 4 to id_lang 2

 

post-1160396-0-55803700-1458723518_thumb.png

 

Thank you verry much!

 

Daan Sileghem

Link to comment
Share on other sites

Be carefull on this. The id_lang is added to several database tables. It is not a simple thing to change this. You should look for all tables, and in all tables change than the id. I did this once, years ago. But as I told, there are several dependencies, so you must localize in database all them, so in each table having the entry id_lang) and change all them accordingly (not only on table ps_lang).

Link to comment
Share on other sites

Edit directly on database. Mainly all related to products and customers (product, attributes, features, categories, carriers, carts, customers, employee, gender, group, homeslider, images, links, mails, metas, layered, manufacture, orders, profile, risk, scene, search_word, supplier_lang, tab_lang, tag, tax_lang and others with xxx_lang).

Link to comment
Share on other sites

Hi, thanks for pointing me in the right direction :) I should realy take the time to learn mysql

 

this did the job:

DELETE FROM `ps_country_lang` WHERE `id_lang`=2
SET `id_lang`=2 WHERE `id_lang`=4

Duplicated the database to test

 

Thank you

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