SpyrosT Posted March 4, 2010 Share Posted March 4, 2010 Hi all,Is there any way to restore the countries to their default.I made a mistake in the zones and all Country's zones are messed.Tnx Link to comment Share on other sites More sharing options...
rocky Posted March 4, 2010 Share Posted March 4, 2010 There is no option in the Back Office to do this. You'll have to do things the hard way by manually going to your database and emptying the appopriate tables and then open install/sql/db_settings_lite.sql and copy the INSERT INTO `PREFIX_country`section and any other appropriate sections and run the SQL queries on your database using phpMyAdmin to restore the default values. It looks like the relevant tables are `PREFIX_carrier_zone`, `PREFIX_country`, `PREFIX_country_lang`, `PREFIX_state`, `PREFIX_zone`. Remember to make a backup of the tables before emptying them in case something goes wrong! Link to comment Share on other sites More sharing options...
SpyrosT Posted March 4, 2010 Author Share Posted March 4, 2010 Hey rocky,Many thanks for your reply and instuctions.The mess is about the "zones" only, all other infos are ok.Will this work if I only empty the zones table and reinstall it?By the way it should e really helpful if there were some restoration functions in BObecause as you said some things need the "hard way". Link to comment Share on other sites More sharing options...
rocky Posted March 4, 2010 Share Posted March 4, 2010 In that case, it should only be the zone and carrier_zone tables you need to restore. They are linked by id_zone, so I think you should restore both, otherwise problems may occur with mislinked zones. Link to comment Share on other sites More sharing options...
SpyrosT Posted March 4, 2010 Author Share Posted March 4, 2010 Once again you you are right!!! TNX!!It is now fixed!!!Could you please also take a look here> http://www.prestashop.com/forums/viewthread/45170/Im sure you will find the solution;) 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