Support » Plugin: Multi-Step Checkout for WooCommerce » Validation for Billing Details

  • Resolved Dan



    I’ve seen that additional validation isn’t a feature of this plugin, so I’ve been trying to create my own with the help of a jQuery plugin.

    I’ve managed to require validation on incorrect fields, where the messages will appear on clicking the Next button, but it still goes through to the next section.

    I’m sure I can stop this from happening to give the visitor a chance to fill in their details properly, but what do I need to call with jQuery to go through to the next section (Shipping)?

    Does that make sense? How are you moving through to the next section when clicking the Next button?


Viewing 1 replies (of 1 total)
  • Plugin Author Diana Burduja



    a per-step validation is available as a feature in the plugin’s pro version.

    Nevertheless, if you want to build your custom validation, you’ll have to copy the /wp-multi-step-checkout/assets/js/script.js file to /wp-multi-step-checkout/assets/js/script.min.js (that will overwrite the minified version of the script with a human-readable one) and then proceed to modify the switchTab function in the script.min.js file. At the beginning of the switchTab function you can make a check for validation errors and if there are any, then return false. This will prevent the user moving to the next or previous step when validation errors are present.

    • This reply was modified 3 years, 5 months ago by Diana Burduja.
Viewing 1 replies (of 1 total)
  • The topic ‘Validation for Billing Details’ is closed to new replies.