You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
Go to System/Database/Raw Database Admin
Find core_country and core_stateprov export both and save.
Run
DELETE FROM core_country
then
DELETE FROM core_stateprov
Delete carefully all the countries/counties unrequired and save as a csv file in Excel
Go back to Go to System/Database/Raw Database Admin
Find core_country and core_stateprov import both again and import...
Worth saving a backup of the two files, in case things change!
Last edited by mixer25 (03-04-2014 19:00:58)
Offline
Good tip. Thanks. Another way to do it, if you only want to save a few, would be like:
DELETE FROM core_country WHERE id<>'United States' AND id<>'Mexico' AND id<>'Canada'
Offline
webmaster wrote:
Good tip. Thanks. Another way to do it, if you only want to save a few, would be like:
DELETE FROM core_country WHERE id<>'United States' AND id<>'Mexico' AND id<>'Canada'
So just by using this code it keeps the ones you WHERE id<> ?
Offline
webmaster wrote:
Right.
Thanks Nick,
That made my day. I so love this part. I did a full back up just in case.
Offline
I'm using version 8 and I only want to offer services to clients in the united states I try editing with core_country with no results any thoughts.
DELETE FROM core_country WHERE id<>'United States'
Offline
I know it worked like a champ for me Chaz.
Offline
Pages: 1