• ccolotti

    (@ccolotti)


    password for page : vexpert2019r1

    I noticed with the redirect that if someone forgets to check a mandatory field it does dump them to the re-direct and they have to start the process over for an item. Is there a way to only redirect on a COMPLETED product and not if a validation or required field is missed? Curious if that is even in the pro version too.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ren Ventura

    (@renventura)

    Hi Chris,

    If I’m understanding correctly, it looks like there’s an issue with the validation on the required fields. Based on what you’ve explained, and my review of the page you shared, the product is being added to the cart without completing the required fields, then the redirect is triggered (because of a successful add-to-cart). It seems that the validation of these required fields should fail if the fields aren’t populated, which would prevent the product from being added to the cart, and further prevent the redirect.

    Since the redirect only occurs after a product is added to the cart, it doesn’t touch any validation for additional product fields; the validation should occur before a product is added to the cart. I’d suggest taking a look at why the validation for these fields is passing, as that’s what sticks out to me as the root issue. Once the fields are properly validating, the proper redirects should fall into place.

    Thread Starter ccolotti

    (@ccolotti)

    Fair enough at least you saw the issue. Those fields are inserted by the “Add-On’s plugin by Woo, so next step is to ask them why it’s considering it as “added to cart” vs failed validation. Am I summarizing that right?

    Thread Starter ccolotti

    (@ccolotti)

    So I chatted with them and they are looking into the checkbox validation specifically. That being said I tried 2 other add-on plugins with a checkbox and they all seem to work the same way. Every one of them does not happen to validate the checkbox field (specifically) until a post to cart happens (thus triggering a redirect). Text fields validate pre-cart post, but now that I can re-produce this with 2 other add on product plugins it seems to be more of a core Woo issue, but back to asking if there is a way around the redirect unless it’s properly added? Since 2 other plugins are doing the same thing, going to be a lot more work for Woo to admit to a fix and I have to come back here. Anyone using any kind of checkbox add-on field with your redirect will have the same issue from the testing I have just done.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Quick Question on Validation Fields’ is closed to new replies.