Kryptronic Software Support Forum

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.

#1 07-24-2007 02:16:47

picstart
Member
From: United Kingdom
Registered: 07-11-2006
Posts: 428

quick way to remove unwanted countries

I only ship my products to the UK  (would like to include Ireland, channel isles etc)   is there a quick way to remove all unwanted countries, states etc without having to remove them one at a time manually


"It may be my worst nightmare at present..... but soon it will be my dream"

Offline

 

#2 07-24-2007 04:36:23

qmstores
Member
From: United Kingdom
Registered: 07-19-2005
Posts: 354
Website

Re: quick way to remove unwanted countries

You could remove them all and then add back the small number you do need, but you'd have to make sure you added them back exactly.

Offline

 

#3 07-24-2007 05:37:01

picstart
Member
From: United Kingdom
Registered: 07-11-2006
Posts: 428

Re: quick way to remove unwanted countries

sounds risky that one,

are they stored in a file that can be downloaded as a csv edited then put back?


"It may be my worst nightmare at present..... but soon it will be my dream"

Offline

 

#4 07-24-2007 06:00:13

qmstores
Member
From: United Kingdom
Registered: 07-19-2005
Posts: 354
Website

Re: quick way to remove unwanted countries

If you go to Raw Database Admin you can take a copy of the current contents by doing an 'Export' and then downloading the file.

Then you could edit this file and remove all the ones you don't want, then empty the databaes table, then import the edited file.

Importing does not, by itself, empty the destination table first which is why you need to empty it by hand.

Offline

 

#5 07-24-2007 06:40:06

picstart
Member
From: United Kingdom
Registered: 07-11-2006
Posts: 428

Re: quick way to remove unwanted countries

Thanks qmstores ,

will i have to empty the database file one at a time , if so i might as well just delete the ones i dont require. or does anyone know if there is an sql statement i could run.  ?


"It may be my worst nightmare at present..... but soon it will be my dream"

Offline

 

#6 07-24-2007 06:52:16

Litemaster
Member
From: Plymouth, Devon, UK
Registered: 12-03-2005
Posts: 147
Website

Re: quick way to remove unwanted countries

Access: Kryptronic Hybrid X Core > Database: Connections, Backups and Raw Admin > Raw Database Admin

Then choose the 'SQL Statement: Submit a Raw SQL Statement' function and execute the appropriate statement for the database file you need to clear.

For the international version run the statement: DELETE FROM ccp0_stateprov this will delete all entry's in the stateprov database.




Mike Simpson
wwwdjshopper.net

Offline

 

#7 07-24-2007 07:33:03

picstart
Member
From: United Kingdom
Registered: 07-11-2006
Posts: 428

Re: quick way to remove unwanted countries

thanks mike , its the uk version so i guess all that will be diferent is gbu_0 so will have ago at that now.

thanks


"It may be my worst nightmare at present..... but soon it will be my dream"

Offline

 

#8 07-24-2007 10:13:45

qmstores
Member
From: United Kingdom
Registered: 07-19-2005
Posts: 354
Website

Re: quick way to remove unwanted countries

gbu0_...

For the countries and stateprov tables.

Last edited by qmstores (07-24-2007 10:14:30)

Offline

 

Board footer