Support

Home Forums Event Espresso Premium Coupon Codes on each line in the database

Coupon Codes on each line in the database

Posted: August 19, 2013 at 9:56 am


John Durbin

August 19, 2013 at 9:56 am

Hi,

I would like to know if it possible to make the plugin write the coupon code on each line in the database (table “mydb_events_attendee”. Now, it’s only written in the line for the primary attendee, while all the secondary attendees are listed as NULL (even if the price is correctly reduced to 0).

Is there any changes I can make to the plugin in order to achieve this result?

Many thanks.

  • This topic was modified 6 years, 3 months ago by  John Durbin.
  • This topic was modified 6 years, 3 months ago by  John Durbin. Reason: updated tag


Josh

  • Support Staff

August 19, 2013 at 2:18 pm

Hi John,

I think if that were to be added it would incorrectly calculate the price per ticket.


John Durbin

August 20, 2013 at 3:36 am

Hi,

is there then any other way to achieve the same result without adding that info in the table?


Dean

August 20, 2013 at 3:55 am

Hi John,

Unfortunately there isn’t an easy way to do what you are asking without major changes to some of the underlying code.

Just changing the additional attendees table rows to show the coupon instead of NULL could cause errors with the calculation of the prices, which may affect the users negatively.


John Durbin

August 21, 2013 at 3:07 am

Hi,

thanks for the clarification! I wrote some queries with joined tables to obtain what I was looking for. It’s not straightforward but it works! You can close this ticket!

Many thanks!

The support post ‘Coupon Codes on each line in the database’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  John Durbin 6 years, 3 months ago ago

Topic Tags

Tagged: , , ,

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!