• Resolved wkinga1

    (@wkinga1)


    Dear Support Team,

    I am experiencing an issue with the WooCommerce checkout process at the Account page. Specifically, when customers enter their postcode (ZIP code) in the billing and shipping section of their account or during checkout, it is not accepted, and the system shows the error message: “Please provide a valid postcode.”

    I am using the Woodmart theme and WooCommerce, and I’ve checked that the postcode field is set to “text” in the Checkout-Billing fields. I believe the issue is related to the system’s validation of the postcode format because I have the same issue with a different Theme.

    Here are the details:

    • The postcode field is of type “text” and should accept valid postcodes based on the country’s format (in this case, Hungary, where postcodes are 4 digits long, but in other countries it’s different).
    • The error message appears even when a valid Hungarian postcode (e.g., 8976, county Zala) is entered.
    • I have checked both the WooCommerce settings and the Woodmart theme settings, but the issue persists.

    Could you please assist me in resolving this issue? It seems to be a problem with the postcode validation that is not accepting valid entries.

    Thank you for your help! Kinga

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

Viewing 15 replies - 1 through 15 (of 21 total)
  • Zee

    (@doublezed2)

    Hello wkinga1,

    Thank you for contacting WooCommerce support.

    I understand the issue with the postcode not being accepted during checkout.

    I checked your site but couldn’t find an in-stock product to test. Please share a link to a product I can use for checkout. Also, provide your site’s System Status Report by pasting it into https://pastebin.com and sharing the link here.

    Looking forward to your response. 🙂

    Thread Starter wkinga1

    (@wkinga1)

    Hello,

    thank you for your quick reply.

    Is it okay if I share an account name and password with you? That way, you can add the address and see the problem. My website is working, but there are no products listed yet because we sell plants, and it’s still winter. How can I share it with you?

    System Status: https://pastebin.com/NYWdCTRM, password: NYWdCTRM. After you read it, it will burn.

    Thank you,

    Kinga

    Hi @wkinga1,

    I understand you’re open to sharing information but it is against the forum’s guidelines to share personal information since this is a public forum.

    Normally, a product must be added to the cart before accessing the checkout page. To troubleshoot, we need to follow this process.

    Can you create a test product so we can check the checkout page? Also, the bin password appears to be incorrect.

    Thread Starter wkinga1

    (@wkinga1)

    Hello Moses,

    okay, you will find one available product.

    Also, yesterday we experienced another issue where the Checkout page completely broke at the Elementor level. I’m not sure if this is related or not, but right now it seems to be working fine.

    Thank you, Kinga

    Thread Starter wkinga1

    (@wkinga1)

    new link: https://pastebin.com/pxFHgg9d

    pass: LKRcu7SFWM

    Hi @wkinga1,

    Thanks for the details. I see that you have ‘Direct Bank Transfer’ enabled, which means you’re not using the WooPayments plugin.

    Please try deactivating WooPayments and check if the issue persists. If it no longer occurs, that would indicate the issue is related to WooPayments.

    Let us know what you find!

    Thread Starter wkinga1

    (@wkinga1)

    Hello Mahfuzur,

    thank you very much for your feedback. I did it but unfortunately the problem is still here, and it still doesn’t accept the postal code. Thanks,

    Kinga

    • This reply was modified 1 year, 3 months ago by wkinga1.

    Hi @wkinga1,

    Thanks for testing that out! I tried again, but this time I entered the zip code in the City field, and the checkout went through successfully. Here’s a screenshot of the successful order: https://snipboard.io/3mghnr.jpg.

    This suggests that the checkout fields may have been modified. Could you check if any custom code or plugins are altering the checkout fields?

    Thread Starter wkinga1

    (@wkinga1)

    Hello Mahfuzur,

    I deleted the city and created a new one and right now it is working.

    I didnt find any custom code. 🙂

    Thank you for the fast reply, Kinga

    You’re very welcome, Kinga! 😊 I’m glad it’s working now. If you ever need any help, feel free to reach out.

    Thread Starter wkinga1

    (@wkinga1)

    Hello Mahfuzur,

    After the latest updates, my checkout page looks extremely weird, and we have encountered a serious issue. Here are the details and the solution:

    [03-Mar-2025 22:15:10 UTC] PHP Fatal error: Uncaught ValueError: Unknown format specifier “t” in /var/www/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:857
    Stack trace: 0 /var/www/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(857): sprintf(‘Elolvastam \xC3\xA9s …’, ‘[terms]’) 1 /var/www/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(846): wc_get_terms_and_conditions_checkbox_text() 2 /var/www/html/wp-content/plugins/woocommerce/templates/checkout/terms.php(27): wc_terms_and_conditions_checkbox_enabled() 3 /var/www/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(346): include(‘/var/www/html/w…’) 4 /var/www/html/wp-content/plugins/woocommerce/templates/checkout/payment.php(49): wc_get_template(‘checkout/terms….’) 5 /var/www/html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(346): include(‘/var/www/html/w…’) 6 /var/www/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2581): wc_get_template(‘checkout/paymen…’, Array) 7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(424): woocommerce_checkout_payment() 8 /var/www/html/wp-includes/class-wp-hook.php(324): WC_AJAX::update_order_review(”) 9 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 10 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 11 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(98): do_action(‘wc_ajax_update_…’) 12 /var/www/html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax(”) 13 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(false, Array) 14 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 15 /var/www/html/wp-includes/template-loader.php(13): do_action(‘template_redire…’) 16 /var/www/html/wp-blog-header.php(19): require_once(‘/var/www/html/w…’) 17 /var/www/html/index.php(17): require(‘/var/www/html/w…’) 18 {main}

    thrown in /var/www/html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 857

    Solution is to remove sprintf and add esc_html__

    And previously, I had an issue with the City field in the Billing details getting stuck. We solved it by creating a new field and naming it “City.” My problem with this solution is that during checkout, it looks terrible because the “New City” field is placed in the last row, making the layout completely disorganized.

    Wouldn’t it be possible to get the original billing_city and shipping_city fields to work properly without getting stuck as a postal code?

    My other issue is with the Waitlist. Right now, it shows that there are subscription requests for 50 products, but this is not correct because some products are missing from the list. It’s as if the list was updated once and then stopped refreshing.

    What should I do? I’ll send you a video about it: https://jmp.sh/wjHFDTgh

    Thanks, Kinga

    Thread Starter wkinga1

    (@wkinga1)

    Meanwhile, what we also noticed is that it seems like the Waitlist can only display 50 products and won’t show more. Could this product limit be increased to 300-350? That’s approximately how many products we will have in the webshop. Thank you!

    Zee

    (@doublezed2)

    Hello wkinga1,

    Thank you for your reply.

    Could you share a screenshot to show me how the Checkout page looks?
    Also, share a product link that I can use to checkout.
    You may use https://snipboard.io to upload images and share link here.

    You are also facing an issue with the Waitlist.
    This feature does not sound like a WooCommerce core feature.
    Are you using a plugin for that? If you are, then I suggest contacting the plugin support regarding this problem.

    Looking forward to your response. 🙂

    Thread Starter wkinga1

    (@wkinga1)

    I made a video and a screenshot as well. In the video, you can see that my checkout page works in English, but it DOES NOT work in Hungarian – it breaks and shows a critical error: https://jmp.sh/tb5fMoOo

    Unfortunately, the “city” issue is still present, not accepting the original billing_city cause it sees as an ZIP (https://snipboard.io/txGWNS.jpg). The solution before was to add a new element, and that would replace the billing_city and shipping_city. The problem with this, though, is that when I order a product, the city appears at the very bottom of the confirmation page, making it look quite bad(https://snipboard.io/S9uzQe.jpg) .

    Thanks, Kinga

    Thread Starter wkinga1

    (@wkinga1)

Viewing 15 replies - 1 through 15 (of 21 total)

The topic ‘Issue with Postcode Validation on Account page’ is closed to new replies.