• Resolved mo7900

    (@mo7900)


    Hey guys,

    Just wondering if anyone is going through this issue below, i was able to find a temporary fix, but hope if anyone can give a better solution or if this is actually a bug.

    Entire site is updated with latest versions for theme, plugins, etc. and tested with different options as well.

    Under “Ship to specific countries” in WooCommerce – we have one country selected. This leads to checkout page not loading fully, weirdly only on the Chrome browser. It works fine on Firefox and IE.

    Checking with console no issues found, under networking (chrome), shows 3 js files holding back, which are from plugins. So i disabled those plugins and re-loaded, now no issues under networking, yet the checkout page dies.

    Thought it was a select2 error, and disabled it – still nothing.

    Finally i added a code to function.php to load this one country under shipping address. Now checkout loads fine.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    I understand that when you add one country under Ship to specific countries in WooCommerce >> Settings – your checkout page doesn’t load properly.

    Issues like this may be caused by either a conflict with your theme or with another plugin. You can read more about plugin and theme conflicts here:

    https://docs.woocommerce.com/document/woocommerce-self-service-guide/

    The best way to determine if the issue is being caused by a theme and/or plugin is to do the following:

    1. Temporarily switch your theme back to the Storefront or Twenty Seventeen Theme.
    2. Disable all plugins except for WooCommerce.
    3. Test to see if the issue has been resolved.

    If that resolves the issue, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until you find the one causing the conflict.

    One tool you can try is Health Check since it allows you to do the test without affecting visitors of your site.

    If doing this on your live site is not possible, you can create a duplicate site. We suggest using WP Staging if your hosting provider does not offer a staging server as an option.

    Moderator Hari Shanker R

    (@harishanker)

    Hi @mo7900

    We haven’t heard back from you in a while. We hope the conflict test helped you fix the problems.

    We are marking this thread as resolved for now. If the problems persist though, feel free to reach out to us here in the forums. We are happy to help!

    All the best!

    Thread Starter mo7900

    (@mo7900)

    Hi,

    Sorry I couldn’t get back as I was out of office and thank you for taking the time to reply.

    We did the switches and de-activated all plugins, the issue is still active even with the Storefront and Twenty Seventeen at the checkout page, again only on the CHROME browser.

    If we un-select the ship to specific country, it works fine on all browsers. So the only problem we can think of is, we added a custom state file for country Sri Lanka (LK.PHP), which worked fine all these days, but after updating to latest versions of WP + WOO, this chrome issue popped up.

    The format to add these custom states is followed accurately as pointed out in the woo docs, again, we have been using this state file for over 5 years now without an issue.

    Weirdly it’s not working on CHROME, and when we use the console options to check issues or the network option, everything is fine.

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @mo7900

    Do you have issues if you try to replicate the problem on Chorme using another device?

    Thread Starter mo7900

    (@mo7900)

    Hi @johndcoy, Thanks for the reply. We checked on other devices, and it doesn’t work on iphone browser (plus iphone firefox browser) and on samsung phone browser as well.

    Soon as we add the below code to function.php, everythings works.

    function woo_override_checkout_fields_shipping( $fields ) {

    $fields[‘shipping’][‘shipping_country’] = array(
    ‘type’ => ‘select’,
    ‘label’ => __(‘Country’, ‘woocommerce’),
    ‘options’ => array(‘LK’ => ‘Sri Lanka’),
    );

    return $fields;
    }
    add_filter( ‘woocommerce_checkout_fields’ , ‘woo_override_checkout_fields_shipping’ );

    Thread Starter mo7900

    (@mo7900)

    After the 3.5.2 release, this issue got auto fixed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Checkout Error for SELECT One Country to Ship’ is closed to new replies.