Posted: June 24, 2020 at 12:38 pm
Would it be possible to code a one time use of a discount sitewide based on a role assignment? |
|
Hi there, With regards to a ‘single-use code’ this is now possible as the promotions system has a ‘Total Number of Uses’ field. That field is the total number of uses a promotion can be used across all scopes, meaning if you set 1 there that promotion code can only be used once in total. The other part of your question I’m a little confused by. How would a role assignment based promotion code work? Any user assigned to that role has 1 single-use promotion code they can use? (If so it has very little to do with the role itself, its just a promotion code in the promotion system as we don’t check for specific roles when using a promotion).
I guess this is what I find confusing. In short you don’t want to add a discount ticket on all of your events and want to use a single use promotion? |
|
Here is a description of the use-case: How might this be accomplished? |
|
You would create a promotion code with the ‘Total Number of Uses’ set to one and then send that code to the user. If you are asking how to automate it, we don’t have any add-ons that will do that for you so you would need something custom. A function to pull in any users with their birthday set to a date within the next 30 days and with a role of ‘subscriber’ for example, then create a unique promotion code for each user and trigger an email. So to answer your initial question, yes it’s possible but you’ll need something custom to do it. We do have an example of how to create a promotion code via code which is available HERE. |
|
The support post ‘Possibility of coding a one time use discount’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.