Support » Plugin: Svea Checkout for WooCommerce » Only show Sweden in checkout

  • Resolved fdanell

    (@fdanell)


    Hi,
    I’ve chosen:
    Country Availability = Specific Countries
    and
    Specific Countries = Sweden

    At checkout, the customers still have to dig thru the “Country” (“Land”) list to find “Sweden” (The list also shows all unavailable countries)

    Can I somehow make Sweden to be pre-chosen in this list?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author The Generation

    (@thegeneration)

    Hi,

    This seems to be an issue related to your WooCommerce settings and not specifically our checkout module.

    If I understand your question correctly, I think you can find your answer in this thread:

    https://wordpress.org/support/topic/predefined-country-in-cart-and-checkout-page/

    Best regards.

    Thread Starter fdanell

    (@fdanell)

    That would narrow the countries down on all our checkouts, not just Svea checkout. We use Svea specifically for Swedish customers when the Swedish language is chosen.

    I thought that “Country availability” and “Specific Countries” Was meant to narrow the checkout down to a Specific country so it wouldn’t be cluttered with unused countries.

    Plugin Author The Generation

    (@thegeneration)

    Hi again,

    When selecting “Specific countries” in the settings, these are the only countries that show up in the select-box on our checkout-page. We have updated the settings in our demo-environment: https://sco-demo.tgen.se/

    Where you can see that you only can select some countries. If you only select one country, the select-box should disappear and it should be predefined.

    Could you send us a ticket at support@thegeneration.se with your store URL?

    Thread Starter fdanell

    (@fdanell)

    I’ll send you a ticket as this is not the behavior we’re getting at our checkout. Thanks.

    Plugin Author The Generation

    (@thegeneration)

    This issue has now been resolved. The problem description and solution can be found below for future reference.

    “WooCommerce Multilingual” is a plugin that adds multilingual functionality to WooCommerce together with WPML. It added an option for each payment gateway to restrict the gateway to a specific country. This is not a native option in WooCommerce, and is made to disable a specific gateway in the standard checkout if the country conditions are not met.

    The solution for this issue is to add custom code which hooks into the filter woocommerce_countries and check if the current page contains the shortcode svea_checkout. If so – the countries that should be enabled can be returned from the filter callback.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Only show Sweden in checkout’ is closed to new replies.