Jump to content

[Solved] Disable countries - is there a quick way


Recommended Posts

Hi, I'm a newbie here just finding my feet, I hope to set up 3 eStores and I'm playing around with PrestaShop.

I love to easy to navigate back office and was impressed how quickly I could get started.

However,

I only want to sell within the UK, so...,

I have removed all other currencies -- easy
I have removed all zones apart from Europe -- easy
I have removed all states -- easy

No I do know how to disable the countries

Shipping ---> Countries ----> Enable/Disable

However there are 244 countries in the list. I only want 1.
Do I have to tick 243 different countries (remember I want 3 eStores)
Does that leave me with 729 boxes to click, I don't think my mouse and I can take it. -----Long-winded

So question is, any pros know a quick way. Remember I'm a well meaning newbie, simple=good


Thank you in advance
Mike

Link to comment
Share on other sites

I would strongly suggest you disable the countries rather than delete them. Deleting stuff isn't a great idea ;-)

in phpmyadmin:

UPDATE ps_country SET active=0 WHERE iso_code NOT LIKE 'GB'



Not that the above assumes that your table prefix is "ps_". I'm sure you'll figure it out!

Remember to set your default country too

Paul

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 1 month later...
  • 1 month later...
  • 1 month later...
  • 1 month later...
  • 2 months later...
  • 4 months later...
  • 3 months later...
  • 1 month later...
  • 1 month later...

Hello everyone!!

Im having a problem maybe a blonde moment hehe..but is there something i have to plug in with this? Beside copy and paste?

#1054 - Unknown column '‘GB’' in 'where clause'

This is what is got when i plugged it in. Im trying to just use central america as the country of my choice.

Thanks

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
  • 1 month later...

Thanks Paul C!

 

If you want to ship to a handful countries (in this example Germany, Denmark, Sweden, Norway and Finland) you can do it like this, by first disabling all countries, and then enabling the ones you want to ship to:

 

First:

UPDATE ps_country SET active=0 WHERE 1

 

Then:

UPDATE ps_country SET active=1 WHERE (iso_code LIKE 'DK' OR iso_code LIKE 'DE' OR iso_code LIKE 'SE' OR iso_code LIKE 'NO' OR iso_code LIKE 'FI')

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

Thanks Paul C!

 

If you want to ship to a handful countries (in this example Germany, Denmark, Sweden, Norway and Finland) you can do it like this, by first disabling all countries, and then enabling the ones you want to ship to:

 

First:

UPDATE ps_country SET active=0 WHERE 1

 

Then:

UPDATE ps_country SET active=1 WHERE (iso_code LIKE 'DK' OR iso_code LIKE 'DE' OR iso_code LIKE 'SE' OR iso_code LIKE 'NO' OR iso_code LIKE 'FI')

 

Hi , I dit it like you write , but nothing happened . Why ? Thank you

Link to comment
Share on other sites

  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...