Posted: February 26, 2014 at 7:42 am
Hello, I created a series of events. Lets assume that they are called “html5 and css3 basic” with the price 3000. So i created a category and attached that cateogry to those events. This is the shortcode to that category. I insert that shortcode to a new standard wordpress page. I gave the created events an event promotion discount of 1000 until a certain date was meet. When i enter that page i created with the shortcode from above, it will show me the events of “html5 and css3 basic”. there is also a price. that price is shown as 3000 still. So my question is. Why are the 1000 that i dictated in the event promotion not deducted from the original price? I can see when i book the event, the price was changed from 3000 to 2000. But surely i need to see that the price is 2000 and not 3000 as i see it now. | |
| Hi Morten, By Default Event Espresso does not show Early bird discounts within the Event List. However we have a function that outputs a list of all the Prices for an event which does display the early bird discount and can be included within event_list_display.php which will output something similar to this http://take.ms/eDvfk That event has 2 Prices with an Early Bird Discount enabled. That function is available here: https://gist.github.com/sethshoultes/ab1e992668cf3166a686 Place the function from that gist into wp-content/uploads/espresso/custom_functions.php Then copy event-espresso/templates/event_list.php and event_list_display.php to wp-content/uploads/espresso/templates/ and modify event_list_display.php there. Adding the action from within that gist to around line 84 and remove the current prices from the template. Something like this should work http://take.ms/SDoy3 Then you just need to style the list to suit. Hope that helps. |
This is neat Tony. I have 2 things :) 1) I did locate how to calculate the discount. $event->early_disc its in this object. So it works now. 2) I will take a look at what you posted, i just came back to the job and its before my coffee. I will get back to you for sure :-) | |
I think this is solved. You answered my question. I solved it myself with some custom code. If however you see an issue with using the $event->early_disc value then please tell me. But as things are i dont see a issue there. :) Thanks | |
The support post ‘event promotion price not showing under shortcode overview’ 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.