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 02-06-2007 05:19:10

mixer25
Member
From: Ireland
Registered: 04-02-2006
Posts: 601

deleting countries you don't want to deal with

Is there an easy way of deleteing 5 pages of countries when u only want to do UK?

Thanks

Offline

 

#2 02-06-2007 05:54:18

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

Re: deleting countries you don't want to deal with

Go to Kryptronic Hybrid X Core: Raw Database Admin
Then choose the 'SQL Statement: Submit a Raw SQL Statement'
Then enter: DELETE FROM ccp0_country WHERE id<>'United Kingdom'

This will delete every entry except the United Kingdom

Mike Simpson
Litemaster Systems
wwwdjshopper.net

Offline

 

#3 02-07-2007 13:50:03

Lisaweb
Member
From: CA
Registered: 04-21-2003
Posts: 417

Re: deleting countries you don't want to deal with

What would be the SQL statement to delete individual ones that you don't want?

Thanks!
Lisa

Offline

 

#4 02-07-2007 14:04:26

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: deleting countries you don't want to deal with

Code:

DELETE FROM ccp0_country WHERE id = 'country to remove'

Offline

 

#5 02-08-2007 10:58:20

Lisaweb
Member
From: CA
Registered: 04-21-2003
Posts: 417

Re: deleting countries you don't want to deal with

Thanks Dave! smile

Offline

 

#6 02-08-2007 16:26:39

wyattea
Member
Registered: 01-07-2006
Posts: 1650

Re: deleting countries you don't want to deal with

I assume this is for deleting countries that refer to the billing address?  What if you only ship within a specific country (e.g. canada) and you don't want them to put a shipping address out of canada?  Is it a sql statement or is it built into the admin panel?

James...

Offline

 

#7 02-09-2007 10:59:56

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19970
Website

Re: deleting countries you don't want to deal with

That's built into the management interface.  Go to:

ClickCartPro > Locations: States, Provinces and Countries > Manage Countries

Choose to update whatever country you want.  The two fields:

Display in Contact Forms
Display in Delivery Forms

Handle whether the country is shown in billing and shipping forms respectively.


Nick Hendler

Offline

 

#8 08-10-2007 12:49:42

rickmase
Member
From: Lebanon, PA
Registered: 07-03-2007
Posts: 80
Website

Re: deleting countries you don't want to deal with

Is there an easy way to set "Display in Contact Forms" and "Display in Delivery Forms" all to "No" so I can go back and just turn on the US?

Offline

 

#9 08-18-2007 11:42:42

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19970
Website

Re: deleting countries you don't want to deal with

Yes.  Access:

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

And choose to execute a Raw SQL Statement.  Execute these statements one at a time:

UPDATE ccp0_country SET usedel=0, usecon=0

UPDATE ccp0_stateprov SET usedel=0, usecon=0


Nick Hendler

Offline

 

#10 03-22-2008 19:06:33

wyattea
Member
Registered: 01-07-2006
Posts: 1650

Re: deleting countries you don't want to deal with

UPDATE ccp0_country SET usedel=0, usecon=0

- just to confirm, will this only apply to delivery?  the question from rickmase referred to BOTH contact forms and delivery forms.  I just want to change countries for DELIVERY all to NO.

Regards,

James...

Offline

 

#11 03-22-2008 20:32:00

wyattea
Member
Registered: 01-07-2006
Posts: 1650

Re: deleting countries you don't want to deal with

nevermind, i just exported the csv and changed all to 0 except Canada and imported it back in smile

James...

Offline

 

Board footer