Support

Home Forums Event Espresso Premium Early Registration Discount only working for more than one price level

Early Registration Discount only working for more than one price level

Posted: January 13, 2014 at 4:33 pm

Viewing 6 reply threads


Angela Haddon

January 13, 2014 at 4:33 pm

Hi, I’ve got a bit of a strange thing happening where the Early Registration Discount works great if there are two or more price levels (for different member types), but if I have a single standard price, it simply fails to work. Any idea why this might be happening? Thanks for your help!


Dean

January 14, 2014 at 6:45 am

Hi Angela,

I cant seem to recreate this this, Early Bird work fine with member prices for me.

Can you advise how your early bird is set up – fixed or percentage fees, end date of early bird, end date of event registration, etc.

Can you also advise what is occurring – is it discounting but the wrong value or is it just showing the full member value?


Angela Haddon

January 14, 2014 at 1:07 pm

Hi Dean,

I’ve found the issue – way back when, I wanted to display multiple prices, and you directed me to a code snippet on GitHub:
https://eventespresso.com/topic/multiple-ticket-price-display/
https://gist.github.com/Apina/674700c14fe7d751be75

It worked great when I had multiple price levels, but appears to fail completely when there is only one price level. I tried the latest version, but it still doesn’t work. I can’t see where the code goes wrong, but would greatly appreciate any help you could offer in resolving this issue.

Thanks again, Angela


Josh

  • Support Staff

January 15, 2014 at 8:32 am

Hi Angela,

Can you clarify which isn’t working? Is it the display of prices on the event list, the price of the tickets when they register, or something else?


Angela Haddon

January 15, 2014 at 9:34 am

Hi Josh – I’m calling a list of prices (using the function with link suppled above) with the following code, as per the instructions:
<?php do_action(‘action_hook_espresso_price_list’, $event_id);?>
It has nothing to do with the actual shopping cart or anything like that; it’s just a simple printout of prices, which I am calling in the sidebar of the event page for informational purposes only.
When there are multiple prices with an earlybird discount, it clearly states that it’s the earlybird price and prints the correct (discounted) price plus 10% tax. This is what I want. However, if there is a single price level, it only shows the base price (ie. doesn’t state that it’s an earlybird discount, doesn’t include the earlybird discount in its calculations, and doesn’t state “+ 10% tax” – it simply prints the base price).
In other words, when there is only one price level, the function mentioned above doesn’t do anything other than print out the base price.
Is there a reason why this would be the case?
Thanks for your assistance.


Tony

  • Support Staff

January 15, 2014 at 12:27 pm

Is there a reason why this would be the case?

That’s actually intended by the script you are currently using.

Try this https://gist.github.com/Pebblo/512372b796b19054ee0c

Replace the function Dean gave you with that, it is almost the same basically just removes the check for more than one ticket and if prices are found, list all the same way. Free events (0.00) price tickets will not be displayed.


Angela Haddon

January 15, 2014 at 5:20 pm

Thanks Tony! That works great – I just need to tweak it a bit but the basic functionality is perfect. Much appreciated!

Viewing 6 reply threads

The support post ‘Early Registration Discount only working for more than one price level’ 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