• How i can ann field validation on step 2 ,if the fields are not filled, it is not passed on to the next step?
    Thank you

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello,

    this plugin doesn’t modify the field validation, i.e. it is performed in some JavaScript files from the WooCommerce plugin. The WooCommerce field validation is triggered only when clicking the “Place Order” button on the last step.

    Unfortunately there is no way of applying a field validation on step 2 without replacing the whole WooCommerce validation process and writing a field validation for the checkout form from scratch. Currently in the plugin there is no solution implemented for your issue.

    Thread Starter ivanryz

    (@ivanryz)

    Thanks, Maybe you know where these files are located in the woocommerce plugin?

    Plugin Author SilkyPress

    (@diana_burduja)

    /wp-content/plugins/woocommerce/assets/js/frontend/checkout.js

    Plugin Author SilkyPress

    (@diana_burduja)

    You can add the define('SCRIPT_DEBUG', true); line in the website’s wp-config.php file, as described here. It will load the non-minified version of the checkout.js on the website, so you can modify it and try out things. Otherwise the checkout.min.js file will be loaded.

    Thread Starter ivanryz

    (@ivanryz)

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Field validation’ is closed to new replies.