• Resolved Adrian Ghio

    (@aghio)


    The billing states dropdown sometimes does not show when woocommerce sells to only one country.

    In this case, our store sells only to Argentina, so the billing country will be always selected, but the billing states sometimes does not load, and the user can′t select the state. So, later in checkout page, user will receive an error message “billing state is required”

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @aghio

    This issue usually arises when there are JavaScript conflicts or issues with the theme or plugins.

    To resolve this, please ensure that your theme and plugins are all updated to their latest versions. Additionally, try switching to a default theme temporarily, like Storefront, to see if the problem persists.

    If the issue continues, try disabling all plugins except WooCommerce to see if any of them might be causing the conflict. If the problem is resolved, you can enable the plugins one by one to identify the one causing the issue.

    I also tried replicating the issue on your website, but I got this warning: “Lo siento, este producto no está disponible para la compra. Revisá los roles de acceso con el administrador.”

    The problem you’re experiencing looks tied to the code or plugin you’ve used to limit product purchase functionality. Could you please temporarily disable it and try again?

    If none of these steps help, please get back to us with additional information or error logs, if any, so we can assist you further.

    • System Status Report: navigate to WooCommerce → Status. Select Get system report and then Copy for support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter Adrian Ghio

    (@aghio)

    I did…. every step. And the error is the same. It only happens when I set “sell to only one country”. If I mark multiple countries (as now): AR, UY, CH, it works fine, but when there is only one country, the state combo sometimes does not appear.

    If you want to buy something, just register in the website and I will give you the role to try.

    Here, the report: (I dont have any fatal errors since two weeks)

    ` WordPress Environment</p> <p class=””>WordPress address (URL): https://lacuarta-kokoro.com<br>Site address (URL): https://lacuarta-kokoro.com<br>WC Version: 8.0.3<br>REST API Version: ? 8.0.3<br>WC Blocks Version: ? 10.6.6<br>Action Scheduler Version: ? 3.6.1<br>Log Directory Writable: ?<br>WP Version: 6.3.1<br>WP Multisite: –<br>WP Memory Limit: 1 GB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: es_ES<br>External object cache: – Server Environment</p> <p class=””>Server Info: nginx/1.18.0<br>PHP Version: 7.4.33<br>PHP Post Max Size: 256 MB<br>PHP Time Limit: 1500<br>PHP Max Input Vars: 3000<br>cURL Version: 7.81.0<br>OpenSSL/3.0.2</p> <p class=””>SUHOSIN Installed: –<br>MySQL Version: 8.0.34-0ubuntu0.22.04.1<br>Max Upload Size: 256 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database</p> <p class=””>WC Database Version: 8.0.3<br>WC Database Prefix: lck_<br>Tama?o total de la base de datos: 61.91MB<br>Tama?o de los datos de la base de datos: 46.27MB<br>Tama?o del índice de la base de datos: 15.64MB<br>lck_woocommerce_sessions: Datos: 0.06MB + índice: 0.02MB + Motor InnoDB<br>lck_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB<br>lck_woocommerce_order_items: Datos: 0.31MB + índice: 0.13MB + Motor InnoDB<br>lck_woocommerce_order_itemmeta: Datos: 2.52MB + índice: 3.92MB + Motor InnoDB<br>lck_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB<br>lck_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>_lck_movimiento_stock: Datos: 0.39MB + índice: 0.00MB + Motor InnoDB<br>_lck_provincias: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>_lck_transporte: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_C_control_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_actionscheduler_actions: Datos: 1.02MB + índice: 0.50MB + Motor InnoDB<br>lck_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_actionscheduler_logs: Datos: 1.02MB + índice: 1.14MB + Motor InnoDB<br>lck_commentmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_comments: Datos: 1.52MB + índice: 0.16MB + Motor InnoDB<br>lck_dsabafw_billingadress: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_e_events: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_e_notes: Datos: 0.02MB + índice: 0.17MB + Motor InnoDB<br>lck_e_notes_users_relations: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_e_submissions: Datos: 0.02MB + índice: 0.23MB + Motor InnoDB<br>lck_e_submissions_actions_log: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_e_submissions_values: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_mailchimp_carts: Datos: 0.03MB + índice: 0.00MB + Motor InnoDB<br>lck_mailchimp_jobs: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_options: Datos: 8.02MB + índice: 0.20MB + Motor InnoDB<br>lck_postmeta: Datos: 15.39MB + índice: 4.67MB + Motor InnoDB<br>lck_posts: Datos: 11.48MB + índice: 0.67MB + Motor InnoDB<br>lck_stock_log: Datos: 0.09MB + índice: 0.00MB + Motor InnoDB<br>lck_term_relationships: Datos: 0.05MB + índice: 0.02MB + Motor InnoDB<br>lck_term_taxonomy: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_termmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_terms: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_um_metadata: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB<br>lck_usermeta: Datos: 2.44MB + índice: 1.92MB + Motor InnoDB<br>lck_users: Datos: 0.09MB + índice: 0.05MB + Motor InnoDB<br>lck_wc_admin_note_actions: Datos: 0.05MB + índice: 0.02MB + Motor InnoDB<br>lck_wc_admin_notes: Datos: 0.06MB + índice: 0.00MB + Motor InnoDB<br>lck_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_wc_order_addresses: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB<br>lck_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_wc_order_operational_data: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_wc_order_product_lookup: Datos: 0.42MB + índice: 0.50MB + Motor InnoDB<br>lck_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB<br>lck_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_wc_orders: Datos: 0.02MB + índice: 0.11MB + Motor InnoDB<br>lck_wc_orders_meta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB<br>lck_wc_product_attributes_lookup: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_wc_product_download_directories: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_wc_product_meta_lookup: Datos: 0.13MB + índice: 0.19MB + Motor InnoDB<br>lck_wc_rate_limits: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_wpdatacharts: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_wpdatatables: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_wpdatatables_cache: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_wpdatatables_columns: Datos: 0.14MB + índice: 0.00MB + Motor InnoDB<br>lck_wpdatatables_rows: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB<br>lck_wpuf_subscribers: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB<br>lck_wpuf_transaction: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB<br>vw_auxiliar: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_control_stockprecio: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_control_stocks: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_control_stocks_productos: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_detalle_pedidos: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_detalle_pedidos_v2: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_movimiento_stock: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_productos_x_pedido: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_products: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_temp: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_totales_por_mes: Datos: 0.00MB + índice: 0.00MB + Motor<br>vw_totales_vendidos_por_producto: Datos: 0.00MB + índice: 0.00MB + Motor Post Type Counts</p> <p class=””>attachment: 1559<br>custom_css: 3<br>elementor_library: 23<br>filter-field: 4<br>filter-set: 2<br>nav_menu_item: 49<br>page: 28<br>post: 2<br>product: 120<br>product_variation: 764<br>revision: 1377<br>shop_order: 138<br>shop_order_refund: 1<br>transporte: 1<br>um_directory: 1<br>um_form: 3<br>wp_global_styles: 3 Security</p> <p class=””>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (25)</p> <p class=””>Advanced Access Manager: por Vasyl Martyniuk <a href=”mailto:[email protected]”>[email protected]</a> – 6.9.14<br>Child Theme Configurator: por Lilaea Media – 2.6.2<br>Duplicate Menu: por Jonathan Christopher – 0.2.2<br>Elementor Pro: por Elementor.com – 3.15.1<br>Elementor: por Elementor.com – 3.15.3<br>Essential Addons for Elementor – Pro: por WPDeveloper – 5.5.4<br>Essential Addons for Elementor: por WPDeveloper – 5.8.7<br>Filtrar todo PRO: por andrii stepasiuk – 1.7.15<br>Loco Translate: por Tim Whitlock – 2.6.6<br>Ultimate Member: por Ultimate Member – 2.6.10<br>Ultimate Member – Promote Users Role: por Miss Veronica – 2.1.0<br>Ultimate Member – reCAPTCHA: por Ultimate Member – 2.3.3<br>User Switching: por John Blackbourn y colaboradores – 1.7.0<br>Show Orders Shortcode for WooCommerce: por Con Schneider – 1.1.0<br>Additional Variation Images Gallery for WooCommerce: por Emran Ahmed – 1.3.19<br>WP WooCommerce Mailchimp: por Saint Systems – 2.4.12<br>WooCommerce Múltiples Direcciones de Clientes: por Lagudi Domenico – 18.7<br>WooCommerce Custom Payment Gateway: por WPRuby – 1.3.8<br>Stock Manager for WooCommerce: por StoreApps – 3.0.0<br>WooCommerce: por Automattic – 8.0.3<br>WP Rollback: por GiveWP.com – 1.7.3<br>WP User Frontend: por weDevs – 3.6.8<br>wpDataTables: por Complementos TMS – 5.7.1<br>XT WooCommerce Floating Cart Pro: por Temas explotados – 2.4.0<br>Zoho Mail: por Zoho Mail – 1.5.3 Inactive Plugins (3)</p> <p class=””>Mailchimp for WooCommerce: por Mailchimp – 3.2<br>MailChimp User Sync: por ibericode – 1.5.2<br>MC4WP: Mailchimp for WordPress: por ibericode – 4.9.7 Settings</p> <p class=””>API Enabled: –<br>Force SSL: –<br>Currency: ARS ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>subscription (subscription)<br>variable (variable)<br>variable subscription (variable-subscription)</p> <p class=””>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)</p> <p class=””>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages</p> <p class=””>Base de la tienda: #61 – /tienda/<br>Carrito: #62 – /carrito/<br>Finalizar compra: #63 – /finalizar-compra/<br>Mi cuenta: #64 – /mi-cuenta/<br>Términos y condiciones: #763 – /terminos-y-condiciones/ Theme</p> <p class=””>Name: Astra Child<br>Version: 4.1.3.1683554213<br>Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme<br>Child Theme: ?<br>Parent Theme Name: Astra<br>Parent Theme Version: 4.3.1<br>Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme<br>WooCommerce Support: ? Templates</p> <p class=””>Overrides: astra-child/woocommerce/emails/admin-new-order.php<br>La version 2.5.0 de astra-child/woocommerce/emails/email-order-details.php está obsoleta. La versión del núcleo es la 3.7.0<br>La version 2.1.2 de astra-child/woocommerce/emails/email-order-items.php está obsoleta. La versión del núcleo es la 3.7.0<br>/var/www/lacuarta-kokoro.com/wp-content/plugins/woo-variation-gallery/templates/product-images.php<br>/var/www/lacuarta-kokoro.com/wp-content/plugins/woo-variation-gallery/templates/product-thumbnails.php</p> <p class=””>Outdated Templates: ?</p> <pre class=”wp-block-code”><code> Aprende cómo actualizar</code></pre> <p class=””>Admin</p> <p class=””>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page</p> <p class=””>Disabled Features: minified-js<br>new-product-management-experience<br>product-variation-management<br>settings<br>async-product-editor-category-field</p> <p class=””>Daily Cron: ? Next scheduled: 2023-09-05 13:50:35 -03:00<br>Options: ?<br>Notes: 70<br>Onboarding: skipped Action Scheduler</p> <p class=””>Completo: 1.487<br>Oldest: 2023-08-05 15:19:33 +0000<br>Newest: 2023-09-04 17:52:53 +0000</p> <p class=””>Fallida: 8<br>Oldest: 2023-05-06 13:52:40 +0000<br>Newest: 2023-07-11 21:20:51 +0000</p> <p class=””>Pendiente: 1<br>Oldest: 2023-09-05 15:37:54 +0000<br>Newest: 2023-09-05 15:37:54 +0000 Status report information</p> <p class=””>Generated at: 2023-09-05 08:25:49 -03:00<br>`

    Plugin Support Abhi G. a11n

    (@theabhig)

    Hi @aghio

    I wasn’t able to view or test your checkout as each time I tried to add an item to my cart I received the following error

    Lo siento, este producto no está disponible para la compra. Revisá los roles de acceso con el administrador.

    Could you please enable adding items to the cart and accessing the checkout page for non-admin users, so we can look into this further?

    Thread Starter Adrian Ghio

    (@aghio)

    Sorry… there is no possible to allow to add-to-cart products if you are not a reseller.

    please, let me know your email or username and I will give you the right permissions.

    Plugin Support Abhi G. a11n

    (@theabhig)

    Hi @aghio

    We don’t have a public email address to request permission for the site.

    However if you would like to clone your site to a staging environment and change your permission settings on the staging to allow us to add items to the cart and test your checkout, we’ll be able to assist further here.

    We will be standing by for your response.

    Thread Starter Adrian Ghio

    (@aghio)

    you can register with any email (even if the email doesn’t exists). Just let me.know and I will authorize the user and assign the right access.

    Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @aghio ,

    you can register with any email (even if the email doesn’t exists). Just let me.know and I will authorize the user and assign the right access.

    Posting email addresses in this forum (even if they don’t exist) is against forum guidelines. Feel free to modify the permissions either on the live or a staging site so we can access checkout and test this further.

    Thread Starter Adrian Ghio

    (@aghio)

    you just register. I will detect and I will give you the right access.

    We don’t have to show any email.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @aghio,

    you just register. I will detect and I will give you the right access.
    We don’t have to show any email.

    While I hear you on this suggestion, kindly let’s keep to the forum guidelines.

    To clarify, we’ll be happy to continue helping out here, but without registering an account on your site. So, for your site’s security, do not upgrade roles for any users that may sign up claiming to be “support”.

    That said, I tested this on a new test site and I can see that when Argentina is selected as the country I sell to, I can access the State/County dropdown – https://d.pr/i/98hS8w.

    Since we’re unable to replicate this issue, it looks like something on your site (theme/plugin/custom code) might be causing the unexpected behavior.

    I would recommend following the steps here to try isolate the culprit – https://woocommerce.com/document/how-to-test-for-conflicts/.

    Thanks.

    Thread Starter Adrian Ghio

    (@aghio)

    @abwaita thanks a lot for your effort…. I see the statw drops down ok.
    Usually it happens. But not always. You can try it refreshing the page several times. Sometimes, state dropdown does not appear, and you can finish the process without state.
    It is hard to replicate but it happens.
    I fixed this way:
    I have selected a few countries… Argentina, Chile, Uruguay, Paraguay and Bolivia. Then, when you have to finish the buying process, you have to select “Argentina” and then, state dropdown appears (always):
    But having just Argentina (or only one country), it doesn′t works fine

    Plugin Support abwaita a11n

    (@abwaita)

    Hi Adrian!

    On my test site (set to sell to Argentina only), I tried refreshing several (10+) times on the checkout page, but still, the county dropdown was always shown. This is the expected behavior.

    It appears that the issue you’re facing on your side, where the state/country dropdown occasionally disappears, might be challenging to troubleshoot due to its sporadic nature. However, I’m glad to hear that you’ve found a workaround by listing more countries to sell to.

    Just a tip, if you don’t intend to sell to those additional countries, you could create for them a shipping zone and add no shipping methods to it. Customers will be unable to checkout (unless they only have virtual products added to cart) since they won’t have a shipping method.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Billing state dropdown does not work sometimes’ is closed to new replies.