Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi,

    If we try to send an order and do not fill in the required custom checkout fields, the error is not displayed and it becomes unclear what the problem is.

    What payment method are you referring to when this occurs? If it’s a wallet based payment method like Apple Pay or GPay, then those have the ability to populate the checkout fields automatically.

    WooCommerce performs checkout field validations server side during the checkout process, not client side.

    You have a Javascript error on your checkout page, which is usually the result of jQuery being enqueued by your theme. WordPress already takes care of jQuery and shouldn’t be enqueued by a theme or plugin.

    checkout.min.js?ver=8.6.0:1 Uncaught TypeError: Cannot read properties of undefined (reading 'defaults')
        at HTMLDocument.<anonymous> (checkout.min.js?ver=8.6.0:1:81)

    Kind Regards

    Thread Starter stormiqus

    (@stormiqus)

    What payment method are you referring to when this occurs?

    Credit Cards (Stripe)

    If it’s a wallet based payment method like Apple Pay or GPay, then those have the ability to populate the checkout fields automatically.

    There are some custom fields, such as the name and age of the child. I don’t quite understand how they can be populate automatically

    You have a Javascript error on your checkout page

    I agree, the theme there is not very good and is a legacy. But this does not change what I described above: When the plugin is disabled Woocommerce works correctly and gives all validation errors as in the screenshot, but when the plugin is enabled, all checkout validation disappear except for card fields

    Plugin Author Payment Plugins

    (@mrclayton)

    There are some custom fields, such as the name and age of the child. I don’t quite understand how they can be populate automatically

    I am not referring to custom fields. The billing address, shipping address, shipping option, billing phone, and billing email can be auto-populated. Payment wallets don’t have knowledge of custom fields that don’t have relevance to processing a payment.

    but when the plugin is enabled, all checkout validation disappear except for card fields

    Can you either set the plugin to test mode on your site or share a staging site url where test mode is enabled?

    Kind Regards

    Thread Starter stormiqus

    (@stormiqus)

    Yes, I switched the plugin to test mode

    Plugin Author Payment Plugins

    (@mrclayton)

    Yes, I switched the plugin to test mode

    The issue is the JS error that was pointed out in the previous reply. That JS error is interfering with how WooCommerce process the form.checkout submit event when the Place Order button is clicked.

    It’s causing your checkout page to reload rather than submit the checkout form and be processed via ajax.

    Kind Regards

    Thread Starter stormiqus

    (@stormiqus)

    Yes, you were right, we removed the conflict error and validation worked. However, the required fields are only checked after the card fields are filled in correctly. Let it be so. Anyway, thanks for the help and sorry for disturb!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Checkout field validation errors disappear’ is closed to new replies.