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

Viewing 4 reply threads


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 11 years, 1 month ago by John Durbin.
    • This topic was modified 11 years, 1 month ago by John Durbin. Reason: updated tag


    Josh

      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

        • Support Staff

        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!

          Viewing 4 reply threads

          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.

          Event Espresso - Staging Server