• Hello,

    I see that my rules based on roles are not working, in particular the information about the role is ignored ad the rule is applied everywhere. I found the place in the code to fix it, it is on file

    includes/ipq-functions.php

    line 51: $role = $cap;

    it works if you set that line to:
    $role = $val;

    I ask if you can see if this fix is good and if could be included in a plugin update.

    thank you
    Chiara

Viewing 4 replies - 1 through 4 (of 4 total)
  • Tested working but haven’t looked into how it broke (i thought this was working until recent).

    The author of this plug seems to have abandoned all the plugins they made and hasnt had any activity for two years. I have a client that needs the exact functionality of this plugin so i’ve been familiarizing myself with it as much as I can to try and support it myself.

    I think i have one other fix i’ve had to implement aside from yours, if this keeps up I’d like to fork the plugin and re-release it.

    i went ahead and made a fork, the authors GIT didnt have the current changes to the plugin so I merged those to my fork as well as the change you made: https://github.com/jmclaren7/woocommerce-incremental-product-quantities

    If we don’t hear from the author by the time I get put my clients site live in a few weeks, i’ll try to publish the forked plugin.

    Thread Starter Chiara Aiola

    (@aiolawp)

    Ok thank you,

    let me know if you can publish the plugin so I will get the updated version from your fork.

    OMG – the fork worked like a CHARM! You have saved me, literally HOURS, thank you thank you!!! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Role based rule not working’ is closed to new replies.