• Resolved jnieder

    (@jnieder)


    I encountered a problem in our shop after we updated from Woocommerce 5.2.3 to 5.5.1. Since we’ve skipped several versions during the update, I did the updates step by step on a development environment and noticed that the problem already occurs when updating from 5.2.3 to 5.3.1.

    The problem is this: When an existing customer logs in with no country/region stored in the account for billing and shipping address, he does not see any shipping methods in the shopping cart and during checkout. This seems to be because they are not assigned to the default shipping zone anymore.

    Previously, customers who had not stored a country/region in der billing or shipping address were also assigned the default shipping zone. Now this no longer seems to be the case.

    This also becomes visible when we compare the results of the shipping debug mode of a customer who has no country/region set in his account:

    • Woocommerce 5.2.3: Customer matched zone “Switzerland” (which is the default zone in our case).
    • Woocommerce 5.3.1: Customer matched zone “Locations not covered by your other zones”.

    As we only ship to a single country, we had previously deactivated the billing_country and shipping_country fields in the checkout, which is why many of our existing customers do not have a country stored in their address fields.

    I wonder if this change in behaviour is related to the following fix introduced in Woocommerce 5.3.0? Fix #29605

    Do you have any idea what would be the best way to solve this problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @jnieder,

    This kind of problem is usually caused by a conflict with your theme or with another plugin. The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same behavior after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.

    Reactivate the theme first and check again. Then, go on and reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    If performing a conflict test does not resolve the issue, then please provide a screenshot of your shipping settings and your System Status Report for further checks. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.

    Thanks.

    Thread Starter jnieder

    (@jnieder)

    Hi @rainfallnixfig, thanks for your feedback!
    I’ve tried that and I can also recreate the same behaviour, even if I try it with a fresh installation of WooCommerce and Storefront.

    Here’s a Screenshot of the shipping settings:
    https://snipboard.io/vGjmBf.jpg
    https://snipboard.io/j0ab7f.jpg
    https://snipboard.io/yXo9zU.jpg

    And those are the steps to reproduce the issue:

    1. Set up a shop running on Woocommerce 5.2.3
    2. Set up the shipping options and shipping Zones as seen in the Screenshot above
    3. Create a user, that has a billing and a shipping address, but both whithout setting a country/region
    4. Login as the newly created customer and add a product to the cart.
    5. Go to the cart Page. There you can see that the default shipping zone is selected
    6. Update to Woocommerce 5.3.1 or higher
    7. Repeat steps 3. – 5.
    8. this time, there is no shipping zone set on the cart page.

    Many Thanks in advance for your help!

    An here’s the Status Report of the above woocommerce setup:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://woocommerce.diktum.website
    Site address (URL): https://woocommerce.diktum.website
    WC Version: 5.3.1
    REST API Version: ? 5.3.1
    WC Blocks Version: ? 4.9.1
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 2.2.6
    Log Directory Writable: ?
    WP Version: 5.8
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.21
    PHP Post Max Size: 256 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 200000
    cURL Version: 7.76.1
    NSS/3.53.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.28-MariaDB
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.3.1
    WC Database Prefix: wp_
    Total Database Size: 4.76MB
    Database Data Size: 3.35MB
    Database Index Size: 1.41MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 2.48MB + Index: 0.06MB + Engine InnoDB
    wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 2
    page: 6
    post: 2
    product: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (1) ###
    
    WooCommerce: by Automattic – 5.3.1 (update to version 5.5.2 is available)
    
    ### Inactive Plugins (2) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.10
    Hello Dolly: by Matt Mullenweg – 1.7.2
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: CHF (CHF)
    Currency Position: left_space
    Thousand Separator: '
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #7 - /shop/
    Cart: #8 - /warenkorb/
    Checkout: #9 - /kasse/
    My account: #10 - /mein-konto/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Storefront
    Version: 3.7.0
    Author URL: https://woocommerce.com/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 1
    Oldest: 2021-08-09 12:12:13 +0200
    Newest: 2021-08-09 12:12:13 +0200
    
    ### Status report information ###
    
    Generated at: 2021-08-10 08:46:40 +02:00
    
    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    Many thanks for the detailed information and screenshots ??

    This would be a good thing to post to the WooCommerce GitHub page:

    https://github.com/woocommerce/woocommerce/issues

    Doing that will bring it straight to the attention of the core developers, and they can address your issue directly.

    Cheers!

    Have a wonderful day ahead!

    Hey @jnieder,

    Does this still happen if you change the default customer location? In earlier versions of WooCommerce, geolocation was enabled in the core. Now it has to be turned on by adding a MaxMind license key. I wonder if that change is causing the problems.

    You could try getting a free license key and using the geolocate option for the default customer location. Currently, it is set to the shop’s base address.

    Here’s the documentation on using MaxMind.

    https://docs.woocommerce.com/document/maxmind-geolocation-integration/

    Let us know if that makes a difference.

    Plugin Support Cara

    (@dcka)

    Hi, @jnieder! We haven’t heard back from you in a while, so I’m going to mark this thread as resolved. However, we’ll be here if/when you’re ready to continue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Default Shipping Zone missing for logged in customers’ is closed to new replies.