alpenweide Posted March 23, 2016 Share Posted March 23, 2016 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 Thank you verry much! Daan Sileghem Link to comment Share on other sites More sharing options...
alpenweide Posted March 24, 2016 Author Share Posted March 24, 2016 Nobody? Link to comment Share on other sites More sharing options...
selectshop.at Posted March 25, 2016 Share Posted March 25, 2016 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 More sharing options...
alpenweide Posted March 25, 2016 Author Share Posted March 25, 2016 Hi, Thanks for your reply In al the other tables the lang_id is correct, its just the ps_country_lang that isnt correct.. So searching for commands to just edit this table.. Link to comment Share on other sites More sharing options...
selectshop.at Posted March 25, 2016 Share Posted March 25, 2016 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 More sharing options...
alpenweide Posted March 25, 2016 Author Share Posted March 25, 2016 (edited) Yes, that is the plan. But I was wondering if somebody could help with a command to edit all lines at once.. delete Id_lang 2 in this table and renaming id_lang 4 tot id_lang 2 Piece by piece will take forever to edit Edited March 25, 2016 by alpenweide (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted March 25, 2016 Share Posted March 25, 2016 Yes should work if you use something like this: SET `id_lang`=2 WHERE `id_lang`=1 In this case you are substituting id_lang 1 to id_lang 2 Link to comment Share on other sites More sharing options...
alpenweide Posted March 29, 2016 Author Share Posted March 29, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now