• Resolved darekion

    (@darekion)


    Alright, so when I first created my shop, I would only sell to Denmark, so I wanted to remove other countries, however, I do not recall how I did this, I have in the woocommerce settings -> general in the field “Selling location(s)” chosen “sell to all countries”, and I have searched all of my “display: none” css editing, however, I cannot find how other countries have been removed from the country selector in my checkout form. I have since I removed them, updated both my theme and woocommerce, and I have checked all files in my child theme, so I am guessing there is some setting somewhere that I cannot find, or maybe I removed all other countries from some wordpress file ? I am really lost right now.
    Any ideas on what I have done or how I could fix this ?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    Hi @darekion,

    That’s a curious case! The only place where WooCommerce filters out billing countries is the Selling location(s) setting you already mentioned. If it’s set to All countries but you’re only seeing Denmark at the checkout, the change must be coming from a different plugin or a theme.

    The places I’d check in particular are:
    functions.php file in child theme code,
    woocommerce/checkout/form-billing.php both in parent and child themes (in case there are some changes directly in checkout page template)
    – all custom coding plugins (Code Snippets, My Custom Functions, etc)
    – other plugins that change WooCommerce checkout functions.

    If all else fails, you can try deactivating themes and plugins one by one, possibly on a staging site copy, until all countries start loading again.

    Cheers!

    madeincosmos

    (@madeincosmos)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’ll mark this thread as resolved now. If you have some more questions, feel free to start a new one.

    Cheers!

    Thread Starter darekion

    (@darekion)

    I have not yet solved my problem, it was just on hold.

    Removing all custom code from my child theme made no difference.

    I tried deactivating the plugins one by one, and first when ALL other plugins than woocommerce is disabled, then the countries defined in selling locations appear in the checkout form.

    I tried deleting woocommerce and installing it again, also no change. I however didn’t remove all data, so when I installed it again everything was the same, so it makes sense that it made no difference.

    Any other idea than removing woocommerce + data?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Billing/shipping countries removed’ is closed to new replies.