Support » Plugin: PPOM for WooCommerce » Allow conditions on empty values

  • Resolved love4work


    Currently, if you want to make a rule/condition that hides a field only when none of the dropdown options has been selected… well you can’t without reversing the logic and adding all options and saying Only show when one of the following matches. Which is ofcourse not what we want.

    Also it’s not an option to add a Value that adds nothing to the order information.

    My proposal would be, make empty values either available in the options as the first option or as a first class operator.

    • This topic was modified 11 months, 2 weeks ago by love4work.
Viewing 2 replies - 1 through 2 (of 2 total)
  • For anyone looking, I made it work by commenting out

    line 896
    //if ($.trim(con_val) !== '') {

    line 908

    in scripts/ppom-admin.js

    Then I added an empty option but I did set the Unique Option ID.

    I hope this can be made available in the next update, because I don’t know for sure why the empty values are stripped in the first place.

    Anyhow hope I helped someone with this 🙂

    Plugin Author N-Media


    HI @love4work.

    thanks for sharing, it may help others. And if we found this useful we will add this in our core plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow conditions on empty values’ is closed to new replies.