• Resolved kfedorov

    (@kfedorov)


    Hi again!

    I got some tricky condition where I don’t need discount to be applied for some combination of users\roles\products\purchase history.

    Am I able to check if conditions met during product loop and run remove_action( for that products?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi
    Thanks for reaching out.

    Are you trying to restrict discounts for specific user roles.
    If so, you can give a try by using the filter – not in list.

    Can you please open a support ticket with elaborate details of the scenario and screenshots of the rules configuration, so that one of our support engineers will help you to resolve the issue.

    Really appreciate it.

    Thanks
    Flycart Team

    Thread Starter kfedorov

    (@kfedorov)

    No it’s not just a simple role but I need to check if user belongs to some role + some user’s custom fields conditions (if some certificate uploaded and verified) + if it’s not just a regular product but product for Professional customers + it has special acf based price field and I also need to check it. 🙂

    Complicated yet possible in code

    Hi

    Thanks for reply.
    If you are trying to handle additional conditions using events, you can give a try using this snippet :
    https://gist.github.com/AshlinRejo/2c3185edc9aa2e43db28765158ffbd02

    Hope this helps!

    Thanks
    Flycart Team

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Do not apply discount for some using filter’ is closed to new replies.