Forums / Basic Configuration / Add previously purged shipping locations adds empty lines

Add previously purged shipping locations adds empty lines

Views: 2,897

Results 1 to 10 of 10
29 Apr 2024, 10:53 AM
#1
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Add previously purged shipping locations adds empty lines

About a decade ago I decided to ship national only.
I purged all countries but one manually via the admin.
Today I need to add some additional countries and get the problem, that there are also some empty lines added to choose.
How can I fix this?
Please see the attachement.

Attachment 20596

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

30 Apr 2024, 9:37 AM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: Add previously purged shipping locations adds empty lines

Shop Suey:

About a decade ago I decided to ship national only.
I purged all countries but one manually via the admin.
Today I need to add some additional countries and get the problem, that there are also some empty lines added to choose.
How can I fix this?
Please see the attachement.

Attachment 20596

In order to create these you will need to grab the SQL from the correct install version of Zen Cart or port them from another same version install.

~Melanie

30 Apr 2024, 9:56 AM
#3
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Add previously purged shipping locations adds empty lines

I could install a blank shop with the same zc version.
How can I port them?

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

30 Apr 2024, 10:00 AM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: Add previously purged shipping locations adds empty lines

Shop Suey:

I could install a blank Shop with the same zc version.
How can I port them?

You'll need to use a database tool like PHPmyAdmin to export the table, then drop it in to the other DB. BACKUP first =)

30 Apr 2024, 10:20 AM
#5
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Add previously purged shipping locations adds empty lines

Thank you for the hint.
There is a way with more control. I don't like to copy&paste tables between different shop and database versions.

  1. add via admin
  2. pickup the countries id from the table countries_name
  3. edit the countries id at the table countries

This seems to work so far.

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

30 Apr 2024, 12:21 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Add previously purged shipping locations adds empty lines

I purged all countries but one manually via the admin.

This is a better way:

https://docs.zen-cart.com/user/admin_pages/locations/countries/#disablingenabling-countries

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 Apr 2024, 12:24 PM
#7
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Add previously purged shipping locations adds empty lines

swguy:

I purged all countries but one manually via the admin.

This is a better way:

https://docs.zen-cart.com/user/admin_pages/locations/countries/#disablingenabling-countries

Good to know for the future!

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

17 May 2024, 6:19 AM
#8
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Add previously purged shipping locations adds empty lines

One problem which still occurs at the registration form are duplicate entries.
Please see the attachement.
Attachment 20618

When Is switch the backend language I see them doubled at the added language.
Can I just purge them via backend?

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

17 May 2024, 7:07 AM
#9
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Add previously purged shipping locations adds empty lines

What helps is to switch to the re-added language (English in my case), purge all these double entries e.g. "Niederlande" and "Netherlands", and re-add the language here again.
That looks very messed up :(
I can work-around it as described except the main language. I can't purge it because there are customers conected it.

There are some questions I have:

  1. how can I fix the problem with the first language (German)
  2. how can I fix this mess in general?

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

17 May 2024, 7:31 AM
#10
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Re: Add previously purged shipping locations adds empty lines

I think I got it.
I just purged the country names via the backend.
What was connected to customers I purged at the database.
Then re-creation via backend worked as expected.
And ist doesn't even show the initial problem with these blank lines.

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/