How can we get our event pricing to display consistently? Take a look at this screenshot: http://d.pr/i/13y6j
On the top event, it shows surcharge & discounted rate. On the bottom event it doesn’t show a surcharge or a $5 discount if registered by a certain date…though, we have those items set on the backend (http://d.pr/i/yKxh & http://d.pr/i/1jZbE).
If you step through the code that outputs the price list on the event list, you’ll note it only displays the surcharge and early discount info if there’s more than one price for an event.
You can change this by copying the entire event_espresso_price_list function from /event-espresso/includes/functions/pricing.php into your functions file. Then you change the line within your copy of the function from: if ($wpdb->num_rows > 1) {
to: if ($wpdb->num_rows > 0) {
Load order is important when using pluggable functions. If your code loads after Event Espresso’s code loads, your modification will not load. For example, if your functions file is also your theme’s functions.php file, you can copy the function to /wp-content/uploads/espresso/custom_functions.php. Event Espresso 3 will check there first for custom functions.
The support post ‘Event Pricing Displaying Inconsistently’ 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.