Support

Home Forums Event Espresso Premium Promotions – using them as a gift voucher

Promotions – using them as a gift voucher

Posted: September 13, 2022 at 3:59 am

Viewing 1 reply thread


craigpauldesign

September 13, 2022 at 3:59 am

Hi there. Is there any way to use a promotion code as a gift voucher of a set value that decreases in amount after each use? So if we give someone a code for £20 I can’t see a way to set it so that if they use £10 on one booking it leaves the other £10 on the code? I can only see that I can set it for intimate £20 use which I don’t want!

Many thanks in advance!


Tony

  • Support Staff

September 13, 2022 at 12:36 pm

Hi there,

Officially no, we don’t have this functionality built into Event Espresso.

However, if you don’t use ‘Fixed value’ discounts for anything else I have a snippet which can do this for you here:

https://gist.github.com/Pebblo/c2dd51d7b5e117810d9b5b70b9366b87

Is works by using fixed value discounts in the promotions add-on and subtracting the transactional total from the discount each time until it reaches 0, at which point it sets the expiration date to ‘now’ to prevent it from being used further.

Is that what you are looking for?

You can add that snippet to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Viewing 1 reply thread

The support post ‘Promotions – using them as a gift voucher’ 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.

Event Espresso