• Resolved outdooredllc1956

    (@outdooredllc1956)


    I grant Users access to certain content after a WooCommerce purchase by assigning a custom Role based on a Product Category.

    I am using Triggers in this Order
    1. User purchases a product of category 1 times
    2. User completes a purchase 1 times
    Action
    Add Role Y to User

    It isn’t clear to me what the 1 times does. Is this 1 time per Order or 1 time per Customer?

    In testing I can get this to work. Then to test again I remove the Role and purchase the product again but the Role isn’t added. Will the Plugin allow Users to purchase the product multiple times and get the Role applied again if it is gone or has the User ‘permanently used up’ their 1 time. In that case do I need to set the First Trigger to something like 100 so the User can purchase the item over and over as needed?

    Thanks – Great Plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dioni Sánchez

    (@dioni00)

    Hi @outdooredllc1956

    With the time(s) field in the trigger you indicate the number of times the trigger must be fired in order for the entire automation to be executed.
    For example “User completes a purchase 2 times”, this indicates that the user must make two purchases for the action to be fired.

    In the automation editing screen, you will see on the right in the “Save Changes” block, there is an option called “Times per user” by default it is 1, that means that the automation will be launched only once, if you use the value 0, it can be launched indefinitely.

    Hope it helps!

    Thread Starter outdooredllc1956

    (@outdooredllc1956)

    Thanks Dioni. I tried 0 and the validation code does not permit it. Enter 0 into the text box and then try to save the Trigger and you get “Value must be greater than or equal to 1”. I also tried a null value in the field. In that case when you save and reopen the Trigger it has reset to 1.

    Plugin Author Dioni Sánchez

    (@dioni00)

    Hi @outdooredllc1956

    Thanks for your reply

    Please check the link below where I have put a screenshot with the option that you have to set to 0 for the automation to run indefinitely

    https://postimg.cc/vgycSht8

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Role for WooCommerce purchase’ is closed to new replies.