Support

Home Forums Event Espresso Premium Coupon function

Coupon function

Posted: July 9, 2014 at 10:28 am

Viewing 1 reply thread


thinkbiglearnsmart

July 9, 2014 at 10:28 am

WP 3.6.1
EE 3.1.35.P

Hello,

We’re overriding the function event_espresso_coupon_payment_page()

Right now the $event_cost variable uses the price selected from the various pricing options. Is there a way for that function to obtain the greatest price of all the pricing options for a particular event?

Thanks!


Sidney Harrell

July 9, 2014 at 3:48 pm

You’ll need to add a function like this:

Then you can make a call to it, and then sort the array by value to find the greatest one.

Viewing 1 reply thread

The support post ‘Coupon function’ 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