Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Saravana Kumar K

    (@mycholan)

    Hi,

    could be, but your handler for validation hook’s priority is 101 so it doesn’t matter whether validate_wccpf function uses $passed var or not because it will always be executed after the validate_wccpf.

    your point is noted, I will fix it, I will use $passed var in validate_wccpf function with the next release.

    mean time you can change your validate_defeitos priority to 5 and modify validate_wccpf function on wcff-product-form.php file like this.

    LN : 170

    $is_passed = $passed;

    let me know the result.

    Thread Starter brunonar

    (@brunonar)

    Thank you very much for the quick reply!

    I tried your suggestions but I had no success at all. The “add to cart button” still ignores my function.

    I also tried to solve it by changing the line 261 to “return $passed”, but it failed too.

    I was not able to imagine another plugin that could be handling the filter as well. You know a way to get all the filters applied to it?

    Thanks again.

    Thread Starter brunonar

    (@brunonar)

    I found a great way to check out all the filters attached to validation.
    https://wordpress.stackexchange.com/questions/17394/how-to-know-what-functions-are-hooked-to-an-action-filter

    I’ll debug the functions with it and return with the results later.

    Thanks for the support, Saravana.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add to Cart Validation doesn't work after WC Factory activate’ is closed to new replies.