Support

Home Forums Event Espresso Premium Making promotional code unique and importing promotional codes as csv file.

Making promotional code unique and importing promotional codes as csv file.

Posted: March 18, 2014 at 11:10 pm

Viewing 5 reply threads


Hafeez Muslim

March 18, 2014 at 11:10 pm

Hi!,
I have two issues for solution.
1. There is an option to select a promotional code while creating a new event. Everything is fine but the job I need to do is I want to use the promotional code once. That means suppose I have promotional codes named as “promo111, promo112, promo113”. If I use promo111 and promo112 in event 1 the codes should not be used in a new event. similarly if I use promo112 to a new event, this promotional code should not be used or visible to any new event. Is it possible to make?

2. My second issue is that I want to import promotional code (as csv or excel). How can I do this ?

My wordpress version: latest (3.8+), event espresso version 3.1.36.2.P
page link: http://www.limbcmalaysia.com/event-registration/?regevent_action=register&event_id=3


Josh

  • Support Staff

March 19, 2014 at 3:17 pm

Hi Hafeez,

I’m sorry, I am not 100% sure about whether you’re asking if a promo code can be used once as in one customer can use the code, then no one else -or- if the code can only be used for one event and one event only. The latter case is possible if you set the promo code to not be global, and assign the code to only one event. The former isn’t possible because Event Espresso doesn’t have a limit a promo code’s usage amount feature.

With your other question, if you are familiar with phpmyadmin it is possible to import a batch of promo codes via phpmyadmin. What you can try is go in to phpmyadmin and look for the _events_discounts_codes, export as csv to use as a template, add your codes, then import them back in. Please be sure to make a backup of your database before doing this.


Hafeez Muslim

March 20, 2014 at 12:17 am

My first problem was each promotional code will be used once only by one customer.
I am doing this because if my one customer “A” know a promotional code and register in an event with this code, latter he may tell my customer “B” this secret promo code and customer “B” may apply with this promo code. But I did not give the promo code to customer “B”. That’s why I want the promo code to be used in one registration time and of course for one user.

3. I have another new issue. I noticed that same name promocode can be created more than once. This is a problem. How can i fix it ?


Josh

  • Support Staff

March 20, 2014 at 10:41 am

Hi Hafeez,

I’m afraid that Event Espresso does not have the promo code features you’re looking for it to do. If a promo code is in the system it can be used more than once.

There is also not a mechanism to prevent the same promocode being entered into the system. It’s understood that this could be an issue if there are a lot of promo codes is in the system, and I can register this idea to add some validation to prevent this from happening in a future version of the promo code manager.


Hafeez Muslim

March 20, 2014 at 11:07 am

If you don’t mind I can add some suggestion here. My first problem I can resolved by adding a field named “status” in the database table where coupon codes are inserted. That means initially when inserted the field will be filled as “unused” status. When a customer select a promo code and press register button then this promocode status field will be changed to “used”.
But here the problem is I can’t find out which php file you used to insert the promo code and also which php file you used to calculate the registration.

If you tell me the way I think I can resolve the problem. I think you can understand the matter.


Dean

March 24, 2014 at 12:24 am

Hi,

Most of the coupon related code is found in event-espresso/includes/admin-files/coupon-management/

Please note that these are core files so editing them directly is not recommended as plugin updates will over write your changes.

Viewing 5 reply threads

The support post ‘Making promotional code unique and importing promotional codes as csv file.’ 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